Test Score

Q1

Reasoning: This option is incorrect. The value of variable b is stored in the variable a. Then the value of the variable a (which now contains the original value of the variable b) is stored in the variable temp. Finally, the value of the variable temp (which now contains the original value of the variable b) is stored in the variable b. Both a and b store the original value of b.

Q2

Reasoning: Careless error when reading question

Q3

Reasoning: This option is incorrect. If input B is false, the resulting value coming out of the OR gate will be true (since the value of A is true). Since the value of C is true, the resulting value coming out of the AND gate is true. This result contradicts the statement.

Q4

Q5

Reasoning: The program results in an infinite loop so nothing is displayed.