Exam 6: The Repetition Structure

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

The Exit Do statement will cause a premature exit from a Do...Loop structure.

Free
(True/False)
4.8/5
(40)
Correct Answer:
Verified

True

The first action performed by the For...Next loop structure is to ____.

Free
(Multiple Choice)
4.9/5
(32)
Correct Answer:
Verified

B

You can close a form using the ____ statement in code.

Free
(Multiple Choice)
4.8/5
(43)
Correct Answer:
Verified

D

The stepvalue in a For...Next loop structure must be positive.

(True/False)
4.9/5
(40)

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)

A posttest loop structure is always executed at least once.

(True/False)
4.8/5
(32)

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)

The Do...Loop statement cannot be used to code a pretest loop.

(True/False)
4.8/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
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)