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
A(n) ____________ accumulates a total by adding each number in a series to a variable that holds the sum.
Free
(Multiple Choice)
4.8/5
(41)
Correct Answer:
A
When controls such as the OpenFileDialog and SaveFileDialog are created, they do not appear on the form, but in an area at the bottom of the Designer known as the ____________.
Free
(Multiple Choice)
4.8/5
(35)
Correct Answer:
C
The ++ and -- operators can be written before their operands, which is called ____________.
Free
(Multiple Choice)
4.8/5
(36)
Correct Answer:
C
The third expression appearing in the header of a for loop is the ____________, which executes at the end of each iteration. It usually increments the loop's counter variable.
(Multiple Choice)
4.9/5
(27)
Once you have created a Random object, you can call its ____________ method to get a random integer number.
(Multiple Choice)
4.8/5
(37)
The ____________ allows the user to browse the system and select a location and name for a file that is about to be saved.
(Multiple Choice)
4.9/5
(36)
A ____________, is an object associated with a specific file and provides a way for the program to work with that file.
(Multiple Choice)
4.9/5
(48)
By indenting the statements in the body of a loop, you visually set the loop body apart from the surrounding code.
(True/False)
4.8/5
(44)
In most circumstances you should avoid writing loops that never-end.
(True/False)
4.8/5
(43)
A ____________ character is an invisible character that marks the end of a line of text.
(Multiple Choice)
4.8/5
(33)
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
(43)
If the user clicks the Open button, the OpenFileDialog control's ShowDialog method returns the value ____________.
(Multiple Choice)
4.9/5
(34)
Because the for loop tests its Boolean expression before it performs an iteration, it is a ____________.
(Multiple Choice)
5.0/5
(35)
The ____________ is a posttest loop, which means it performs an iteration before testing its Boolean expression.
(Multiple Choice)
4.9/5
(25)
The ____________ displays a standard Windows Save As dialog box.
(Multiple Choice)
4.8/5
(32)
Each time a loop executes its statement or statements, we say the loop is performing a(n) ____________.
(Multiple Choice)
4.7/5
(37)
The first expression appearing in the header of a for loop is the ____________, which usually assigns a starting value to a counter variable.
(Multiple Choice)
4.7/5
(29)
To ____________ a variable means to decrease its value by 1.
(Multiple Choice)
4.8/5
(43)
Showing 1 - 20 of 112
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)