guide Exam Questions with Key Marking
Scheme Updated 2024/2025
Expression - correct answer This is a combination of items,
like variables, literals, operators, and parentheses, that evaluates
to a value. Ex: 2 * (x + 1)
Literal; commas are not allowed in these - correct answer A
specific value in code, like the number 2
Operator - correct answer A symbol that performs a built-in
calculation, like +, -, *, or /
Incremental Development - correct answer The process of
writing, compiling, and testing a small amount of code, then
writing, compiling, and testing a small amount more, and so on.
Floating-point number; The term "floating-point" refers to the
decimal point being able to appear anywhere ("float") in the
number. - correct answer This is a real number, like 98.6,
0.0001, or -768.567.
- For values that are counted, such as 42 cars
- For values that are measured like 98.6 degrees - correct
answer - When should you use an Integer Variable?
- A Floating-Point Variable?
, Infinity or -Infinity
- NotANumber - correct answer Dividing a nonzero floating-
point number by zero results in what?
- What is the output if the dividend and divisor in floating-point
division are both 0?
- Function
- Function Call
- Arguments - correct answer - What is a list of statements
executed by invoking a name?
- What is the invoking called?
- What are the values, contained within (), and separated by
commas if more than one?
- Type Conversion
- Implicit Conversion
1. For an arithmetic operator like + or *, if either operand is a
float, the other is automatically converted to float, and then a
floating-point operation is performed.
2. For assignments, the right side type is converted to the left
side type. - correct answer - This is a conversion of one data
type to another, such as an integer to a float
- What is it called when the conversion happens automatically?
- What are two rules for whether to apply it automatically?
Type Cast; example is integer 7 is type cast to float by writing it
7.0 - correct answer This converts a value of one type to
another type