ICSE-CLASS-X-BOARD SERIES
Computer-applications

Character String

6 previous year questions.

Volume: 6 Ques
Yield: Medium

High-Yield Trend

6
2026

Chapter Questions
6 MCQs

01
PYQ 2026
medium
computer-applications ID: icse-cla

Give the output of the following Java program segment:

String a[] = {"Atasi", "Aditi", "Anant", "Amit", "Ahana"};
System.out.println(a[1].charAt(1) + "*" + a[2].charAt(2));

The output of the above statement is:

1
da
2
d * a
3
ti
4
t * i
02
PYQ 2026
medium
computer-applications ID: icse-cla

Assertion and Reasoning

Assertion (A): The substring() method modifies the original String.

Reason (R): The substring() method can extract part of a String from a specific index.

1
(A) is true and (R) is false.
2
(A) is false and (R) is true.
3
Both (A) and (R) are true and (R) is the correct explanation of (A).
4
Both (A) and (R) are true, but (R) is not the correct explanation of (A).
03
PYQ 2026
hard
computer-applications ID: icse-cla
Give the output of the following program segment:
\texttt{String S = "GRACIOUS".substring(4);}
\texttt{System.out.println(S);}
\texttt{System.out.println("GLAMOROUS".endsWith(S));}
04
PYQ 2026
medium
computer-applications ID: icse-cla
Which of the following String methods returns a negative value?
1
length()
2
equals()
3
compareTo()
4
charAt()
05
PYQ 2026
medium
computer-applications ID: icse-cla
To extract the word NOW from the word ``ACKNOWLEDGEMENT'', Java statement ``ACKNOWLEDGEMENT''.substring(3, ___ ) is used. Choose the correct number to fill in the blank.
1
6
2
7
3
5
4
8
06
PYQ 2026
medium
computer-applications ID: icse-cla
What is the type of parameter to be given for the method \texttt{parseInt()?}
1
double
2
String
3
char
4
int