?

AP® Computer Science A

Free Version

Upgrade subject to access all content

Easy

Declaring Class Data with Proper Data Type

APCSA-1NFJDV

Your new class needs to define the following data:

  • The student’s math SAT score
  • The full street address where the student lives
  • The percentage of the student's classes that are AP
  • Did the student pass high school?

Of the choices below, which would be BEST to define this class data?

A
private double mathSATscore;
private String street;
private int percentAP;
private int passHS;
B
private int mathSATscore;
private boolean street;
private double percentAP;
private String passHS;
C
private double mathSATscore;
private String street;
private int percentAP;
private String passHS;
D
private int mathSATscore;
private String street;
private String percentAP;
private boolean passHS;
E
private int mathSATscore;
private String street;
private double percentAP;
private boolean passHS;