हिंदी

Given below is a partial program code. Identify any error, if present. Also find the following in it: [Class name, Object name, Array, member data, data type] boolean bp = 'True';

Advertisements
Advertisements

प्रश्न

Given below is a partial program code. Identify any error, if present. Also find the following in it:

[Class name, Object name, Array, member data, data type]

boolean bp = 'True';

कोड लेखन
Advertisements

उत्तर

boolean bp = True;

The data type of bp is boolean.

shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 2: Class as the Basis of all Computation - Exercises [पृष्ठ ६६]

APPEARS IN

रुपा पंडित Computer Applications [English] Class 10 ICSE
अध्याय 2 Class as the Basis of all Computation
Exercises | Q 5. (iii) | पृष्ठ ६६
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×