The output of the below statement is:

ICSE Class 10 Computer Applications PYQ · 2026 Paper · Section A

1(xv)1 Mark · 2026 · Section A · 2026 Paper

The output of the below statement is:

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

d*a

Reason — In the array, a[1] is "Aditi", so a[1].charAt(1) gives 'd'. Similarly, a[2] is "Anant", so a[2].charAt(2) gives 'a'. The expression uses "*" as a String, so the + operator performs concatenation, resulting in "d*a".

← Previous questionNext question →

Browse the free Computer Applications sample bank