?

AP® Computer Science A

Free Version

Upgrade subject to access all content

Easy

Illegal Variable Names

APCSA-EXEV4W

Consider the following variable declarations:

I.
String[] 100Answers = new String[100];
II.
boolean void = true;
III.
double my_cash = 100.00;
IV.
String <mySport> = "football";
V.
int money$value = 250;

Which of these statements are illegal (will not compile)?

A

I and II only

B

I, III, and IV only

C

II, III, IV, and V only

D

I, II, and IV only

E

II, IV, and V only