Deck 13: Do It, Then Ask Permission Posttest Loops

ملء الشاشة (f)
exit full mode
سؤال
____ loops should be used only when their instructions must be processed at least once.

A) Posttest
C) DoAfter
B) Pretest
D) ProcessAfter
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
In the posttest syntax, the condition is evaluated before the loop instructions are processed.
سؤال
In the pretest syntax, the condition is evaluated after the loop instructions are processed.
سؤال
The ____ loop condition is evaluated after the instructions within the loop are processed.

A) posttest
C) before
B) pretest
D) after
سؤال
In the ____ loop, the condition appears in the last line.

A) sequential
C) posttest
B) pretest
D) iterative
سؤال
The instructions in a pretest loop will be processed at least once.
سؤال
The instructions in a posttest loop ____.

A) may never be processed
C) always will be processed at least twice
B) should only be processed once
D) always will be processed at least once
سؤال
In the pretest syntax for a Do…Loop statement, the {While | Until} condition section is part of the ____ clause.

A) Execute
C) Do
B) Process
D) Loop
سؤال
Pretest loops should be used only when their instructions must be processed at least once.
سؤال
A pretest loop is easier to write and understand than a posttest loop with a selection structure.
سؤال
In the ____ loop, the condition appears in the first line.

A) sequential
C) posttest
B) pretest
D) iterative
سؤال
Most programmers use posttest loops.
سؤال
A repetition structure can be either a pretest loop or a posttest loop.
سؤال
The ____ loop condition is evaluated before the instructions within the loop are processed.

A) posttest
C) before
B) pretest
D) after
سؤال
In the posttest syntax for a Do…Loop, the {While | Until} condition section is part of the ____ clause.

A) Execute
C) Do
B) Process
D) Loop
سؤال
The Do…Loop statement can be used to code a pretest loop as well as a posttest loop.
سؤال
When a posttest loop is placed in a selection structure, the loop will be processed only when the selection structure's condition evaluates to True.
سؤال
The diamond that represents the condition appears at the top of the loop in the flowchart of a posttest loop.
سؤال
The difference between pretest and posttest loops pertains to how the accumulator is evaluated.
سؤال
In the posttest syntax, the only purpose of the Do clause is to mark the beginning of the loop.
سؤال
You may test an initial condition of a posttest loop by ____.

A) using a nested loop for the initial condition
B) placing the posttest loop inside a selection structure
C) resetting the counter variable on each pass of the loop
D) initializing all loop variables to zero
سؤال
One problem with posttest loops is that they always execute at least once. You can fix the problem in the Posttest Loop button's code by placing the posttest loop in a(n) ____ structure.

A) selection
C) iterative
B) execute
D) another posttest loop
سؤال
You are given the following statement: Do ... Loop Until intCounter > intNumTimes.
The Until intCounter > intNumTimes represents a _____.

A) loop condition
C) loop full condition
B) loop exit condition
D) loop retreat condition
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/23
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 13: Do It, Then Ask Permission Posttest Loops
1
____ loops should be used only when their instructions must be processed at least once.

A) Posttest
C) DoAfter
B) Pretest
D) ProcessAfter
A
2
In the posttest syntax, the condition is evaluated before the loop instructions are processed.
False
3
In the pretest syntax, the condition is evaluated after the loop instructions are processed.
False
4
The ____ loop condition is evaluated after the instructions within the loop are processed.

A) posttest
C) before
B) pretest
D) after
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
5
In the ____ loop, the condition appears in the last line.

A) sequential
C) posttest
B) pretest
D) iterative
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
6
The instructions in a pretest loop will be processed at least once.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
7
The instructions in a posttest loop ____.

A) may never be processed
C) always will be processed at least twice
B) should only be processed once
D) always will be processed at least once
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
8
In the pretest syntax for a Do…Loop statement, the {While | Until} condition section is part of the ____ clause.

A) Execute
C) Do
B) Process
D) Loop
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
9
Pretest loops should be used only when their instructions must be processed at least once.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
10
A pretest loop is easier to write and understand than a posttest loop with a selection structure.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
11
In the ____ loop, the condition appears in the first line.

A) sequential
C) posttest
B) pretest
D) iterative
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
12
Most programmers use posttest loops.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
13
A repetition structure can be either a pretest loop or a posttest loop.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
14
The ____ loop condition is evaluated before the instructions within the loop are processed.

A) posttest
C) before
B) pretest
D) after
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
15
In the posttest syntax for a Do…Loop, the {While | Until} condition section is part of the ____ clause.

A) Execute
C) Do
B) Process
D) Loop
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
16
The Do…Loop statement can be used to code a pretest loop as well as a posttest loop.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
17
When a posttest loop is placed in a selection structure, the loop will be processed only when the selection structure's condition evaluates to True.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
18
The diamond that represents the condition appears at the top of the loop in the flowchart of a posttest loop.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
19
The difference between pretest and posttest loops pertains to how the accumulator is evaluated.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
20
In the posttest syntax, the only purpose of the Do clause is to mark the beginning of the loop.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
21
You may test an initial condition of a posttest loop by ____.

A) using a nested loop for the initial condition
B) placing the posttest loop inside a selection structure
C) resetting the counter variable on each pass of the loop
D) initializing all loop variables to zero
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
22
One problem with posttest loops is that they always execute at least once. You can fix the problem in the Posttest Loop button's code by placing the posttest loop in a(n) ____ structure.

A) selection
C) iterative
B) execute
D) another posttest loop
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
23
You are given the following statement: Do ... Loop Until intCounter > intNumTimes.
The Until intCounter > intNumTimes represents a _____.

A) loop condition
C) loop full condition
B) loop exit condition
D) loop retreat condition
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.