Exam 5: Control Statements: Part 1

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

A can be used in repetition structures to indicate the end of data entry.

(Multiple Choice)
4.8/5
(24)

Which of the following is not an algorithm

(Multiple Choice)
4.9/5
(28)

Postincrementing a variable will delay the incrementing of a variable until the next time the variable is accessed.

(True/False)
4.8/5
(28)

Which statement is false

(Multiple Choice)
4.8/5
(35)

The sentinel value must be chosen so that it cannot be confused with an acceptable in put value.

(True/False)
4.8/5
(31)

What is output by the following C# code segment Int temp = 180; While (temp != 80) { If (temp > 90) { Console.Write("This porridge is too hot! "); // cool down Temp = temp - (temp > 150 100 : 20); } Else { If (temp < 70) { Console.Write("This porridge is too cold! "); // warm up Temp = temp + (temp < 50 30 : 20); } } } If (temp == 80) { Console.WriteLine("This porridge is just right!"); }

(Multiple Choice)
4.9/5
(38)

During the 1960s,it became clear that the indiscriminate use of transfers of control was the root of much difficulty experienced by software development groups.

(True/False)
4.8/5
(28)

What does the expression x %= 10 do

(Multiple Choice)
4.8/5
(30)

Which of the following decrements the variable a by one

(Multiple Choice)
4.8/5
(27)

Pseudocode is most comparable to which of the following languages

(Multiple Choice)
4.9/5
(39)

The three types of selection structures are:

(Multiple Choice)
4.8/5
(26)

What is an algorithm

(Multiple Choice)
4.9/5
(33)

Which of the following correctly represents the expression a = a + 3

(Multiple Choice)
4.9/5
(34)

A set of statements contained in a pair of braces can be placed anywhere in a program at which a single statement can be placed.

(True/False)
4.9/5
(34)

Which of the following terms is not used to refer to a sentinel value that breaks out of a while statement

(Multiple Choice)
4.9/5
(26)

Control statements are helpful in building and manipulating objects.

(True/False)
4.9/5
(41)

Cast operators are used to perform implicit conversions between data types.

(True/False)
4.8/5
(39)

Pseudocode normally describes only executable statements.

(True/False)
4.9/5
(27)

It is known as when the number of repetitions is known before a loop begins executing.

(Multiple Choice)
4.9/5
(31)

The best way to use braces is to go back and insert them after all the code has been written.

(True/False)
4.8/5
(43)
Showing 61 - 80 of 94
close modal

Filters

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