Exam 6: Repeating Instructions
Exam 1: Introduction to Computing and Programming75 Questions
Exam 2: Data Types and Expressions75 Questions
Exam 3: Methods and Behaviors75 Questions
Exam 4: Creating Your Own Classes75 Questions
Exam 5: Making Decisions75 Questions
Exam 6: Repeating Instructions75 Questions
Exam 7: Arrays75 Questions
Exam 8: Advanced Collections74 Questions
Exam 9: Introduction to Windows Programming75 Questions
Exam 10: Programming Based on Events75 Questions
Exam 11: Advanced Object-Oriented Programming Features75 Questions
Exam 12: Debugging and Handling Exceptions75 Questions
Exam 13: Working With Files75 Questions
Exam 14: Working With Databases75 Questions
Exam 15: Web-Based Applications73 Questions
Select questions type
int loopVariable = 0; do
{
Console.WriteLine("Count = {0:}", ++loopVariable);
}while (loopVariable < 5);
What will be printed during the first iteration through the loop?
(Multiple Choice)
4.8/5
(31)
The ____________ statement is a pretest form of loop which is considered a specialized form of the while statement and is usually associated with counter-controlled types of loops;
(Short Answer)
4.8/5
(37)
An interpretation of the while statement is "while the condition is true, perform statement(s)".
(True/False)
4.9/5
(34)
Iteration is a technique used where a method calls itself repeatedly until it arrives at the solution.
(True/False)
4.9/5
(34)
A method that calls itself repeatedly until it arrives at the solution is a(n) ____method.
(Multiple Choice)
4.9/5
(46)
Which of the following is an advantage of a sentinel-controlled loop?
(Multiple Choice)
4.8/5
(36)
When one of the program statement included within the body of a loop is another loop, a(n) ____________ loop is created.
(Short Answer)
4.8/5
(38)
int counter = 0; while (counter < 100)
{
Console.WriteLine(counter);
Counter++;
}
The last value printed with the above program segment is ____.
(Multiple Choice)
4.9/5
(45)
The sentinel value is used as the operand in the conditional expression for an indefinite loop.
(True/False)
4.9/5
(38)
Which of the following is NOT a keyword used to enable unconditional transfer of control to a different program statement?
(Multiple Choice)
4.9/5
(43)
C# performs automatic garbage collection once the loop is finished and releases any variables declared as part of the loop.
(True/False)
4.8/5
(42)
What is NOT required when a counter-controlled loop is created?
(Multiple Choice)
4.8/5
(48)
Showing 61 - 75 of 75
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)