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

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.8/5
(76)

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

(Multiple Choice)
4.9/5
(71)

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

(True/False)
4.8/5
(83)

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

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

(True/False)
4.7/5
(87)

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

(Multiple Choice)
4.9/5
(76)

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

(Multiple Choice)
4.8/5
(75)

To ____________ a variable means to decrease its value.

(Multiple Choice)
4.7/5
(88)

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

(Multiple Choice)
4.7/5
(73)

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

(True/False)
4.9/5
(80)

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

(Multiple Choice)
4.7/5
(64)

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

(Multiple Choice)
4.9/5
(70)

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

(True/False)
4.8/5
(73)

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

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

(True/False)
4.9/5
(78)

The ____________ displays a standard Windows Open dialog box.

(Multiple Choice)
4.8/5
(62)

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

(True/False)
5.0/5
(81)

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

(Multiple Choice)
4.9/5
(90)

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
(82)
Showing 21 - 40 of 109
close modal

Filters

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