CS159 Lab08 T/F

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

In an event-controlled loop we know the number of times that the actions found inside the body of the loop will be executed.

F

In this course you will be expected to validate for the input of both the range of acceptable values and the correct data type.

F

A counter-controlled loop may execute a constant number of iterations.

T

A nested loop is a repetitive process contained inside of another repetitive process.

T

An iteration is one execution of all statements found inside the body of a loop.

T

Course standards prohibit the use of break to terminate any repetition construct.

T

In a post-test loop the minimum number of times that the statements found inside of the loop are executed is one.

T

In a pretest loop the control expression is evaluated before each iteration, including the first iteration.

T

In order for two, or more, repetitive processes to be considered nested they must appear in the same user-defined function.

T

Input validation is an example of an event-controlled problem.

T

It is expected for many cases that the code for the validation of input be found in the same function that contains the prompt for input and scanf statement.

T

It is possible for the number of times a counter-controlled loop will iterate to depend on the value of a single variable or expression.

T

One approach to potentially make solving problems that require nested loops easier is to separate each repetitive process into its own function.

T

Selection by itself is insufficient for input validation because it provides only a finite number of opportunities for the user to input valid data.

T

Similar to their required use in the if construct it is a course standard to always make use of { and } with all looping constructs.

T

The action that is responsible for changing the result of the loop control expression from true to false is the loop update.

T

The condition that determines whether the task to repeat is finished is known as the loop control expression.

T

The contents of a loop have been identified to be repeated in a program.

T

The do-while loop will terminate with a semicolon after its loop control expression.

T

The initialization of the loop control variable must take place outside the body of a pretest loop.

T

The loop control variable is commonly a part of the loop control expression and the recipient of the loop update action.

T

The number of times that the loop control expression is evaluated is one more than the number of iterations in a pretest loop.

T

The while loop requires the use of parentheses around the loop control expression.

T


संबंधित स्टडी सेट्स

Marketing Smartbook Chapter 11 Q&A/Notes

View Set