Exam 5: Loops, Files, and Random Numbers

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

The statement or block of statements following the while clause is known as the ____________ of the loop.

(Multiple Choice)
4.9/5
(27)

The ____________ is a method in by the StreamWriter class that writes an string to a text file without writing a newline character.

(Multiple Choice)
4.8/5
(38)

In order for a program to work with a file on the computer's disk, the program must create a file object using code statements.

(True/False)
4.7/5
(41)

You can call a Random object's ____________ method to get a random floating-point number between 0.0 and 1.0.

(Multiple Choice)
5.0/5
(38)

The decrement operator is ____________.

(Multiple Choice)
4.9/5
(46)

The Load event takes place before the form is displayed on the screen.

(True/False)
4.8/5
(31)

It is possible to write a for loop in such a way that it will never iterate.

(True/False)
4.8/5
(32)

By default, the word Open is displayed in an Open dialog box's title bar.

(True/False)
4.8/5
(36)

The variable that accumulates a total of the numbers in a running total is called a(n) ____________.

(Multiple Choice)
4.7/5
(42)

When you want to read data from a text file, you create a file object using the ____________.

(Multiple Choice)
4.8/5
(35)

In a counter-controlled loop, you can only decrement the counter variable.

(True/False)
4.9/5
(29)

When you work with a ____________, you can jump directly to any piece of data in the file without reading the data that comes before it.

(Multiple Choice)
4.7/5
(34)

You can use the StreamReader class's ____________ method to read a line of text from a file.

(Multiple Choice)
4.9/5
(48)

The NextDouble method in the Random class generates a value as high as 1.0 X 108.

(True/False)
4.9/5
(43)

The do-while loop always performs at least one iteration, even if its Boolean expression is false to begin with.

(True/False)
4.9/5
(42)

When you write a stand-alone statement to increment a variable, the prefix operator is faster than the postfix version.

(True/False)
4.9/5
(36)

When keeping a running total, the accumulator variable can start with any value and still contain the correct total when the loop finishes.

(True/False)
4.7/5
(38)

A ____________ is used in the calculation to generate random numbers.

(Multiple Choice)
4.9/5
(41)

When a program writes to an output file, a special value known as a translator keeps track of the current position in the file.

(True/False)
4.8/5
(33)

Virtually all operating systems follow the same set of rules for naming files.

(True/False)
4.8/5
(40)
Showing 41 - 60 of 112
close modal

Filters

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