Deck 6: Repeating Program Instructions

ملء الشاشة (f)
exit full mode
سؤال
In most cases, counters and accumulators are initialized to ____.

A) a random number
B) a predetermined maximum
C) zero
D) one
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
The loop's condition in a flowchart is represented by the decision symbol, which is a ____.

A) diamond
B) circle
C) square
D) triangle
سؤال
In a(n) ____ loop, the condition is evaluated before the instructions within the loop are processed.

A) finite
B) infinite
C) pretest
D) posttest
سؤال
The InputBox function returns a ____.

A) variable
B) number
C) boolean value
D) string
سؤال
Incrementing or decrementing the value stored in the counter or accumulator is also referred to as ____.

A) imprinting
B) updating
C) baselining
D) initializing
سؤال
____ means adding a number to the value stored in the counter or accumulator.

A) Imprinting
B) Updating
C) Baselining
D) Initializing
سؤال
The Do...Loop statement can be used to code both a pretest loop and a posttest loop.
سؤال
The instructions in the pretest and posttest loops will always be processed at least once.
سؤال
If a list box allows the user to make only one selection, Windows applications automatically have the last list box item already selected when the interface appears.
سؤال
You can use the procedures associated with the list box's SelectedValueChanged and SelectedIndexChanged events to perform one or more tasks when the selected item has changed.
سؤال
A(n) ____ is a numeric variable used for adding together something.

A) collector
B) counter
C) accumulator
D) initializer
سؤال
A(n) ____ is a numeric variable used for counting something.

A) collector
B) counter
C) selector
D) initializer
سؤال
The ____ function displays an input dialog box, which is one of the standard dialog boxes available in Visual Basic.

A) InputBox
B) DialogBox
C) OutputBox
D) ShowBox
سؤال
The repetition structure is used when a programmer needs the computer to repeatedly process one or more program instructions until some condition is met.
سؤال
The ____ indicates when to continue an action.

A) if condition
B) loop exit statement
C) loop determinant
D) loop condition
سؤال
____ means to assign a beginning value to the counter or accumulator.

A) Imprinting
B) Baselining
C) Selecting
D) Initializing
سؤال
The repetition structure is also referred to as a(n) ____.

A) loop
B) extension
C) block
D) case
سؤال
In a(n) ____ loop, the condition is evaluated after the instructions within the loop are processed.

A) finite
B) infinite
C) pretest
D) posttest
سؤال
When using the InputBox function, you should use ____ for the prompt.

A) sentence capitalization
B) all uppercase letters
C) book capitalization
D) all lowercase letters
سؤال
The value returned by the InputBox function depends on ____.

A) the default settings
B) the mode the program is in
C) the input area
D) the button the user chooses
سؤال
A form's ____________________ event occurs when an application is started.
سؤال
The position of the items stored in a list box depends on the value stored in the list box's _____ property.

A) Count
B) Sorted
C) SelectedItem
D) SelectedIndex
سؤال
Match each item with a statement below.
a.posttest
f.loop exit condition
b.looping condition
g.index
c.update read
h.pretest
d.repetition
i.String Collection Editor window
e.collection
A loop that evaluates the condition before the instructions within the loop are processed.
سؤال
You can use the ____________________ statement to exit the Do...Loop statement prematurely, which means to exit it before the loop has finished processing.
سؤال
The number of choices the user can select in a list box is controlled by the list box's ____ property.

A) SelectionItem
B) SelectionMode
C) SelectionVariable
D) Selection
سؤال
Match each item with a statement below.
a.posttest
f.loop exit condition
b.looping condition
g.index
c.update read
h.pretest
d.repetition
i.String Collection Editor window
e.collection
A programming structure used when the programmer needs the computer to repeatedly process one or more program instructions until some condition is met, at which time the repetition structure ends.
سؤال
The ____________________ list box item is the item already selected when the interface appears.
سؤال
A ____ box displays a list of items from which the user can select zero items, one item, or multiple items.

A) screen
B) message
C) list
D) refresh
سؤال
Each time either the user or a statement selects an item in a list box, both the list box's ____ event and its SelectedIndexChanged event occur.

A) SelectedItemChanged
B) SelectedValueChanged
C) ChosenValueChanged
D) ChosenItemChanged
سؤال
Match each item with a statement below.
a.posttest
f.loop exit condition
b.looping condition
g.index
c.update read
h.pretest
d.repetition
i.String Collection Editor window
e.collection
Allows the user to update the value of the input item that controls the loop's condition.
سؤال
In most cases, you enter a list box's Add methods in the form's ____ event procedure.

A) Enter
B) Update
C) Add
D) Load
سؤال
Match each item with a statement below.
a.posttest
f.loop exit condition
b.looping condition
g.index
c.update read
h.pretest
d.repetition
i.String Collection Editor window
e.collection
A group of individual objects treated as one unit.
سؤال
Match each item with a statement below.
a.posttest
f.loop exit condition
b.looping condition
g.index
c.update read
h.pretest
d.repetition
i.String Collection Editor window
e.collection
The requirement for not repeating the instructions of a loop.
سؤال
When accessing items in a list box, the first item in the collection has an index of ____.

A) -1
B) 0
C) 1
D) null
سؤال
Match each item with a statement below.
a.posttest
f.loop exit condition
b.looping condition
g.index
c.update read
h.pretest
d.repetition
i.String Collection Editor window
e.collection
The requirement for repeating the instructions of a loop.
سؤال
Match each item with a statement below.
a.posttest
f.loop exit condition
b.looping condition
g.index
c.update read
h.pretest
d.repetition
i.String Collection Editor window
e.collection
Used to specify the list box items during design time.
سؤال
Match each item with a statement below.
a.posttest
f.loop exit condition
b.looping condition
g.index
c.update read
h.pretest
d.repetition
i.String Collection Editor window
e.collection
A unique number identifying each item in a list box's Items collection.
سؤال
You can use the ____________________ property to determine whether an item is selected in a list box.
سؤال
The ____________________ function displays an input dialog box, which is one of the standard dialog boxes available in Visual Basic.
سؤال
Match each item with a statement below.
a.posttest
f.loop exit condition
b.looping condition
g.index
c.update read
h.pretest
d.repetition
i.String Collection Editor window
e.collection
A loop that evaluates the condition after the instructions within the loop are processed.
سؤال
Describe how the positions of list box items is determined.
سؤال
Describe how you determine the number of items in a list box.
سؤال
What is customary in Windows applications that allow a user to make only one selection from a list box?
سؤال
How do you enable and disable a control?
سؤال
Describe the similarities and differences between a pretest loop and a posttest loop.
سؤال
How should a list box be sized to display the items it contains?
سؤال
What two list box properties can be used to determine the item selected in the list box and to select a list box item from code?
سؤال
Which method can you use to delay program execution? What is the syntax of the method?
سؤال
When adding items to a list box, describe how the items in the Items collection for a list box appear.
سؤال
Explain the syntax and use of the Refresh method.
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/50
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 6: Repeating Program Instructions
1
In most cases, counters and accumulators are initialized to ____.

A) a random number
B) a predetermined maximum
C) zero
D) one
C
2
The loop's condition in a flowchart is represented by the decision symbol, which is a ____.

A) diamond
B) circle
C) square
D) triangle
A
3
In a(n) ____ loop, the condition is evaluated before the instructions within the loop are processed.

A) finite
B) infinite
C) pretest
D) posttest
C
4
The InputBox function returns a ____.

A) variable
B) number
C) boolean value
D) string
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
5
Incrementing or decrementing the value stored in the counter or accumulator is also referred to as ____.

A) imprinting
B) updating
C) baselining
D) initializing
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
6
____ means adding a number to the value stored in the counter or accumulator.

A) Imprinting
B) Updating
C) Baselining
D) Initializing
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
7
The Do...Loop statement can be used to code both a pretest loop and a posttest loop.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
8
The instructions in the pretest and posttest loops will always be processed at least once.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
9
If a list box allows the user to make only one selection, Windows applications automatically have the last list box item already selected when the interface appears.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
10
You can use the procedures associated with the list box's SelectedValueChanged and SelectedIndexChanged events to perform one or more tasks when the selected item has changed.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
11
A(n) ____ is a numeric variable used for adding together something.

A) collector
B) counter
C) accumulator
D) initializer
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
12
A(n) ____ is a numeric variable used for counting something.

A) collector
B) counter
C) selector
D) initializer
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
13
The ____ function displays an input dialog box, which is one of the standard dialog boxes available in Visual Basic.

A) InputBox
B) DialogBox
C) OutputBox
D) ShowBox
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
14
The repetition structure is used when a programmer needs the computer to repeatedly process one or more program instructions until some condition is met.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
15
The ____ indicates when to continue an action.

A) if condition
B) loop exit statement
C) loop determinant
D) loop condition
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
16
____ means to assign a beginning value to the counter or accumulator.

A) Imprinting
B) Baselining
C) Selecting
D) Initializing
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
17
The repetition structure is also referred to as a(n) ____.

A) loop
B) extension
C) block
D) case
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
18
In a(n) ____ loop, the condition is evaluated after the instructions within the loop are processed.

A) finite
B) infinite
C) pretest
D) posttest
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
19
When using the InputBox function, you should use ____ for the prompt.

A) sentence capitalization
B) all uppercase letters
C) book capitalization
D) all lowercase letters
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
20
The value returned by the InputBox function depends on ____.

A) the default settings
B) the mode the program is in
C) the input area
D) the button the user chooses
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
21
A form's ____________________ event occurs when an application is started.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
22
The position of the items stored in a list box depends on the value stored in the list box's _____ property.

A) Count
B) Sorted
C) SelectedItem
D) SelectedIndex
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
23
Match each item with a statement below.
a.posttest
f.loop exit condition
b.looping condition
g.index
c.update read
h.pretest
d.repetition
i.String Collection Editor window
e.collection
A loop that evaluates the condition before the instructions within the loop are processed.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
24
You can use the ____________________ statement to exit the Do...Loop statement prematurely, which means to exit it before the loop has finished processing.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
25
The number of choices the user can select in a list box is controlled by the list box's ____ property.

A) SelectionItem
B) SelectionMode
C) SelectionVariable
D) Selection
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
26
Match each item with a statement below.
a.posttest
f.loop exit condition
b.looping condition
g.index
c.update read
h.pretest
d.repetition
i.String Collection Editor window
e.collection
A programming structure used when the programmer needs the computer to repeatedly process one or more program instructions until some condition is met, at which time the repetition structure ends.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
27
The ____________________ list box item is the item already selected when the interface appears.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
28
A ____ box displays a list of items from which the user can select zero items, one item, or multiple items.

A) screen
B) message
C) list
D) refresh
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
29
Each time either the user or a statement selects an item in a list box, both the list box's ____ event and its SelectedIndexChanged event occur.

A) SelectedItemChanged
B) SelectedValueChanged
C) ChosenValueChanged
D) ChosenItemChanged
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
30
Match each item with a statement below.
a.posttest
f.loop exit condition
b.looping condition
g.index
c.update read
h.pretest
d.repetition
i.String Collection Editor window
e.collection
Allows the user to update the value of the input item that controls the loop's condition.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
31
In most cases, you enter a list box's Add methods in the form's ____ event procedure.

A) Enter
B) Update
C) Add
D) Load
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
32
Match each item with a statement below.
a.posttest
f.loop exit condition
b.looping condition
g.index
c.update read
h.pretest
d.repetition
i.String Collection Editor window
e.collection
A group of individual objects treated as one unit.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
33
Match each item with a statement below.
a.posttest
f.loop exit condition
b.looping condition
g.index
c.update read
h.pretest
d.repetition
i.String Collection Editor window
e.collection
The requirement for not repeating the instructions of a loop.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
34
When accessing items in a list box, the first item in the collection has an index of ____.

A) -1
B) 0
C) 1
D) null
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
35
Match each item with a statement below.
a.posttest
f.loop exit condition
b.looping condition
g.index
c.update read
h.pretest
d.repetition
i.String Collection Editor window
e.collection
The requirement for repeating the instructions of a loop.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
36
Match each item with a statement below.
a.posttest
f.loop exit condition
b.looping condition
g.index
c.update read
h.pretest
d.repetition
i.String Collection Editor window
e.collection
Used to specify the list box items during design time.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
37
Match each item with a statement below.
a.posttest
f.loop exit condition
b.looping condition
g.index
c.update read
h.pretest
d.repetition
i.String Collection Editor window
e.collection
A unique number identifying each item in a list box's Items collection.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
38
You can use the ____________________ property to determine whether an item is selected in a list box.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
39
The ____________________ function displays an input dialog box, which is one of the standard dialog boxes available in Visual Basic.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
40
Match each item with a statement below.
a.posttest
f.loop exit condition
b.looping condition
g.index
c.update read
h.pretest
d.repetition
i.String Collection Editor window
e.collection
A loop that evaluates the condition after the instructions within the loop are processed.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
41
Describe how the positions of list box items is determined.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
42
Describe how you determine the number of items in a list box.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
43
What is customary in Windows applications that allow a user to make only one selection from a list box?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
44
How do you enable and disable a control?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
45
Describe the similarities and differences between a pretest loop and a posttest loop.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
46
How should a list box be sized to display the items it contains?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
47
What two list box properties can be used to determine the item selected in the list box and to select a list box item from code?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
48
Which method can you use to delay program execution? What is the syntax of the method?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
49
When adding items to a list box, describe how the items in the Items collection for a list box appear.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
50
Explain the syntax and use of the Refresh method.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.