AP Computer Science exam questions
double - ANS✓✓-A Java reserved word that represents a primitive floating point
numeric type, stored using 64 bits in IEEE 754 format. Ex. 4.23
int - ANS✓✓-A java reserved word for a primitive dat type, stored using 32 bits in
two's complement format. Ex. 5
boolean - ANS✓✓-A Java reserved word for a logical primitive data type that can
only take the values "True" or "False".
string literal - ANS✓✓-A primitive value used in a program.
Ex. ("Hello")
casting - ANS✓✓-Most general form of converting in Java
Ex. dollars = (int) money
narrowing conversion - ANS✓✓-A conversion from one data type into another in
which information could be lost. Converting from "double" to an "int" is a
narrowing conversion
strongly typed - ANS✓✓-Assigned values must correspond to the declared type.
// - ANS✓✓-Comments a line of code in Java that will not be run with the program.
More of a side note.
//Hello
% - ANS✓✓-Remainder operator.
Operator Precedence Hierarchy - ANS✓✓-The order in which operators are
evaluated in an expression.
primitive data - ANS✓✓-Characters with letters, or numbers: int, double, booleans
constant - ANS✓✓-A value that cannot be changed. Used to make more code
more readable and to make changes easier. Defined in Java using the "final"
modifier.
final - ANS✓✓-A Java reserved word that is a modifier for classes, methods, and
variables. A "final" variable is a constant
double - ANS✓✓-A Java reserved word that represents a primitive floating point
numeric type, stored using 64 bits in IEEE 754 format. Ex. 4.23
int - ANS✓✓-A java reserved word for a primitive dat type, stored using 32 bits in
two's complement format. Ex. 5
boolean - ANS✓✓-A Java reserved word for a logical primitive data type that can
only take the values "True" or "False".
string literal - ANS✓✓-A primitive value used in a program.
Ex. ("Hello")
casting - ANS✓✓-Most general form of converting in Java
Ex. dollars = (int) money
narrowing conversion - ANS✓✓-A conversion from one data type into another in
which information could be lost. Converting from "double" to an "int" is a
narrowing conversion
strongly typed - ANS✓✓-Assigned values must correspond to the declared type.
// - ANS✓✓-Comments a line of code in Java that will not be run with the program.
More of a side note.
//Hello
% - ANS✓✓-Remainder operator.
Operator Precedence Hierarchy - ANS✓✓-The order in which operators are
evaluated in an expression.
primitive data - ANS✓✓-Characters with letters, or numbers: int, double, booleans
constant - ANS✓✓-A value that cannot be changed. Used to make more code
more readable and to make changes easier. Defined in Java using the "final"
modifier.
final - ANS✓✓-A Java reserved word that is a modifier for classes, methods, and
variables. A "final" variable is a constant