Filters
Question type

Study Flashcards

A posttest loop does not perform any iteration if the Boolean expression is false to begin with.

A) True
B) False

Correct Answer

verifed

verified

The While loop is known as a pretest loop,which means it tests its condition before performing an iteration.

A) True
B) False

Correct Answer

verifed

verified

The While loop gets its name from the way it works: While a condition is false,do some task.

A) True
B) False

Correct Answer

verifed

verified

When processing a long list of values with a loop,the program knows it has reached the end of the list when the _________ value is read.

Correct Answer

verifed

verified

A ______________ structure is commonly known as a loop.

Correct Answer

verifed

verified

The following is an example of what type of loop? For k = 7 To maxValue


A) Count-controlled
B) Condition-controlled
C) While
D) Do-while
E) Do-until

F) A) and B)
G) C) and D)

Correct Answer

verifed

verified

In a For loop a negative step value is used to __________ the counter variable.

Correct Answer

verifed

verified

The While and For loops are considered pretest loops because they test the condition before processing the statement(s)in the loop body.

A) True
B) False

Correct Answer

verifed

verified

How many times will the following loop iterate? Set k = 1 While k > 5 Display k End While


A) One
B) Two
C) Five
D) No iterations
E) Infinite

F) D) and E)
G) A) and E)

Correct Answer

verifed

verified

The ___________ represents a special value that marks the end of a list of values.


A) Sentinel
B) Stop
C) End
D) Any of the above
E) None of the above

F) A) and D)
G) B) and E)

Correct Answer

verifed

verified

The While loop will never execute if its condition is true to start with.

A) True
B) False

Correct Answer

verifed

verified

The following loop will perform ______ iterations. For start = 6 To 2 Step -3

Correct Answer

verifed

verified

How many times will the following loop iterate? Set k = 1 Do Display k Set k = k + 1 Until k > 1


A) One
B) Two
C) Three
D) No iterations
E) Infinite

F) B) and D)
G) A) and E)

Correct Answer

verifed

verified

A loop that accumulates a total as it reads each number from a series is often said to keep a what?


A) Average
B) Maximum value
C) Running total
D) Accumulation
E) None of the above

F) B) and E)
G) A) and E)

Correct Answer

verifed

verified

In the For statement,you can only use positive integers as step values.

A) True
B) False

Correct Answer

verifed

verified

Modules can be called from statements in the body of any loop.

A) True
B) False

Correct Answer

verifed

verified

The variable that is used to keep the running total in a loop is called a(n)_________________ in programming.

Correct Answer

verifed

verified

In a count-controlled loop,the counter performs _______ action(s) .


A) One
B) Two
C) Three
D) Four
E) Five

F) A) and B)
G) C) and E)

Correct Answer

verifed

verified

A ____________ -controlled loop repeats a statement or set of statements a specific number of times.

Correct Answer

verifed

verified

An inner loop goes through all of its iterations for every single iteration of the ______ loop.

Correct Answer

verifed

verified

Showing 21 - 40 of 44

Related Exams

Show Answer