Exam 6: The Repetition Structure

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

A(n) ____ is a numeric variable used for adding together something.

Free
(Multiple Choice)
5.0/5
(37)
Correct Answer:
Verified

D

You can use either the SelectedItem or ____ property to determine whether an item is selected in a list box.

Free
(Multiple Choice)
4.7/5
(35)
Correct Answer:
Verified

B

The loop created by the For...Next statement is a ____ loop.

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

B

Which of the following statements adds the number stored in the decPrice variable to the number stored in the decSubtotal variable, and then assigns the result to the decSubtotal variable?

(Multiple Choice)
4.8/5
(35)

Explain the difference between a pretest loop and a posttest loop.

(Essay)
4.8/5
(30)

The ____ method ensures that any code appearing before it that affects the interface's appearance is processed.

(Multiple Choice)
4.9/5
(35)

You can make a list box any size you want.

(True/False)
4.7/5
(35)

Write a counter-controlled loop that adds 5, 10, 15, 20, 25, and 30 to the lstMinutes control.

(Essay)
4.7/5
(36)

In a Do...Loop statement, the keyword While indicates that the loop instructions should be processed while the condition is false.

(True/False)
4.8/5
(36)

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

(Essay)
4.9/5
(30)

You can use a ____ to display a list of choices from which the user can select zero choices, one choice, or more than one choice.

(Multiple Choice)
4.9/5
(45)

The strCode variable contains an uppercase letter. Write two different Do...Loop clauses that process the loop instructions as long as the value in the strCode variable is either A or B. Use the Until keyword in the first clause, and use the While keyword in the second clause.

(Essay)
4.8/5
(25)

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 in a different program is not working properly. The message should display the value of the intCounter variable if the intCounter variable contains a balance that is less than or equal to 15. The message does not display. What mistake did the previous programmer make? IntCounter = 1 Do Until intCounter MessageBox.Show(intCounter) IntCounter += 1 Loop

(Multiple Choice)
4.8/5
(36)

You can delay program execution using the ____ method.

(Multiple Choice)
4.8/5
(27)

The repetition programming structure is used to make decisions in a program.

(True/False)
4.9/5
(36)

In a Do...Loop statement, a condition can be phrased as either a looping condition or a loop enter condition.

(True/False)
4.8/5
(33)

The assignment statement that updates a counter or an accumulator is placed within the loop in a procedure.

(True/False)
4.8/5
(34)

Explain the difference between a looping condition and a loop exit condition.

(Essay)
4.9/5
(34)

Which of the following loop structures always executes at least once?

(Multiple Choice)
5.0/5
(40)

Which of the following statements selects the "blue" item, which appears fourth in the lstColor control?

(Multiple Choice)
4.8/5
(44)
Showing 1 - 20 of 60
close modal

Filters

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