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
In the loop header of the for loop, which expression should not end with a semicolon?
(Multiple Choice)
4.9/5
(86)
A ____________ is an invisible character that specifies the end of a line of text.
(Multiple Choice)
4.9/5
(74)
The ____________ is a posttest loop, which means it performs an iteration before testing its Boolean expression.
(Multiple Choice)
4.9/5
(90)
The ____________ begins with the word while, followed by a Boolean expression that is enclosed in parentheses.
(Multiple Choice)
4.8/5
(68)
The numbers that are generated by the Random class are ____________that are calculated by a formula.
(Multiple Choice)
4.8/5
(71)
In a count-controlled loop, you can only decrement the counter variable.
(True/False)
4.9/5
(78)
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.9/5
(95)
A ____________, is an object that is associated with a specific file and provides a way for the program to work with that file.
(Multiple Choice)
4.9/5
(81)
The third expression that appears in the loop header of the for loop is the ____________, which executes at the end of each iteration, and it is typically the statement that increments the loop's counter variable.
(Multiple Choice)
4.9/5
(84)
When a variable is declared in the initialization expression of a for loop, the scope of the variable is limited to the loop.
(True/False)
4.9/5
(82)
ListBox controls have an ____________ property that reports the number of items stored in the ListBox.
(Multiple Choice)
4.8/5
(83)
You can specify the directory to be initially displayed by the Open dialog box by storing its path in the ____________.
(Multiple Choice)
4.8/5
(84)
An exception will be thrown if a program attempts to read beyond the end of a file.
(True/False)
4.8/5
(93)
Random numbers are useful for lots of different programming tasks.
(True/False)
4.9/5
(63)
A(n) ____________ accumulates a total by adding each number in a series as they are read from a file.
(Multiple Choice)
4.7/5
(71)
The expression ____________ causes an object of the Random class to be created in memory.
(Multiple Choice)
4.9/5
(76)
When you create an OpenFileDialog control, its Filename property is initially set to the control's default name.
(True/False)
4.9/5
(74)
You can use the StreamWriter class's WriteLine or Write methods to write numbers to a text file, but the numbers are converted to strings.
(True/False)
4.9/5
(83)
Showing 41 - 60 of 109
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)