2. Programming Fundamentals

Control Flow — Quiz

Test your understanding of control flow with 5 practice questions.

Read the lesson first

Practice Questions

Question 1

Which of the following logical operators is typically used to combine two conditions such that both must be true for the overall condition to be true?

Question 2

In a programming context, what is the primary purpose of a goto statement?

Question 3

Consider the following pseudocode: \ \
 \ SET x = 10 \ SET y = 5 \ IF x > y AND y < 10 THEN \     PRINT "Condition Met" \ ELSE \     PRINT "Condition Not Met" \ END IF \ 
\ What will be the output of this code?

Question 4

Which of the following scenarios is best suited for using a do-while loop over a while loop?

Question 5

What is the result of the following conditional expression if $P = \text{True}$ and $Q = \text{False}$? $ \text{NOT} (P \text{ OR } Q) $
Control Flow Quiz — Computer Science | A-Warded