Single Choice Moderate

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

ID: #23955 ICSE Computer Application - Class X - 2023 PYQ 95 views
Question Info
#23955Q ID
ModerateDifficulty
ICSE Computer Application - Class X - 2023 PYQTopic

Choose the Best Option

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

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

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

Challenge a friend or share with your study group.