Case-statements-quiz
Case Statements Quiz
Objectives
Distinguish a case statement from other patterns
Identify when to use a case statement
Write a case statement
Note: If you see concepts in the quiz that you might not have seen before, then Google it. Knowing how to look for information is an important part of being a good programmer so we're not going to always give you everything you need to figure out a problem; some of it will be on you.
???
Quiz
?: Which of the following is a case statement?
( )
(X)
( )
?: Of the following two examples, which example uses the case statement the best?
( )
( )
(X) Both are good as case statements
?: Which operator does a case statement use to compare the value to the conditions?
(X) ===
( ) ==
( ) =
???
Last updated