Exam 5: Loops, Files, and Random Numbers

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

A(n) ____________ accumulates a total by adding each number in a series to a variable that holds the sum.

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

A

When controls such as the OpenFileDialog and SaveFileDialog are created, they do not appear on the form, but in an area at the bottom of the Designer known as the ____________.

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

C

The ++ and -- operators can be written before their operands, which is called ____________.

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

C

The third expression appearing in the header of a for loop is the ____________, which executes at the end of each iteration. It usually increments the loop's counter variable.

(Multiple Choice)
4.9/5
(27)

Once you have created a Random object, you can call its ____________ method to get a random integer number.

(Multiple Choice)
4.8/5
(37)

The ____________ allows the user to browse the system and select a location and name for a file that is about to be saved.

(Multiple Choice)
4.9/5
(36)

A ____________, is an object associated with a specific file and provides a way for the program to work with that file.

(Multiple Choice)
4.9/5
(48)

By indenting the statements in the body of a loop, you visually set the loop body apart from the surrounding code.

(True/False)
4.8/5
(44)

In most circumstances you should avoid writing loops that never-end.

(True/False)
4.8/5
(43)

A ____________ character is an invisible character that marks the end of a line of text.

(Multiple Choice)
4.8/5
(33)

If a ListBox is empty, the Items.Count property equals −1.

(True/False)
4.8/5
(38)

When the user selects a file with the Open dialog box, the file's path and filename are stored in the control's ____________.

(Multiple Choice)
4.8/5
(43)

The first line of the for loop is known as the loop title.

(True/False)
4.9/5
(37)

If the user clicks the Open button, the OpenFileDialog control's ShowDialog method returns the value ____________.

(Multiple Choice)
4.9/5
(34)

Because the for loop tests its Boolean expression before it performs an iteration, it is a ____________.

(Multiple Choice)
5.0/5
(35)

The ____________ is a posttest loop, which means it performs an iteration before testing its Boolean expression.

(Multiple Choice)
4.9/5
(25)

The ____________ displays a standard Windows Save As dialog box.

(Multiple Choice)
4.8/5
(32)

Each time a loop executes its statement or statements, we say the loop is performing a(n) ____________.

(Multiple Choice)
4.7/5
(37)

The first expression appearing in the header of a for loop is the ____________, which usually assigns a starting value to a counter variable.

(Multiple Choice)
4.7/5
(29)

To ____________ a variable means to decrease its value by 1.

(Multiple Choice)
4.8/5
(43)
Showing 1 - 20 of 112
close modal

Filters

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