English

Which of the following is an example of implicit type casting?

Advertisements
Advertisements

Question

Which of the following is an example of implicit type casting?

Options

  • long to int

  • int to short

  • float to double

  • long to float

MCQ
Advertisements

Solution

float to double

Explanation:

  • Implicit type casting occurs automatically when a smaller data type is converted into a larger compatible data type.
  • A float is automatically converted to a double because a double has more precision and can store larger values.
shaalaa.com
  Is there an error in this question or solution?
Chapter 1: Revision of Class 9 Syllabus - Exercises [Page 42]

APPEARS IN

Rupa Pandit Computer Applications [English] Class 10 ICSE
Chapter 1 Revision of Class 9 Syllabus
Exercises | Q 1. (vii) | Page 42
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×