CS163 CSET MANDARIN SUBTEST I PRACTICE
MASTER LEARNING MODULE 2026
◉ Importing packages. Answer: java.util
java.io
java.lang
◉ Declaring and Initializing Variables. Answer: Declaring - int temp;
Initializing - int temp = 10;
◉ Assignment statements. Answer: Uses the equal sign to give the
object property on the left of the equal sign the value on the right of
the equal sign.
◉ Numeric, character, and string literals. Answer: double dec =
123.456
char a = 'a';
String str = "String";
◉ Data types (and size in bits). Answer: byte (8), short (16), int (32),
long (64)
float (32), double (64)
,boolean, char (16), String
◉ Primitive operators. Answer: *: multiplication
/: division
+: addition
-: subtraction
%: remainder
++: increment by 1
--: decrement by 1
◉ Integer versus floating point math. Answer: Integer math
truncates the values and point float math uses the decimals place.
Point float math is often use when more precision is needed.
◉ Relational operators. Answer: Used to compare two values.
==: equals to
!=: not equals to
<: less than
>: greater than
<=: less than or equal to
>=: greater than or equal to
, ◉ Boolean operators. Answer: used to compare two values and
results in true or false.
&&: And
||: or
^: exclusive or
!: not
◉ Order of operations, parentheses. Answer: Highest to Lowest
procedence:
1. (parenthesis, access array elements, access object member)
reading left to right
2.(post-increment,post-decrement)
3. (pre-increment,pre-decrement)
4.(unary plus, unary minus, unary logical NOT, unary bitwise NOT)
right to left
5.(cast, object creation) right to left
6. (multiplication, division, remainder) left to right
7. (addition, subtraction) left to right
8. (shift right or left)) left to right
9.(relative operators, instanceOf)
10. (equality) left to right
11. (bitwise AND) left to right
12. (bitwise XOR) left to right
MASTER LEARNING MODULE 2026
◉ Importing packages. Answer: java.util
java.io
java.lang
◉ Declaring and Initializing Variables. Answer: Declaring - int temp;
Initializing - int temp = 10;
◉ Assignment statements. Answer: Uses the equal sign to give the
object property on the left of the equal sign the value on the right of
the equal sign.
◉ Numeric, character, and string literals. Answer: double dec =
123.456
char a = 'a';
String str = "String";
◉ Data types (and size in bits). Answer: byte (8), short (16), int (32),
long (64)
float (32), double (64)
,boolean, char (16), String
◉ Primitive operators. Answer: *: multiplication
/: division
+: addition
-: subtraction
%: remainder
++: increment by 1
--: decrement by 1
◉ Integer versus floating point math. Answer: Integer math
truncates the values and point float math uses the decimals place.
Point float math is often use when more precision is needed.
◉ Relational operators. Answer: Used to compare two values.
==: equals to
!=: not equals to
<: less than
>: greater than
<=: less than or equal to
>=: greater than or equal to
, ◉ Boolean operators. Answer: used to compare two values and
results in true or false.
&&: And
||: or
^: exclusive or
!: not
◉ Order of operations, parentheses. Answer: Highest to Lowest
procedence:
1. (parenthesis, access array elements, access object member)
reading left to right
2.(post-increment,post-decrement)
3. (pre-increment,pre-decrement)
4.(unary plus, unary minus, unary logical NOT, unary bitwise NOT)
right to left
5.(cast, object creation) right to left
6. (multiplication, division, remainder) left to right
7. (addition, subtraction) left to right
8. (shift right or left)) left to right
9.(relative operators, instanceOf)
10. (equality) left to right
11. (bitwise AND) left to right
12. (bitwise XOR) left to right