English

Define the following with an example: boolean data type - Computer Applications

Advertisements
Advertisements

Question

Define the following with an example:

Boolean data type

Definition

Solution

This data type allows variables to be either true or false based on a constant value. These are nonfigurative constants. The default value for a boolean variable is false.

Example: boolean flag = false;

shaalaa.com
  Is there an error in this question or solution?
Chapter 1.03: Values and Data Types - EXERCISES [Page 33]

APPEARS IN

Avichal Computer Applications [English] Class 10 ICSE
Chapter 1.03 Values and Data Types
EXERCISES | Q III. 3. (c) | Page 33
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×