Java Ch 4 Quiz

10 Questions | Attempts: 220
Share

SettingsSettingsSettings
Java Ch 4 Quiz - Quiz

Questions and Answers
  • 1. 
    True or False: The == operator is used to assign a value to a variable.
    • A. 

      True

    • B. 

      False

  • 2. 
    The operator || is the logical operator ____.
  • 3. 
    True or False: A relational operator allows you to make comparisons in a program.
    • A. 

      True

    • B. 

      False

  • 4. 
    What is the value of the expression:  (10 >= 5) && (‘B’ < ‘C’)
  • 5. 
    With short-circuit evaluation, when the value of an entire expression is found, evaluation ____.
  • 6. 
    A(n) ____ is sometimes referred to as a decision maker because it decides whether to execute the statement that follows it.
  • 7. 
    True or False: An if statement must be followed by an else statement.
    • A. 

      True

    • B. 

      False

  • 8. 
    When one control statement is located within another, it is said to be ____.
  • 9. 
    The statement following an expression is sometimes called the ____ statement.
  • 10. 
    True or False: An else statement must be paired with an if statement.
    • A. 

      True

    • B. 

      False

Back to Top Back to top
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.