Unit 2 Theory Self-Assessment Attempt Review - 2
Unit 2 Theory Self-Assessment Attempt Review - 2
QUIZ
Question 1
Correct
The logical expression connected with the or logical operator returns ____ if any
of the logical expressions evaluates to true.
a. syntax error
b. true
c. false
d. equal to
Question 2
Correct
The logical expressions connected with an and logical operator returns _____ if all
logical expressions evaluate to true.
a. a syntax error
b. not equal to
c. true
d. false
1 of 2 2023/10/10, 20:57
Unit 2 Theory Self-Assessment: Attempt review https://mymodules.dtls.unisa.ac.za/mod/quiz/review.php?attempt=1409...
Question 3
Correct
The logical expression that is evaluated to true and preceded by the not logical
operator results in a ____ value.
a. syntax error
b. true
c. false
d. greater than
Question 4
Correct
a. required.
b. compulsory.
c. optional.
d. mandatory.
Question 5
Correct
Comparison operators can be used within the logical expression of the IF … ELSE
statement. The == operator reads as ____
a. similar
b. not equal to
c. not greater than
d. equal to
2 of 2 2023/10/10, 20:57