Computers

9th -

12thgrade

Image

APCSA Unit 3 Review

21
plays

13 questions

Show Answers
See Preview
  • 1. Multiple Choice
    30 seconds
    1 pt

    Consider the code segment below

    What is printed as a result?

    int x = 10;

    int y = 20;

    System.out.print(y + x / y);

    1

    1.5

    3

    20

    20.5

  • 2. Multiple Choice
    30 seconds
    1 pt

    Which of the following expressions evaluates to 1?

    1. 2 / 5 % 3

    2. 2 / (5 % 3)

    3. 2 / 5 + 1

    1 only

    2 only

    1 and 2 only

    2 and 3 only

    1, 2, and 3

  • 3. Multiple Choice
    30 seconds
    1 pt

    Consider the following:

    int a = 2;

    int b = 6;

    int c = 3;

    Which of the following expressions evaluates to false?

    a < b == c < b

    a > b == b < c

    a < b != c < b

    a < b != c < b

  • Answer choices
    Tags
    Answer choices
    Tags

    Explore all questions with a free account

    Already have an account?