ANSWERS | 2026 UPDATE | 100% CORRECT
A piece of data is called logical if it conveys the idea of true or false. Answer - T
C programmers use other types, such as integers, to represent logical data.
Answer - T
If a data value is zero it is considered false, but any non-zero value is considered
true. Answer - T
The logical AND (&&) operator is true only when both operands are true.
Answer - T
The logical OR (||) operator is true only when exactly one of its operands is
true. Answer - F
The logical OR (||) operator is true when one or both of its operands is true.
Answer - T
The AND and OR operator share the same level of operator precedence.
Answer - F
The AND and OR operator do not share the same level of operator precedence.
Answer - T
, The short-circuit method of evaluating logical expressions will stop evaluating
the current expression as
soon as the result can be determined. Answer - T
The complement of the equal operator is the not equal operator. Answer - T
The complement of the greater than operator is the less than operator.
Answer - F
The complement of the greater than operator is the less than or equal to
operator. Answer - T
When attempting to print the result of a logical expression that is true as an
integer the result will always
be 1. Answer - T
The logical expression of an if...else construct must be enclosed in parentheses.
Answer - T
There is no semi-colon that follows the logical expression of an if...else
construct. Answer - T
The statements found inside of an if...else may be any statement, including
another if...else
construct. Answer - T
if(a != 0) and if(!a) are complementary statements. Answer - T