?

AP® Computer Science Principles

Free Version

Upgrade subject to access all content

Easy

Boolean Expression

APCSP-D1G1NN

Consider the following code:

1.  a ← RANDOM (1,10)
2.  IF (a > 5){
3.      REPEAT a TIMES {
4.          DISPLAY ('you win!')
5.      }
6.  ELSE{
7.          DISPLAY ('you lose!')
8.      }
9.  }

Which line of the code above includes a Boolean expression?

A

Line 1.

B

Line 2.

C

Line 3 .

D

Line 4.