ICSE Class 10 Computer Applications Paper Soultions 2022
SEMESTER 2 EXAMINATION COMPUTER APPLICATIONS
Maximum Marks: 50
Time Allowed: One and a half hours
Answers to this paper must be written on the paper provided separately.
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 marks intended for questions are given in brackets [ ]
(Attempt all questions.)
Choose the correct answers to the questions from the given options. (Do not copy the question. Write the correct answer only.) 
(i) Return data type of isLetter(char) is _______
Answer: (b) boolean
(ii) Method that converts a character to uppercase is _______
Answer: (d) toUpperCase(char).
(iii) Give the output of the following String methods:
Answer: (b) 5
(iv) Corresponding wrapper class of float data type is ________
Answer: (c) Float
(v) ______ class is used to convert a primitive data type to its corresponding object.
Answer: (b) Wrapper
(vi) Give the output of the following code:
(b) Good Day
Answer: (a) GoodDay
(vii) A single dimensional array contains N elements. What will be the last subscript?
Answer: (b) N-1
(viii) The access modifier that gives least accessibility is
Answer: (a) private
(ix) Give the output of the following code:
String A=”560″, B=”94.0″;
double C = Double.parsDouble(A);
double D = Double.parseDouble(B);
Answer: (b) 150.0
(x) What will be the output of the following code?
Answer: (c) Luck
(Attempt any four questions from this Section)
Define a class to perform binary search on a list of integers given below to search for an element input by the user, if it is found display the clement along with is position, otherwise display the message Search element not found”. 
2, 5, 7, 10, 15, 20, 29, 30, 46, 50
Define a class to declare a character array of size ten, accept the characters into the array and display the characters with highest and lowest ASCII (American Standard Code for Information Interchange) value. 
‘R’, ‘2’,’9′,’A’,’N’,’p’,’m’, ‘Q’,’F’
Character with highest ASCII value = z
Character with lowest ASCII value =A
Define a class to declare an array of size twenty of double datatype, accept the elements into the array and perform the following:
- Calculate and print the product of all the elements.
- Print the square of each element of the array. 
Define a class to accept a string, and print the characters with the uppercase and lowercase reversed, but all the other characters should remain the same as
Define a class to declare an array to accept and store ten words. Display only those words which begin with the letter ‘A’ or ‘a’ and also end with the letter ‘A’ or ‘a’ 
Input: Hari, Anita. Akash, Amrita, Alina, Devi, Rishab, Jolin, Farha, AMITHA
Define a class to accept two strings of same length and form a new word in such a way that, the first character of the first word is followed by the first character of the second word and so on. 
Input string 1-BALL
Input String 2- WORD