Exam 5: Loops, Files, and Random Numbers

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

The ____________ displays a standard Windows Open dialog box.

(Multiple Choice)
4.8/5
(38)

The Next method in the Random class generates a floating-point number.

(True/False)
4.7/5
(29)

A ____________ contains data that cannot be viewed by a text editor (such as NotePad).

(Multiple Choice)
4.8/5
(33)

When reading numeric data from a text file, the Parse and TryParse methods can be used to convert the items from string values to numeric data types.

(True/False)
4.9/5
(39)

Incrementing and decrementing are so commonly done in programs that C# provides the ++ and -- unary operators for just these purposes.

(True/False)
4.9/5
(35)

The ____________ is useful in applications that must open an existing file because it allows the user to browse the system and select the file.

(Multiple Choice)
4.9/5
(38)

When working with files, you can write a try-catch statement to handle unexpected errors.

(True/False)
4.9/5
(39)

A while loop will always iterate at least once, even if the Boolean expression is initially false.

(True/False)
4.8/5
(38)

Counter variables are commonly used to hold Boolean values that control the number of times a loop iterates.

(True/False)
4.7/5
(47)

The SaveFileDialog control displays Save As in the dialog window's title bar.

(True/False)
4.9/5
(35)

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

(Multiple Choice)
4.8/5
(24)

Many systems, including MS-Windows, support the use of ____________, which are short sequences of characters that appear at the end of filenames and are preceded by a period.

(Multiple Choice)
4.9/5
(37)

If you are writing a while loop that has only one statement in its body, you do not have enclose the statement inside curly braces.

(True/False)
4.8/5
(39)

To append data to an existing file, you open it with the ____________ method.

(Multiple Choice)
4.9/5
(32)

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 values generated by the Random class are not really random-instead, they are determined by a formula that only makes the number appear as if they were random.

(True/False)
4.8/5
(31)

When you create an OpenFileDialog control, its Filename property is initially set to the directory where the program's executable file is located.

(True/False)
4.7/5
(36)

When the WriteLine method writes data to a file, it writes a null character immediately following the data.

(True/False)
4.9/5
(39)

You can use the StreamReader class's ____________ to determine if the file's read position is at the end of the file.

(Multiple Choice)
4.8/5
(32)

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

(Multiple Choice)
4.8/5
(46)
Showing 61 - 80 of 112
close modal

Filters

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