Deck 7: More on the Repetition Structure

ملء الشاشة (f)
exit full mode
سؤال
A combo box cannot replace a list box.
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
In the following For clause, if the stepvalue is negative, then the startvalue must be ____ to the endvalue for the loop instructions to be processed. For counter [As datatype] = startvalue To endvalue [Step stepvalue]

A) less than or equal
B) greater than or equal
C) equal
D) less than
سؤال
You use the ____ method to select all of the text contained in a text box.

A) Select
B) SelectText
C) SelectEvent
D) SelectAll
سؤال
In a For...Next statement, the declaration, initialization, update, and comparison tasks are handled by the ____ clause.

A) For
B) Init
C) Setup
D) Loop
سؤال
You can place one For...Next statement within another For...Next statement.
سؤال
A ____ sign in a For clause indicates that the loop body will be processed as long as the counter variable's value is less than or equal to the number or variable following the sign.

A) =<
B) >=
C) <=
D) =>
سؤال
Unlike selection structures, repetition structures cannot be nested.
سؤال
Within a For...Next statement, the loop's condition is evaluated ____ the loop body is processed.

A) after
B) before
C) once
D) as soon as
سؤال
In the following For clause, if you omit the stepvalue argument, a stepvalue of ____ is used. For counter [As datatype] = startvalue To endvalue [Step stepvalue]

A) null
B) -1
C) 0
D) 1
سؤال
In the following For clause, you can use the ____ portion to declare the counter variable. For counter [As datatype] = startvalue To endvalue [Step stepvalue]

A) startvalue
B) startvalue To endvalue
C) Step stepvalue
D) As datatype
سؤال
Many programmers use a(n) ____ to represent the For clause in a flowchart.

A) octagon
B) hexagon
C) circle
D) diamond
سؤال
When using the Do...Loop statement to code a counter-controlled loop, you must include a statement to declare and ____ the counter variable.

A) initialize
B) size
C) identify
D) specify
سؤال
The loop created by a For...Next statement is a posttest loop.
سؤال
In the following For clause, how many times will the computer count though the loop structure? For counter As numeric = 1 To 5 Step 1

A) 1
B) 4
C) 5
D) 6
سؤال
In the following For clause, when you declare the counter variable in a Dim statement at the beginning of a procedure, the counter variable has ____ scope. For counter [As datatype] = startvalue To endvalue [Step stepvalue]

A) procedure
B) local
C) block
D) open
سؤال
A programmer uses a counter-controlled loop to process the loop instructions a(n) ____ number of times.

A) infinite
B) unrestricted
C) unlimited
D) precise
سؤال
Three styles of combo boxes are available in Visual Basic.
سؤال
In the following For clause, when you declare the counter variable using the For clause's As datatype argument, the counter variable has ____ scope. For counter [As datatype] = startvalue To endvalue [Step stepvalue]

A) procedure
B) local
C) block
D) open
سؤال
In the following For clause, if the stepvalue is positive, then the startvalue must be ____ to the endvalue for the loop instructions to be processed. For counter [As datatype] = startvalue To endvalue [Step stepvalue]

A) less than or equal
B) greater than or equal
C) equal
D) greater than
سؤال
The purpose of the ____ operator is to reverse the sign of a number.

A) reversal
B) change-sign
C) negation
D) switch
سؤال
Match each item with a statement below.
a.startValue
f.counter-controlled loop
b.Simple
g.combo box
c.loop body
h.DropDown
d.nested
i.endValue
e.list box
Tells the computer where to begin counting for a loop
سؤال
Match each item with a statement below.
a.startValue
f.counter-controlled loop
b.Simple
g.combo box
c.loop body
h.DropDown
d.nested
i.endValue
e.list box
Contains the instructions you want the computer to repeat
سؤال
The style of a combo box is controlled by the combo box's ____ property.

A) Default
B) DropDownStyle
C) Selected
D) Index
سؤال
Match each item with a statement below.
a.startValue
f.counter-controlled loop
b.Simple
g.combo box
c.loop body
h.DropDown
d.nested
i.endValue
e.list box
Style that always displays the List portion of a combo box
سؤال
A ____ is similar to a list box in that it allows the user to select from a list of choices.

A) combo box
B) pulldown box
C) selection box
D) choice box
سؤال
In Visual Basic, how many styles of combo boxes are available?

A) one
B) two
C) three
D) four
سؤال
A text box's ____________________ event occurs when the text box receives the focus.
سؤال
Match each item with a statement below.
a.startValue
f.counter-controlled loop
b.Simple
g.combo box
c.loop body
h.DropDown
d.nested
i.endValue
e.list box
Does not allow the full list of choices to be hidden
سؤال
In a ____ combo box, the text portion is not editable.

A) DropDown
B) Simple
C) DropDownList
D) Standard
سؤال
Match each item with a statement below.
a.startValue
f.counter-controlled loop
b.Simple
g.combo box
c.loop body
h.DropDown
d.nested
i.endValue
e.list box
Allows the full list of choices to be hidden
سؤال
Match each item with a statement below.
a.startValue
f.counter-controlled loop
b.Simple
g.combo box
c.loop body
h.DropDown
d.nested
i.endValue
e.list box
The default style of a combo box
سؤال
The ____________________ method calculates the periodic payments on a loan amount.
سؤال
Match each item with a statement below.
a.startValue
f.counter-controlled loop
b.Simple
g.combo box
c.loop body
h.DropDown
d.nested
i.endValue
e.list box
Placing one loop within another
سؤال
In the following For clause, the startvalue, endvalue, and stepvalue items must be a(n) ____________________ data type.
For counter [As datatype] = startvalue To endvalue [Step stepvalue]
سؤال
A control's ____________________ event occurs when a change is made to the contents of the control's Text property.
سؤال
It is customary in Windows applications to select (highlight) the existing text when a text box receives the ____________________.
سؤال
Match each item with a statement below.
a.startValue
f.counter-controlled loop
b.Simple
g.combo box
c.loop body
h.DropDown
d.nested
i.endValue
e.list box
Tells the computer where to end counting for a loop
سؤال
You use the ____ tool in the toolbox to add a combo box to an interface.

A) ComboBox
B) Combo
C) Box
D) ComboList
سؤال
Match each item with a statement below.
a.startValue
f.counter-controlled loop
b.Simple
g.combo box
c.loop body
h.DropDown
d.nested
i.endValue
e.list box
Used when you want the computer to process instructions a precise number of times.
سؤال
In a ____ combo box, the list portion is always displayed.

A) DropDown
B) Simple
C) DropDownList
D) Standard
سؤال
Describe the two main differences between a combo box and a list box and the advantages of each.
سؤال
How do you add images to an Image List Control's images collection?
سؤال
Given the following For clause, describe the four values or arguments recorded inside the For clause flowchart hexagon.
For counter [As datatype] = startvalue To endvalue [Step stepvalue]
سؤال
Describe the way in which a control's TextChanged event occurs.
سؤال
Describe the two ways in which a text box's Enter event occurs.
سؤال
How do you decide where to declare the For…Next statement's counter variable? What considerations should be taken into account?
سؤال
Why is it highly recommended to specify the name of the counter variable in the Next clause of a For...Next statement?
سؤال
Describe the three combo box styles available in Visual Basic and how they are set.
سؤال
What is the purpose of an image list control?
سؤال
In the following For clause, describe how the computer will count though the loop structure.
For counter As Integer = 9 To 14 Step 1
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/50
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 7: More on the Repetition Structure
1
A combo box cannot replace a list box.
False
2
In the following For clause, if the stepvalue is negative, then the startvalue must be ____ to the endvalue for the loop instructions to be processed. For counter [As datatype] = startvalue To endvalue [Step stepvalue]

A) less than or equal
B) greater than or equal
C) equal
D) less than
B
3
You use the ____ method to select all of the text contained in a text box.

A) Select
B) SelectText
C) SelectEvent
D) SelectAll
D
4
In a For...Next statement, the declaration, initialization, update, and comparison tasks are handled by the ____ clause.

A) For
B) Init
C) Setup
D) Loop
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
5
You can place one For...Next statement within another For...Next statement.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
6
A ____ sign in a For clause indicates that the loop body will be processed as long as the counter variable's value is less than or equal to the number or variable following the sign.

A) =<
B) >=
C) <=
D) =>
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
7
Unlike selection structures, repetition structures cannot be nested.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
8
Within a For...Next statement, the loop's condition is evaluated ____ the loop body is processed.

A) after
B) before
C) once
D) as soon as
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
9
In the following For clause, if you omit the stepvalue argument, a stepvalue of ____ is used. For counter [As datatype] = startvalue To endvalue [Step stepvalue]

A) null
B) -1
C) 0
D) 1
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
10
In the following For clause, you can use the ____ portion to declare the counter variable. For counter [As datatype] = startvalue To endvalue [Step stepvalue]

A) startvalue
B) startvalue To endvalue
C) Step stepvalue
D) As datatype
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
11
Many programmers use a(n) ____ to represent the For clause in a flowchart.

A) octagon
B) hexagon
C) circle
D) diamond
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
12
When using the Do...Loop statement to code a counter-controlled loop, you must include a statement to declare and ____ the counter variable.

A) initialize
B) size
C) identify
D) specify
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
13
The loop created by a For...Next statement is a posttest loop.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
14
In the following For clause, how many times will the computer count though the loop structure? For counter As numeric = 1 To 5 Step 1

A) 1
B) 4
C) 5
D) 6
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
15
In the following For clause, when you declare the counter variable in a Dim statement at the beginning of a procedure, the counter variable has ____ scope. For counter [As datatype] = startvalue To endvalue [Step stepvalue]

A) procedure
B) local
C) block
D) open
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
16
A programmer uses a counter-controlled loop to process the loop instructions a(n) ____ number of times.

A) infinite
B) unrestricted
C) unlimited
D) precise
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
17
Three styles of combo boxes are available in Visual Basic.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
18
In the following For clause, when you declare the counter variable using the For clause's As datatype argument, the counter variable has ____ scope. For counter [As datatype] = startvalue To endvalue [Step stepvalue]

A) procedure
B) local
C) block
D) open
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
19
In the following For clause, if the stepvalue is positive, then the startvalue must be ____ to the endvalue for the loop instructions to be processed. For counter [As datatype] = startvalue To endvalue [Step stepvalue]

A) less than or equal
B) greater than or equal
C) equal
D) greater than
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
20
The purpose of the ____ operator is to reverse the sign of a number.

A) reversal
B) change-sign
C) negation
D) switch
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
21
Match each item with a statement below.
a.startValue
f.counter-controlled loop
b.Simple
g.combo box
c.loop body
h.DropDown
d.nested
i.endValue
e.list box
Tells the computer where to begin counting for a loop
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
22
Match each item with a statement below.
a.startValue
f.counter-controlled loop
b.Simple
g.combo box
c.loop body
h.DropDown
d.nested
i.endValue
e.list box
Contains the instructions you want the computer to repeat
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
23
The style of a combo box is controlled by the combo box's ____ property.

A) Default
B) DropDownStyle
C) Selected
D) Index
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
24
Match each item with a statement below.
a.startValue
f.counter-controlled loop
b.Simple
g.combo box
c.loop body
h.DropDown
d.nested
i.endValue
e.list box
Style that always displays the List portion of a combo box
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
25
A ____ is similar to a list box in that it allows the user to select from a list of choices.

A) combo box
B) pulldown box
C) selection box
D) choice box
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
26
In Visual Basic, how many styles of combo boxes are available?

A) one
B) two
C) three
D) four
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
27
A text box's ____________________ event occurs when the text box receives the focus.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
28
Match each item with a statement below.
a.startValue
f.counter-controlled loop
b.Simple
g.combo box
c.loop body
h.DropDown
d.nested
i.endValue
e.list box
Does not allow the full list of choices to be hidden
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
29
In a ____ combo box, the text portion is not editable.

A) DropDown
B) Simple
C) DropDownList
D) Standard
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
30
Match each item with a statement below.
a.startValue
f.counter-controlled loop
b.Simple
g.combo box
c.loop body
h.DropDown
d.nested
i.endValue
e.list box
Allows the full list of choices to be hidden
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
31
Match each item with a statement below.
a.startValue
f.counter-controlled loop
b.Simple
g.combo box
c.loop body
h.DropDown
d.nested
i.endValue
e.list box
The default style of a combo box
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
32
The ____________________ method calculates the periodic payments on a loan amount.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
33
Match each item with a statement below.
a.startValue
f.counter-controlled loop
b.Simple
g.combo box
c.loop body
h.DropDown
d.nested
i.endValue
e.list box
Placing one loop within another
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
34
In the following For clause, the startvalue, endvalue, and stepvalue items must be a(n) ____________________ data type.
For counter [As datatype] = startvalue To endvalue [Step stepvalue]
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
35
A control's ____________________ event occurs when a change is made to the contents of the control's Text property.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
36
It is customary in Windows applications to select (highlight) the existing text when a text box receives the ____________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
37
Match each item with a statement below.
a.startValue
f.counter-controlled loop
b.Simple
g.combo box
c.loop body
h.DropDown
d.nested
i.endValue
e.list box
Tells the computer where to end counting for a loop
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
38
You use the ____ tool in the toolbox to add a combo box to an interface.

A) ComboBox
B) Combo
C) Box
D) ComboList
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
39
Match each item with a statement below.
a.startValue
f.counter-controlled loop
b.Simple
g.combo box
c.loop body
h.DropDown
d.nested
i.endValue
e.list box
Used when you want the computer to process instructions a precise number of times.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
40
In a ____ combo box, the list portion is always displayed.

A) DropDown
B) Simple
C) DropDownList
D) Standard
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
41
Describe the two main differences between a combo box and a list box and the advantages of each.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
42
How do you add images to an Image List Control's images collection?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
43
Given the following For clause, describe the four values or arguments recorded inside the For clause flowchart hexagon.
For counter [As datatype] = startvalue To endvalue [Step stepvalue]
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
44
Describe the way in which a control's TextChanged event occurs.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
45
Describe the two ways in which a text box's Enter event occurs.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
46
How do you decide where to declare the For…Next statement's counter variable? What considerations should be taken into account?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
47
Why is it highly recommended to specify the name of the counter variable in the Next clause of a For...Next statement?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
48
Describe the three combo box styles available in Visual Basic and how they are set.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
49
What is the purpose of an image list control?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
50
In the following For clause, describe how the computer will count though the loop structure.
For counter As Integer = 9 To 14 Step 1
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.