True or False Statements
1.1 The body of a loop executes at least once in a post-test loop.
1.2 Nested loop is a process of having an if statement inside another if statement.
1.3 A pseudocode includes all the declarations and all types of statements.
1.4 When the loop-continuation condition in an iteration statement never becomes false then that loop can become an infinite loop.
1.5 Continue and break statements may be embedded only within iteration statements.
True or False Statements
1.1 The body of a loop executes at least once in a post-test loop.
True
1.2 Nested loop is a process of having an if statement inside another if statement.
False. A nested loop is a loop inside another loop.
1.3 A pseudocode includes all the declarations and all types of statements.
False. Pseudocode includes instructions only.
1.4 When the loop-continuation condition in an iteration statement never becomes false then that loop can become an infinite loop.
True
1.5 Continue and break statements may be embedded only within iteration statements.
False. Break statements may also be embedded into switch statement.
Comments
Leave a comment