Exam 6: The Repetition Structure

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

What is an accumulator? What does it mean to initialize and update an accumulator in a program?

(Essay)
4.8/5
(37)

To leave a Do...Loop structure earlier than its full completion, you must execute a(n) ____ statement.

(Multiple Choice)
4.9/5
(41)

You should use a ____ control to provide keyboard access to a list box.

(Multiple Choice)
4.8/5
(36)

Visual Basic's ____ class contains many methods that your applications can use to perform financial calculations.

(Multiple Choice)
4.9/5
(37)

Which of the following statements pauses program execution for 3 seconds?

(Multiple Choice)
4.8/5
(29)

Write two different Do...Loop clauses that stop the loop when the value in the intAmount is less than or equal to the value in the intLimit variable. Use the Until keyword in the first clause, and use the While keyword in the second clause.

(Essay)
4.9/5
(44)

You use the ____ tool in the toolbox to add a list box to an interface.

(Multiple Choice)
4.8/5
(35)

A unique number called a(n) ____ identifies each item in a collection.

(Multiple Choice)
4.8/5
(37)

The number of choices the user can select from a list box is controlled by the list box's ____ property.

(Multiple Choice)
4.7/5
(37)

Each time either the user or a statement selects an item in a list box, the list box's SelectedValueChanged and ____ events occur.

(Multiple Choice)
4.8/5
(32)

A list box should contain a minimum of ____ item(s).

(Multiple Choice)
4.9/5
(43)

In a nested repetition structure, one loop, referred to as the ____ loop, is placed entirely within another loop, called the ____ loop.

(Multiple Choice)
4.8/5
(41)

Adding increments of a negative number is referred to as ____.

(Multiple Choice)
4.9/5
(38)

You can stop an endless loop by clicking Debug on the menu bar, and then clicking ____.

(Multiple Choice)
4.8/5
(33)

Case-Based Critical Thinking Questions Case 1 - XYZ Solutions You have just started working for XYZ Solutions as a programmer. Your first assignment is to review and correct various code so that you can become familiar with the company's programs. The following code is not working properly. The message should display four times. What needs to be changed for the code to work properly? Do While intCounter MessageBox.Show("OK") IntCounter = intCounter + 1 Loop

(Multiple Choice)
4.7/5
(42)

In a pretest loop, the evaluation of the condition occurs after the instructions within the loop are processed.

(True/False)
4.8/5
(45)

What is the Refresh method? Write the syntax for this method.

(Essay)
4.7/5
(29)

A ____ structure is also referred to as a loop.

(Multiple Choice)
4.9/5
(38)

Write the assignment statements needed to increment the intCount counter by 1 and update the decBalance variable by the value stored in the decOrderAmount variable.

(Essay)
4.8/5
(41)

Write a pretest loop that adds together integers from 1 to 50. Use the intNumber variable (which contains the number 1) to keep track of the integers. Store the result in the intResult variable (which contains the number 0). Use the Do...Loop statement and the While keyword.

(Essay)
4.8/5
(34)
Showing 41 - 60 of 60
close modal

Filters

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