MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

DIGITAL LOGIC

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
What two possible values can you achieve from Boolean constants and variables?
A
1 and 0
B
1 and 2
C
Only 1
D
None of the above
Explanation: 

Detailed explanation-1: -A binary variable has two possible values: 0 and 1 (also known as false and true). A special case of Boolean algebra that deals with binary variables is known as switching algebra. A function that accepts binary inputs and provides binary outputs is called a binary function.

Detailed explanation-2: -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.

Detailed explanation-3: -The result of a Boolean expression is either true or false.

Detailed explanation-4: -Boolean Variables and Data Type ( or lack thereof in C ) Zero is used to represent false, and One is used to represent true. For interpretation, Zero is interpreted as false and anything non-zero is interpreted as true.

There is 1 question to complete.