Exam 5: Loops, Files, and Random Numbers
Exam 1: Introduction to Computers and Programming161 Questions
Exam 2: Introduction to Visual C#131 Questions
Exam 3: Processing Data176 Questions
Exam 4: Making Decisions78 Questions
Exam 5: Loops, Files, and Random Numbers112 Questions
Exam 6: Modularizing Your Code with Methods69 Questions
Exam 7: Arrays and Lists99 Questions
Exam 8: More About Processing Data90 Questions
Exam 9: Classes and Multiform Projects89 Questions
Exam 10: Inheritance and Polymorphism37 Questions
Exam 11: Databases69 Questions
Select questions type
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
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)