Deck 14: Let Me Count the Ways Counter-Controlled Loops

ملء الشاشة (f)
exit full mode
سؤال
A counter-controlled loop uses a counter ____ to keep track of the number of times the loop instructions are processed.

A) variable
C) condition
B) constant
D) control
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
You can declare the counter variable in a Dim statement, as long as the Dim statement appears somewhere after the For…Next statement.
سؤال
A counter-controlled loop can be either a pretest loop or a posttest loop.
سؤال
When you declare a variable in the For clause, the variable stays in the computer's internal memory when the loop ends.
سؤال
The For...Next statement provides the most convenient way to code a posttest counter loop.
سؤال
The counter variable must be a(n) ____ variable.

A) iterative
C) alphanumeric
B) alpha
D) numeric
سؤال
Fewer unintentional errors occur in applications when the variables are declared using the ____ scope needed.

A) broadest
C) minimum
B) most open
D) maximum
سؤال
You do not need to specify the name of the counter variable in the Next clause, but doing so is highly recommended because it makes your code more self-documenting.
سؤال
You can use the ____ portion of the For clause to declare the counter variable.

A) As dataType
C) Dim As dataType
B) dataType
D) Dim dataType
سؤال
In the Financial.Pmt method, if Rate is a monthly interest rate, then NPer must specify the number of monthly payments.
سؤال
The My.Computer object provides access to several objects, such as your computer's Audio object.
سؤال
When a variable is declared in a(n) ____ statement at the beginning of a procedure, it has procedure scope and can be used by the entire procedure.

A) Dim
C) As
B) New
D) Create
سؤال
If the audio file is not in the project's bin\Debug folder, you will need to include the path to the file in the fileName argument.
سؤال
A pretest counter loop can only be coded using the Do…Loop statement.
سؤال
You code a posttest counter-controlled loop using the ____ statement.

A) Execute…Until
C) For…Next
B) Do...Loop
D) Do…Counter
سؤال
A loop whose instructions you want processed a precise number of times is often referred to as a ____ loop.

A) conditional
C) counter-controlled
B) precision
D) sequential
سؤال
With the negation operator, a positive number preceded by the negation operator remains a positive number.
سؤال
When you declare a variable in the For clause, the variable has ____ scope and can be used only within the For...Next loop.

A) program
C) solution
B) block
D) method
سؤال
To have the Audio object play an audio file, you use its Sound method.
سؤال
The mathematical formula for calculating a periodic payment on a loan is rather complex, so Visual Basic provides a method that performs the calculation for you.
سؤال
The ____ method contains a complex mathematical formula for calculating a periodic payment.

A) Fincl.Pmt
C) Fin.Pmt
B) Financial.Pmt
D) Fin.Payment
سؤال
The ____ object refers to your computer.

A) This.Computer
C) Local.Computer
B) My.ComputerObject
D) My.Computer
سؤال
The ____ operator reverses the sign of a number.

A) sign change
C) sign
B) change
D) negation
سؤال
Visual Basic's ____ feature exposes a set of commonly used objects to the programmer.

A) Obj
C) MyObj
B) My
D) ComObj
سؤال
To have an application play an audio file while it is running, you use the syntax ____.

A) My.Computer.Play(fileName)
C) My.Computer.Audio.Play(fileName)
B) Play(filename)
D) fileName.Play
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/25
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 14: Let Me Count the Ways Counter-Controlled Loops
1
A counter-controlled loop uses a counter ____ to keep track of the number of times the loop instructions are processed.

A) variable
C) condition
B) constant
D) control
A
2
You can declare the counter variable in a Dim statement, as long as the Dim statement appears somewhere after the For…Next statement.
False
3
A counter-controlled loop can be either a pretest loop or a posttest loop.
True
4
When you declare a variable in the For clause, the variable stays in the computer's internal memory when the loop ends.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
5
The For...Next statement provides the most convenient way to code a posttest counter loop.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
6
The counter variable must be a(n) ____ variable.

A) iterative
C) alphanumeric
B) alpha
D) numeric
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
7
Fewer unintentional errors occur in applications when the variables are declared using the ____ scope needed.

A) broadest
C) minimum
B) most open
D) maximum
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
8
You do not need to specify the name of the counter variable in the Next clause, but doing so is highly recommended because it makes your code more self-documenting.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
9
You can use the ____ portion of the For clause to declare the counter variable.

A) As dataType
C) Dim As dataType
B) dataType
D) Dim dataType
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
10
In the Financial.Pmt method, if Rate is a monthly interest rate, then NPer must specify the number of monthly payments.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
11
The My.Computer object provides access to several objects, such as your computer's Audio object.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
12
When a variable is declared in a(n) ____ statement at the beginning of a procedure, it has procedure scope and can be used by the entire procedure.

A) Dim
C) As
B) New
D) Create
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
13
If the audio file is not in the project's bin\Debug folder, you will need to include the path to the file in the fileName argument.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
14
A pretest counter loop can only be coded using the Do…Loop statement.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
15
You code a posttest counter-controlled loop using the ____ statement.

A) Execute…Until
C) For…Next
B) Do...Loop
D) Do…Counter
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
16
A loop whose instructions you want processed a precise number of times is often referred to as a ____ loop.

A) conditional
C) counter-controlled
B) precision
D) sequential
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
17
With the negation operator, a positive number preceded by the negation operator remains a positive number.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
18
When you declare a variable in the For clause, the variable has ____ scope and can be used only within the For...Next loop.

A) program
C) solution
B) block
D) method
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
19
To have the Audio object play an audio file, you use its Sound method.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
20
The mathematical formula for calculating a periodic payment on a loan is rather complex, so Visual Basic provides a method that performs the calculation for you.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
21
The ____ method contains a complex mathematical formula for calculating a periodic payment.

A) Fincl.Pmt
C) Fin.Pmt
B) Financial.Pmt
D) Fin.Payment
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
22
The ____ object refers to your computer.

A) This.Computer
C) Local.Computer
B) My.ComputerObject
D) My.Computer
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
23
The ____ operator reverses the sign of a number.

A) sign change
C) sign
B) change
D) negation
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
24
Visual Basic's ____ feature exposes a set of commonly used objects to the programmer.

A) Obj
C) MyObj
B) My
D) ComObj
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
25
To have an application play an audio file while it is running, you use the syntax ____.

A) My.Computer.Play(fileName)
C) My.Computer.Audio.Play(fileName)
B) Play(filename)
D) fileName.Play
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.