Exam 4: Control Statements: Assignment, and Operators

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

Which of the following statements about the conditional operator (?:) is false?

(Multiple Choice)
4.9/5
(36)

Which of the following statements is true?

(Multiple Choice)
4.9/5
(33)

Which of the following is not a Java keyword?

(Multiple Choice)
4.7/5
(37)

Which of the following is the shape of an action-state symbol?

(Multiple Choice)
4.9/5
(29)

Which of the following is not an algorithm?

(Multiple Choice)
4.7/5
(33)

Which of the following statements is false?

(Multiple Choice)
5.0/5
(37)

Which of the following is true?

(Multiple Choice)
4.7/5
(37)

What is the size in bits of an int?

(Multiple Choice)
4.9/5
(31)

Which of the following is not a benefit of "goto-less programming"?

(Multiple Choice)
4.9/5
(34)

In an expression containing values of the types int and double, the ________ values are ________ to ________ values for use in the expression.

(Multiple Choice)
4.9/5
(39)

Which of the following is not a common name for one of the three phases that a program often can be split into using pseudocode?

(Multiple Choice)
4.8/5
(26)

What is output by the following Java code segment? int temp = 180; While (temp != 80) { If (temp > 90) { System.out.print("This porridge is too hot! "); // cool down Temp = temp - (temp > 150 ? 100 : 20); } Else { If (temp < 70) { System.out.print("This porridge is too cold! "); // warm up Temp = temp + (temp < 50 ? 30 : 20); } } } If (temp == 80) { System.out.println("This porridge is just right!"); }

(Multiple Choice)
4.8/5
(39)

Which of the following is not a primitive type?

(Multiple Choice)
4.9/5
(31)

Java is considered a strongly typed language because:

(Multiple Choice)
4.7/5
(35)

Which of the following is a double-selection control statement?

(Multiple Choice)
4.8/5
(43)

How many times is the body of the loop below executed? int counter = 1; While (counter > 20) { // body of loop Counter = counter - 1; }

(Multiple Choice)
4.7/5
(35)

Local variables must be ________.

(Multiple Choice)
5.0/5
(27)

The empty statement is denoted by what symbol?

(Multiple Choice)
4.8/5
(37)

Sentinel-controlled iteration is also known as:

(Multiple Choice)
4.7/5
(34)
Showing 21 - 39 of 39
close modal

Filters

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