मराठी

Given p = 6.9; Data type of p can be

Advertisements
Advertisements

प्रश्न

Given p = 6.9;

Data type of p can be

पर्याय

  • int

  • float

  • long

  • short

MCQ
Advertisements

उत्तर

float

Explanation:

  • The value p = 6.9 contains a decimal point, so it requires a floating-point data type.
  • A float is used to store decimal values, while int, long, and short store only whole numbers.
shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 1: Revision of Class 9 Syllabus - Exercises [पृष्ठ ४२]

APPEARS IN

रूपा पंडित Computer Applications [English] Class 10 ICSE
पाठ 1 Revision of Class 9 Syllabus
Exercises | Q 1. (xi) | पृष्ठ ४२
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×