ICSE Class 10 Computer Applications Question 13 of 30

Solved 2023 Question Paper ICSE Class 10 Computer Applications — Question 13

Back to all questions
13
Question

Question 1(xiii)

int x = (int)32.8; is an example of ............... typecasting.

  1. implicit
  2. automatic
  3. explicit
  4. coercion
Answer

explicit

Reason — In explicit type conversion, the data gets converted to a type as specified by the programmer. Here, the float value 32.8 is being converted to int type by the programmer, explicitly.