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 Collections75 Questions
Exam 9: Introduction to Windows Programming75 Questions
Exam 10: Programming Based on Events74 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 Applications75 Questions
Select questions type
You must tell the user what value to type to end the loop for ____.
(Multiple Choice)
4.7/5
(99)
You often need to do a "prime the read" for counter controlled loops which means that you would input a value before going into the body of the loop.
(True/False)
4.8/5
(76)
Using the break or continue statements with a loop violates the single entry and single exit guideline for developing a loop.
(True/False)
4.8/5
(74)
The do...while statement is a posttest loop,which means that the conditional expression is tested before any of the statements in the body of the loop are performed.
(True/False)
4.9/5
(76)
With while loops,if the conditional expression evaluates to true,the body of the loop is not performed;control transfers to the statements following the loop.
(True/False)
4.8/5
(80)
An option other than looping that can be used to repeat program statement is _____________.With this technique a method calls itself repeatedly until it arrives at the solution.
(Short Answer)
4.9/5
(71)
The third programming construct repetition is also called ____________.
(Short Answer)
4.8/5
(87)
With counter controlled loops,it is important to think through and ____________ to ensure they have been taken into consideration.You should always check the initial and final values of the loop control variable and verify that you get the expected results at the boundaries.
(Short Answer)
4.7/5
(78)
Scope refers to the region in the program in which you can use the variable.
(True/False)
4.9/5
(76)
The only posttest loop structure available with C# is the ____________ loop structure.
(Short Answer)
4.8/5
(92)
Class diagrams show the data,method,and property members of a class.
(True/False)
4.9/5
(78)
Windows applications use an event-driven model to manage the interaction between the user and the GUI by handling the repetition for you.
(True/False)
4.8/5
(72)
for (int i = 0; i < 5; i++)
Console.Write(i + "\t");
-The conditional expression used with the for statement ____.
(Multiple Choice)
4.9/5
(73)
An interpretation of the while statement is "while the condition is true,perform statement(s)".
(True/False)
4.9/5
(89)
int counter = 0;
while (counter < 100)
{
Console.WriteLine(counter);
counter++;
}
-The most appropriate sentinel value that might be selected for month of the year is ____.
(Multiple Choice)
4.9/5
(74)
Instead of requiring that a dummy value be entered after all values are processed,a ____-controlled loop initializes a variable on the outside of the loop and then evaluates the variable to see when it changes values.Its value is changed inside the loop body when the loop should exit.
(Multiple Choice)
4.9/5
(103)
A restriction on using the foreach statement is that you cannot change values in the collection.The access to the elements is read-only.
(True/False)
4.9/5
(79)
The _____________ method of the MessageBox class displays a predefined dialog box that can contain text,captions for the title bar,special buttons,and icons.
(Short Answer)
4.8/5
(80)
A sentinel controlled loop is also called a flag-controlled loop.
(True/False)
4.7/5
(88)
int inner; for (int outer = 0;outer < 3;outer++)
{
For (inner = 1;inner < 2;inner++)
Console.WriteLine("Outer: {0}\tInner: {1}",outer,inner);
}
The nested for statement above displays how many lines of output?
(Multiple Choice)
4.7/5
(85)
Showing 41 - 60 of 75
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)