ICSE Class 10 Computer Applications Question 15 of 30

Solved 2024 Specimen Paper ICSE Class 10 Computer Applications — Question 15

Back to all questions
15
Question

Question 1(xv)

Which of the following is a valid Integer constant:
i. 4
ii. 4.0
iii. 4.3f
iv. "four"

  1. Only i
  2. i and iii
  3. ii and iv
  4. i and ii
Answer

Only i

Reason — Integer constants represent whole number values only. Thus, 4 is an integer constant. 4.0 is a double constant, 4.3f is a float constant while "four" is a String constant.