Lab 1a: Expressions (Java)

5 Questions | Total Attempts: 57

SettingsSettingsSettings
Please wait...
Lab 1a: Expressions (Java)


Questions and Answers
  • 1. 
    The following is a legal variable name:  4square
    • A. 

      True

    • B. 

      False

  • 2. 
    The following statement will result in a syntax error: double x = (96 + 84 + 99) / 3;
    • A. 

      True

    • B. 

      False

  • 3. 
    The following statement will result in a syntax error: int n = 101 / 4;
    • A. 

      True

    • B. 

      False

  • 4. 
    What is the result of the following expression: (15 + 17) / (5 - 2)
  • 5. 
    What is the result of the following expression 45 % (1 * 2 + 2)
Back to Top Back to top