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 [ ]

SECTION A

(Attempt all questions.)

Question 1

Choose the correct answers to the questions from the given options. (Do not copy the question. Write the correct answer only.) [10]

(i) Return data type of isLetter(char) is _______

(a) Boolean

(b) boolean

(C) bool

(d) char

Answer: (b) boolean

(ii) Method that converts a character to uppercase is _______

(a) toUpper()

(b) ToUpperCase()

(c) toUppercase()

(d) toUpperCase(char).

Answer: (d) toUpperCase(char).

(iii) Give the output of the following String methods:

“SUCESS”.indexOf(‘S’)+ “SUCESS”.lastIndexOf(‘S’)

(a) 0

(b) 5

(c) 6

(d) -5

Answer: (b) 5

(iv) Corresponding wrapper class of float data type is ________

(a) FLOAT

(b) float

(c) Float

(d) Floating

Answer: (c) Float

(v) ______ class is used to convert a primitive data type to its corresponding object.

(a)String

(b) Wrapper

(c)System

(d) Math

Answer: (b) Wrapper

(vi) Give the output of the following code:

System.out.println(“Good”.concat(“Day”));

(a) GoodDay

(b) Good Day

(c) Goodday

(d) goodDay

Answer: (a) GoodDay

(vii) A single dimensional array contains N elements. What will be the last subscript?

(a)N

(b) N-1

(c) N-2

(d) N+1

Answer: (b) N-1

(viii) The access modifier that gives least accessibility is

(a) private

(b) public

(c) protected

(d) package

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);

System.out.println((C+D));

(a) 100

(b) 150.0

(c) 100.0

(d) 150

Answer: (b) 150.0

(x) What will be the output of the following code?

System.out.println(“Lucknow”.substring(0,4));

(a)Lucknow

(b) Luckn

(c) Luck

(d) luck

Answer: (c) Luck

SECTION B

(Attempt any four questions from this Section)

Question 2

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”. [10]

2, 5, 7, 10, 15, 20, 29, 30, 46, 50

Answer 2

https://www.efaculty.in/java-programs/binary-search-program-in-java/

 

Question 3

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. [10]

EXAMPLE

INPUT

‘R’, ‘2’,’9′,’A’,’N’,’p’,’m’, ‘Q’,’F’

OUTPUT:

Character with highest ASCII value = z

Character with lowest ASCII value =A

Answer 3

https://www.efaculty.in/java-programs/find-highest-and-lowest-ascii-value-program-in-java/

 

Question 4

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. [10]

Answer 4

https://www.efaculty.in/java-programs/product-and-square-of-array-program-in-java/

Question 5

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

before [10]

EXAMPLE:

INPUT: WelCoMe_2022

OUTPUT: wELcOmE_2022

Answer 6

https://www.efaculty.in/java-programs/reversed-case-of-char-array-program-in-java/

Question 6

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’ [10]

EXAMPLE

Input: Hari, Anita. Akash, Amrita, Alina, Devi, Rishab, Jolin, Farha, AMITHA

Output:

Anita

Amrita

Alina

AMITHA

Answer 6

https://www.efaculty.in/java-programs/name-with-a-program-in-java/

Question 7

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. [10]

Example:

Input string 1-BALL

Input String 2- WORD

OUTPUT: BWAOLRLD

Answer 7

https://www.efaculty.in/java-programs/merge-string-characters-program-in-java/