In: Computer Science
Evaluate the following logical expression. Choose True if the expression evaluates to true; choose False if the expression evaluates to false.
(3 * 5 > 10) || (20 < 15)
True
False
Evaluate the following logical expression. Choose True if the expression evaluates to true; choose False if the expression evaluates to false.
"Medium" < "High"
True
False
Evaluate the following logical expression. Choose True if the expression evaluates to true; choose False if the expression evaluates to false.
(4 + 7 / 2) <= (9 - 15 % 6)
True
False
The two most common control structures are sequence and repetition.
True
False
Evaluate the following logical expression. Choose True if the expression evaluates to true; choose False if the expression evaluates to false.
"High" == "high"
True
False
Evaluate the following logical expression. Choose True if the expression evaluates to true; choose False if the expression evaluates to false.
!(13 - 45 <= 10)
True
False
Evaluate the following logical expression. Choose True if the expression evaluates to true; choose False if the expression evaluates to false.
(3 * 4 == 2 * 6) && (5 * 5 <= 4 * 7)
True
False
Including a space within the relational operators ==, <=, >=, and != creates a syntax error.
True
False
A sequence of statements enclosed in parenthesis () is called a compound statement or block of statements.
True
False
Selection involves executing a statement or block of statements over and over.
True
False
Evaluate the following logical expression. Choose True if the expression evaluates to true; choose False if the expression evaluates to false.
('K' < 'k')
True
False
If a program encounters the following statement, the program will terminate.
return 1;
t
f
Evaluate the following logical expression. Choose True if the expression evaluates to true; choose False if the expression evaluates to false.
(4 * 7) == (74 / 3)
True
False
The following expression always evaluates to true:
if (score = 30)
grade = 'A';
True
False
The IF statement can be used to check for input failure.
True
False
Evaluate the following logical expression. Choose True if the expression evaluates to true; choose False if the expression evaluates to false.
(3 * 5 > 10) || (20 < 15)
Answer: True
Evaluate the following logical expression. Choose True if the expression evaluates to true; choose False if the expression evaluates to false.
"Medium" < "High"
Answer: False
Evaluate the following logical expression. Choose True if the expression evaluates to true; choose False if the expression evaluates to false.
(4 + 7 / 2) <= (9 - 15 % 6)
Answer: False
The two most common control structures are sequence and repetition.
Answer: False
Evaluate the following logical expression. Choose True if the expression evaluates to true; choose False if the expression evaluates to false.
"High" == "high"
Answer: False
Evaluate the following logical expression. Choose True if the expression evaluates to true; choose False if the expression evaluates to false.
!(13 - 45 <= 10)
Answer: False
Evaluate the following logical expression. Choose True if the expression evaluates to true; choose False if the expression evaluates to false.
(3 * 4 == 2 * 6) && (5 * 5 <= 4 * 7)
Answer: True
Including a space within the relational operators ==, <=, >=, and != creates a syntax error.
Answer: False
A sequence of statements enclosed in parenthesis () is called a compound statement or block of statements.
Answer: False
Selection involves executing a statement or block of statements over and over.
Answer: True
Evaluate the following logical expression. Choose True if the expression evaluates to true; choose False if the expression evaluates to false.
('K' < 'k')
Answer: True
If a program encounters the following statement, the program will terminate.
return 1;
Answer: t
Evaluate the following logical expression. Choose True if the expression evaluates to true; choose False if the expression evaluates to false.
(4 * 7) == (74 / 3)
Answer: False
The following expression always evaluates to true:
if (score = 30)
grade = 'A';
Answer: True
The IF statement can be used to check for input failure.
Answer: False