Exam 5: Loops, Files, and Random Numbers
Exam 1: Introduction to Computers and Programming161 Questions
Exam 2: Introduction to Visual C131 Questions
Exam 3: Processing Data174 Questions
Exam 4: Making Decisions77 Questions
Exam 5: Loops, Files, and Random Numbers109 Questions
Exam 6: Modularizing Your Code With Methods61 Questions
Exam 7: Arrays and Lists99 Questions
Exam 8: More About Processing Data87 Questions
Exam 9: Classes and Multiform Projects89 Questions
Exam 10: Inheritance and Polymorphism37 Questions
Exam 11: Databases69 Questions
Select questions type
When you want to write data to a text file, you create a file object using the ____________.
(Multiple Choice)
4.8/5
(33)
Most programming languages provide two different ways to access data stored in a file: sequential access and direct access.
(True/False)
4.8/5
(40)
____________ are commonly used to control the number of times that a loop iterates.
(Multiple Choice)
4.8/5
(35)
You can change the default text displayed in the Save As dialog box's title bar by changing the SaveFileDialog control's DisplayText property.
(True/False)
5.0/5
(36)
When the ++ and -- operators are written after their operands it is called ____________.
(Multiple Choice)
4.8/5
(40)
When you work with a ____________, you access data from the beginning of the file to the end of the file.
(Multiple Choice)
4.8/5
(38)
There are always three steps that must be taken when a file is used by a program: opening the file, processing the file, and then closing the file.
(True/False)
4.9/5
(38)
The first expression that appears in the loop header of the for loop is the ____________, which is normally used to initialize a counter variable to its starting value.
(Multiple Choice)
4.9/5
(36)
In code, you can display a Save As dialog box by calling the SaveFileDialog control's ____________ method.
(Multiple Choice)
4.8/5
(36)
Because the for loop tests its Boolean expression before it performs an iteration, it is a ____________.
(Multiple Choice)
4.8/5
(40)
A ____________ contains data that has not been converted to text.
(Multiple Choice)
4.8/5
(49)
Be careful not to place a statement that modifies the counter variable in the body of the ____________.
(Multiple Choice)
4.9/5
(39)
In general, there are three types of files: text, binary, and bitmap.
(True/False)
4.8/5
(39)
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.8/5
(40)
Counter variables are commonly used to hold Boolean values that control the number of times that a loop iterates.
(True/False)
4.9/5
(33)
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.9/5
(41)
To append data to an existing file, you open it with the ____________ method.
(Multiple Choice)
4.9/5
(32)
It is possible to write a for loop in such a way that it will never iterate.
(True/False)
4.7/5
(39)
Showing 81 - 100 of 109
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)