COMPUTER SCIENCE AND ENGINEERING
DIGITAL LOGIC
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
1 and 0
|
|
1 and 2
|
|
Only 1
|
|
None of the above
|
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.