Professional Documents
Culture Documents
Soham Practice1
Soham Practice1
COMPUTER APPLICATIONS
Maximum Marks: 50
You will not be allowed to write during the first 10 minutes. This time is to be spent in reading the
question paper. The time given at the head of this Paper is the time allowed for writing the answers.
Attempt all questions from Section A and any four questions from Section B. The intended marks for
questions or parts of questions are given in brackets [ ].
Question 1
Choose the correct answers to the questions from the given options. (Do not copy the question, Write
the correct answer only.) [10]
(a) Boxing
(b) Explicit type conversion
(c) Unboxing
(d) Implicit type conversion
a) A
130
b) B
131
c) 66
131
d) A
131
a) Compile error
b) Runtime error
c) c
d) e
(10x4=40)
2. Write a program to accept a sentence terminated by ‘.’ And display all the words whose sum of ASCII
values of the vowels is odd. If no such word(S) exists following the logic add an appropriate message.
3. WAP to store n words in an 1D array and display all the words by interchanging all the consonants in
the word with its next vowel in the alphabetical series. Words are taken in mixed case. If a word(s)
doesn`t contain any consonant then display the word only.
4. WAP to create two arrays of size 10 where one array will store name of the employee and other will
store basic salary of that employee. Accept a name from the user and check whether the name exists in
the given array. If exists display the basic salary of that employee otherwise give error message.
5. WAP to accept 10 numbers having atleast 3 digits in an array and for each element in the array display
the sum of digits which are prime. If no such digits in the number is prime then display the product of
the first and last digits of the number.
6. WAP to accept a name which contain first name,middle name and last name. Display the name in the
following manner given in the example. Take the name as input from the user.
Output: A.K.Gupta