Computer Programming Final

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

Which is true about a do...while loop?

Body of loop executes at least once

Which doesn't have an entry condition?

do...while

Which loop is guaranteed to execute at least once

do...while

A break statements is legal in in a while loop, but not in a for loop

false

A loop that continues to execute endlessly is called an endless loop

false

A syntax error will result if the control statements of a for loop are omitted

false

A while loop is a post test loop

false

Because a do...while loop is a post test loop, the body of the loop may not execute at all

false

EOF-controlled while loop is another name for sentinel-controlled while loop

false

If the while expression becomes false in the middle of the while loop body, the loop terminates immediately

false

In the for statement, if the logical expression is omitted, it is assumed to be false

false

Like a do...while loop, the body of a while loop executes at least once

false

control variables are automatically initialized in a loop

false

order for the for loops is

initial expression, logical expression, update expression

Which of the following is not a reserved word in java?

loop

which executes first in a do...while loop?

statement

Which is not a function of the break statement

to ignore certain values for the variables and continue with the next irritation of a loop

A counter controlled loop is used when the exact number of data entries is known

true

A loop is a control structure that causes certain statements to be executed over and over until certain conditions are met

true

After a break statement executes, the program continues to execute with the first statement after the structure

true

If a continue statement is placed in a do...while structure, the loop-continue is evaluated immediately after the continue statement

true

In the case of an infinite while loop, the while expression (that is the loop condition) is always true

true

In the case of the sentinel-controlled while loop, the first item is read before the while loop is entered

true

In the case of the sentinel-controlled while loop, the first term is read before the while loop is entered

true

The control statements in the for loop include the initial expression, logical expression, and update expression

true

The do...while loop has an exit condition but no entry condition

true

The loop condition of a while loop is reevaluated before every iteration of the loop

true

To read data from a file of unspecified length, an EOF-controlled while loop is a better choice than a counter-controlled while loop

true


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

Specimen Collection and Testing Module Test

View Set

IFRS—Consolidations/Combined Financial Statements/ Variable Interest Entities (VIEs)

View Set

Social Media Marketing - Dr. Robinson UHCL Test 2

View Set

Alta - Chapter 8 - Confidence Intervals - Part 1

View Set

Chapter 7-10 Computer Maintenance and networking

View Set