VISUAL BASIC

VISUAL PROGRAMMING

VISUAL BASIC

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which data type stores either true or false?
A
String
B
Single
C
Integer
D
Boolean
Explanation: 

Detailed explanation-1: -Remarks. Use the Boolean Data Type (Visual Basic) to contain two-state values such as true/false, yes/no, or on/off. The default value of Boolean is False . Boolean values are not stored as numbers, and the stored values are not intended to be equivalent to numbers.

Detailed explanation-2: -The BOOLEAN data type stores TRUE or FALSE data values as a single byte. The following table shows internal and literal representations of the BOOLEAN data type.

Detailed explanation-3: -Boolean variables can either be True or False and are stored as 16-bit (2-byte) values. Boolean variables are displayed as either True or False. Like C, when other numeric data types are converted to Boolean values then a 0 becomes False and any other values become True.

Detailed explanation-4: -A Boolean data type has one of two possible values (usually denoted true and false), intended to represent the two truth values of logic and Boolean algebra.

Detailed explanation-5: -A boolean is a data type with two possible values: true (1) or false (0).

There is 1 question to complete.