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 .NET Framework provides a class named ____________ that you can use in C# to generate random numbers.
(Multiple Choice)
4.8/5
(37)
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.8/5
(42)
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.8/5
(31)
Be careful not to place a statement that modifies the counter variable inside the body of a ____________.
(Multiple Choice)
5.0/5
(46)
To create file objects, you will need to include the using System.IO namespace at the top of your programs.
(True/False)
4.8/5
(28)
The term ____________ is used to describe a file from which data is read.
(Multiple Choice)
4.9/5
(39)
By default, the Open dialog box displays the contents of the user's Documents directory.
(True/False)
4.7/5
(44)
The ____________ is specifically designed for situations requiring a counter variable to control the number of times a loop iterates.
(Multiple Choice)
4.8/5
(27)
A random integer's range will begin at zero unless you specify otherwise.
(True/False)
4.9/5
(29)
If you call Random.Next( N ) where N = 2, the resulting random values will be either 1 or 1.
(True/False)
4.8/5
(42)
The numbers generated by the Random class are ____________calculated by a formula.
(Multiple Choice)
4.9/5
(43)
The term ____________ is used to describe a file to which data is written.
(Multiple Choice)
4.8/5
(28)
To ____________ a variable means to increase its value by 1.
(Multiple Choice)
4.9/5
(38)
You can only add values of the string data type to a ListBox control.
(True/False)
4.9/5
(37)
Not only may the counter variable of a for loop be initialized in the initialization expression, but it may also be declared there.
(True/False)
5.0/5
(33)
An exception will never be thrown when a program attempts to read beyond the end of a file.
(True/False)
4.8/5
(37)
A ____________ contains data that has been encoded as text using a scheme such as ASCII.
(Multiple Choice)
4.8/5
(38)
When the user specifies a location and filename with the Save As dialog box, the file's path and filename are stored in the control's FilePath property.
(True/False)
4.7/5
(33)
When you work with a ____________, you process data from the beginning of the file to the end of the file.
(Multiple Choice)
4.9/5
(35)
If you specify a path in a string literal, be sure to prefix the string with the ____________ symbol, also known as the literal text character.
(Multiple Choice)
4.9/5
(32)
Showing 21 - 40 of 112
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)