Expressions and Assignment Statements

AP Computer Science A· difficulty 3/5

What is the value of <code>4 + 5 * 2</code>?

  • A

    13

  • B

    9

  • C

    14

    check_circle
  • D

    18

Explanation

<code></code> precedes <code>+</code>; 52 = 10, then 4 + 10 = 14.

Want 10 more like this — adaptive to your weak spots?

Related questions