Exam 5: Loops, Files, and Random Numbers

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

The ++ operator is pronounced "plus plus" and the -- operator is pronounced "minus minus".

(True/False)
4.9/5
(36)

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.9/5
(32)

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

(Multiple Choice)
4.9/5
(39)

In C#, trying to generate a random floating-point number will cause an error.

(True/False)
4.8/5
(43)

You can change the default text displayed in the Open dialog box's title bar by changing the control's ____________.

(Multiple Choice)
4.9/5
(28)

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

(True/False)
4.7/5
(41)

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

(Multiple Choice)
4.9/5
(36)

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

(Multiple Choice)
4.8/5
(38)

To ____________ a variable means to decrease its value.

(Multiple Choice)
4.7/5
(44)

The .NET Framework provides a class named ____________ that you can use in C# to generate random numbers.

(Multiple Choice)
4.8/5
(39)

In code, you can display an Open dialog box by calling the OpenFileDialog control's ShowDialog method.

(True/False)
4.9/5
(35)

ListBox controls have an ____________ method that erases all the items in the Items property.

(Multiple Choice)
4.7/5
(26)

To add an item to a ListBox control with code, you call the control's ____________method.

(Multiple Choice)
4.9/5
(35)

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

(True/False)
4.8/5
(34)

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
(45)

In the update expression of a for loop, it is required to use the ++ operator in the increment expression.

(True/False)
4.9/5
(39)

The ____________ displays a standard Windows Open dialog box.

(Multiple Choice)
4.8/5
(26)

The while loop gets its name from the way it works: While a Boolean expression is true, do some task.

(True/False)
4.9/5
(40)

The term ____________ is used to describe a file from which data is read.

(Multiple Choice)
4.8/5
(42)

The ____________ is a method provided by the StreamWriter class that writes an item of data to a text file without writing a newline character.

(Multiple Choice)
5.0/5
(37)
Showing 21 - 40 of 109
close modal

Filters

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