Exam 6: The Repetition Structure
Exam 1: An Introduction to Visual Basic Net50 Questions
Exam 2: Designing Applications50 Questions
Exam 3: Using Variables and Constants50 Questions
Exam 4: The Selection Structure50 Questions
Exam 5: More on the Selection Structure50 Questions
Exam 6: The Repetition Structure50 Questions
Exam 7: Sub and Function Procedures50 Questions
Exam 8: Manipulating Strings50 Questions
Exam 9: Sequential Access Files and Printing50 Questions
Exam 10: Arrays50 Questions
Exam 11: Classes and Objects50 Questions
Exam 12: Adonet and Aspnet50 Questions
Select questions type
The Exit Do statement will cause a premature exit from a Do...Loop structure.
Free
(True/False)
4.8/5
(40)
Correct Answer:
True
The first action performed by the For...Next loop structure is to ____.
Free
(Multiple Choice)
4.9/5
(32)
Correct Answer:
B
You can close a form using the ____ statement in code.
Free
(Multiple Choice)
4.8/5
(43)
Correct Answer:
D
Consider the following Visual Basic .NET code: Dim unitsReceived as Integer, totalCost as Single, cost as String totalCost=0 unitsReceived=0 cost = InputBox("Enter item cost (without $ or comma), click Cancel when finished", "Data Entry") Do While cost "" unitsReceived = unitsReceived + 1 totalCost = totalCost + val(cost) cost = InputBox("Enter item cost (without $ or comma), click Cancel when finished", "Data Entry") Loop The above code represents a ____ loop example.
(Multiple Choice)
4.8/5
(44)
In a pretest loop, the evaluation of a condition occurs after the instructions within the loop are processed.
(True/False)
4.7/5
(39)
Typically, you enter the SelectAll method in a text box control's ____ event.
(Multiple Choice)
4.8/5
(27)
The Do...Loop statement executes exactly the same whether using the While or the Until clause.
(True/False)
4.8/5
(39)
Of the two loop types, pretest and posttest, the posttest is the more commonly used structure.
(True/False)
4.8/5
(39)
The condition in the Do...Loop statement can contain variables, constants, properties, methods, and operators.
(True/False)
4.8/5
(38)
Consider the following Visual Basic .NET code: Dim unitsReceived as Integer, totalCost as Single, cost as String totalCost=0 unitsReceived=0 cost = InputBox("Enter item cost (without $ or comma), click Cancel when finished", "Data Entry") Do While cost "" unitsReceived = unitsReceived + 1 totalCost = totalCost + val(cost) cost = InputBox("Enter item cost (without $ or comma), click Cancel when finished", "Data Entry") Loop Which instruction represents initialization?
(Multiple Choice)
4.8/5
(43)
To leave a Do...Loop structure earlier than its full completion you must execute a(n) ____ statement.
(Multiple Choice)
4.8/5
(37)
Which of the following loop structures always executes at least once?
(Multiple Choice)
4.9/5
(39)
In a nested repetition structure, one loop, referred to as the ____ loop, is placed entirely within another loop, called the ____ loop.
(Multiple Choice)
4.9/5
(37)
A text box control's ____ event occurs when the user tabs to the control, and when the Focus method is used to send the focus to the control.
(Multiple Choice)
4.8/5
(40)
If the stepvalue is omitted when coding a For...Next statement, at execution time the stepvalue is ____.
(Multiple Choice)
4.9/5
(39)
A form's ____ event is triggered when a form is about to be closed.
(Multiple Choice)
4.8/5
(30)
In either pretest or posttest loops, the controlling condition is evaluated with each repetition.
(True/False)
4.9/5
(38)
Showing 1 - 20 of 50
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)