MCQ Practice Single Best Answer Topic: ICSE Computer Application - Class X - 2023 PYQ

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

Question ID
#23955
Subchapter
ICSE Computer Application - Class X - 2023 PYQ
Action
Choose one option below

Choose Your Answer

Click an option to check whether your answer is correct.

  • A implicit
  • B automatic
  • C explicit
  • D coercion
Correct Answer: C

Explanation

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.

Share This Question

Share this MCQ with your friends or study group.