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 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 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
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)