Exam 4: Control Statements: Part 1

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

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
(38)

What is the result value of c at the end of the following code segment? int c = 8; C++; ++c; C %= 5;

(Multiple Choice)
4.8/5
(45)

Which of the following is not represented graphically in activity diagrams for control structures?

(Multiple Choice)
4.8/5
(26)

In an activity diagram,the merge symbol has the same shape as what other symbol?

(Multiple Choice)
4.9/5
(40)

In Java graphics,coordinate units are measured in ________.

(Multiple Choice)
4.8/5
(34)

Which statement is false?

(Multiple Choice)
4.8/5
(31)

Which primitive type can hold the largest value?

(Multiple Choice)
5.0/5
(42)

Which statement is true?

(Multiple Choice)
4.8/5
(42)

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

(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
(35)

Which of the following is not a Java keyword?

(Multiple Choice)
4.8/5
(32)

Java is considered a strongly typed language because:

(Multiple Choice)
4.8/5
(36)

Where can local variables declared within a method's body be used?

(Multiple Choice)
4.7/5
(38)

Keyword ________ indicates the inheritance relationship.

(Multiple Choice)
4.9/5
(40)

Which of the following code segments does not increment val by 3:

(Multiple Choice)
4.9/5
(41)

Which of the following is not an error (either a syntax error or a logic error)?

(Multiple Choice)
4.9/5
(43)

A decision symbol in an activity diagram takes the shape of a ________.

(Multiple Choice)
4.9/5
(37)

What does the expression x %= 10 do?

(Multiple Choice)
4.8/5
(37)

What is output by the following Java code segment? int temp = 200; If ( temp > 90 ) System.out.println( "This porridge is too hot." ); If ( temp < 70 ) System.out.println( "This porridge is too cold." ); If ( temp == 80 ) System.out.println( "This porridge is just right!" );

(Multiple Choice)
4.8/5
(39)

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

(Multiple Choice)
4.9/5
(36)
Showing 21 - 40 of 41
close modal

Filters

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