If you want to execute one set of statements when a condition evaluates to a truthy value and another set of statements when the condition evaluates to a falsy value, you need the ____ statement.
A) while
B) if/else
C) do/while
D) switch
Correct Answer:
Verified
Q12: Unlike the while statement, the statements in
Q13: An if statement keeps repeating until its
Q14: Each repetition of a looping statement is
Q15: A case label consists of the keyword
Q16: The _ label contains statements that execute
Q18: A _ statement is a a control
Q19: One of the simplest types of loop
Q20: You can think of an array as
Q21: Match each statement below with correct item.
Q22: Which method returns a collection of references
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents