Exam 3: Decision Structures

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

Enclosing a group of statements inside a set of braces creates a:

(Multiple Choice)
4.8/5
(41)

What will be the value of ans after the following code has been executed? Int ans = 10; Int x = 65; Int y = 55; If (x >= y) Ans = x + y;

(Multiple Choice)
4.9/5
(37)

What will be printed when the following code is executed? Double x = 45678.259; String output = String.format("%,.1f", x); System.out.println(output);

(Multiple Choice)
4.8/5
(39)

An important style rule you should follow when writing if statements is to line up the conditionally executed statement with the if statement.

(True/False)
4.9/5
(31)
Showing 61 - 64 of 64
close modal

Filters

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