Exam 6: Repeating Instructions

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

The only posttest loop structure available in C# is _____.

(Multiple Choice)
4.7/5
(30)

With the while loop, the body of the loop is ____.

(Multiple Choice)
4.9/5
(33)

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)

In C# curly braces must be added to surround all loop bodies.

(True/False)
4.8/5
(36)

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
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)