Podcast
Questions and Answers
Which type of selection structure has two blocks of statements, one of which is to be executed and the other one is to be skipped?
Which type of selection structure has two blocks of statements, one of which is to be executed and the other one is to be skipped?
- Case/Switch
- Single-alternative (If-Then)
- Dual-alternative (If-Then-Else) (correct)
- Multiple-alternative (If-Then-Else-If)
Which type of selection structure has more than two blocks of statements, only one of which is to be executed and the rest skipped?
Which type of selection structure has more than two blocks of statements, only one of which is to be executed and the rest skipped?
- Case/Switch
- Single-alternative (If-Then)
- Multiple-alternative (If-Then-Else-If) (correct)
- Dual-alternative (If-Then-Else)
Which edition of the book 'Prelude to Programming' does Chapter 4 'Selection Structures: Making Decisions' belong to?
Which edition of the book 'Prelude to Programming' does Chapter 4 'Selection Structures: Making Decisions' belong to?
- Third Edition
- Sixth Edition (correct)
- Fifth Edition
- Fourth Edition
In a single-alternative (If-Then) selection structure, what happens if the condition is false?
In a single-alternative (If-Then) selection structure, what happens if the condition is false?
What is the purpose of a selection structure in programming?
What is the purpose of a selection structure in programming?