English

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

Question

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';

Code Writing
Advertisements

Solution

boolean bp = True;

The data type of bp is boolean.

shaalaa.com
  Is there an error in this question or solution?
Chapter 2: Class as the Basis of all Computation - Exercises [Page 66]

APPEARS IN

Rupa Pandit Computer Applications [English] Class 10 ICSE
Chapter 2 Class as the Basis of all Computation
Exercises | Q 5. (iii) | Page 66
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×