Exam 5: Making Decisions

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

____________________ statements are particularly useful when two conditions must be met before some action is taken.

(Short Answer)
4.9/5
(87)

You use the NOT operator, which is written as the exclamation point (!), to negate the result of any Boolean expression.

(True/False)
4.9/5
(73)

A(n) ____________________ structure is one that involves choosing between alternative courses of action based on some value within a program.

(Short Answer)
4.9/5
(82)

The AND operator is written as two ____.

(Multiple Choice)
4.7/5
(98)

A logical structure called a(n) ____ structure is when one step follows another unconditionally.

(Multiple Choice)
4.8/5
(79)

if(qtySold > QUOTA)     bonusPay = 50;     totalPay = regPay + bonusPay; System.out.println("Your totalPay amount is " + totalPay); Why is the above code incorrect? Write the code that will provide the correct result.

(Essay)
4.9/5
(78)
Showing 61 - 66 of 66
close modal

Filters

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