focusNode Show
Didn't know it? Knew it? Embed Code - If you would like this activity on your web page, copy the script below and paste it into
your web page. Introduction to Programming Chapter 04 - Terms
What is used to write a dual alternative decision structure?The usual way that a dual alternative decision structure is implemented in Python is with an if - else statement. So the answer is (c).
When you write an IF ELSE statement under what circumstances do the statements that appear after the else clause execute?In case the test expression has false results, the statements present in the else body are executed, and then the statements below the if-else are executed. Since the value of “i” is divisible by two, the if statement is executed.
Which structure causes a statement or set of statements to execute repeatedly?A repetition structure causes a statement or set of statements to execute repeatedly. Repetition structures are used to perform the same task over and over. A condition-controlled loop uses a Boolean (true/false) condition to control the number of times that it repeats.
Which structure determines the order in which a set of statements executes?– Control structure : a logical design that controls the order in which a set of statements execute. – Sequence structure is a set of statements that execute in the order that they appear.
|