MCQ Single Best Answer Easy

QConsider the array given below:

char ch[] = { 'A', 'E', 'T', '0', 'U' };

Write the output of the following statements: System.out.println(ch[0]*2);:

ID: #24262 ICSE Computer Application - Class X - 2025 SPECIMEN QUESTION PAPER 46 views
Question Info
#24262Q ID
EasyDifficulty
ICSE Computer Application - Class X - 2025 SPECIMEN QUESTION PAPERTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A 65
  • B 130
  • C 'A'
Correct Answer: Option B

Explanation

Given array:

char ch[] = { 'A', 'E', 'T', '0', 'U' };

Statement:

System.out.println(ch[0] * 2);

Step 1: Value of ch[0]

  • ch[0]'A'

  • In Java, char is a numeric type under the hood (Unicode value)

  • Unicode of 'A'65


Step 2: Multiply by 2

ch[0] * 2 = 65 * 2 = 130

Step 3: Output

  • Since we are using arithmetic, the result is int, not char.

  • So it prints 130


Answer: (b) 130

Share This Question

Challenge a friend or share with your study group.