PVL3702 ASSIGNMENT 01 2026 PRACTICE
TEST SHEET FULL SOLUTIONS CORRECT
ANSWERS PREPARATION SET
◉ literals.
Answer: values that literally appear in your program (like "true" for
a boolean variable)
◉ variable.
Answer: name of a "location" that stores a "value" of a particular
"type"
◉ type.
Answer: name of the set of all possible values a variable might have
◉ program variable.
Answer: has a particular value during program execution, but that
value may change during any time
◉ mathematical variable.
Answer: has an arbitrary but fixed value
, ◉ program type.
Answer: has mathematical type that models it
◉ Declaring a variable.
Answer: must provide a name for its location to store a value, and its
program type
◉ Initializing a variable.
Answer: To initialize a variable, you assign it a value
◉ Constant.
Answer: value is initialized and never changed; have "final in front of
them (Ex. final int pi = 3.14;)
◉ Operator.
Answer: symbol(s) that is used with variables and values to simplify
how you write certain program expressions
◉ Expression.
Answer: syntactically well-formed and meaningful fragment (Ex.
keyBoardIn.nextLine()); analogous to a word in English
◉ Statement.
TEST SHEET FULL SOLUTIONS CORRECT
ANSWERS PREPARATION SET
◉ literals.
Answer: values that literally appear in your program (like "true" for
a boolean variable)
◉ variable.
Answer: name of a "location" that stores a "value" of a particular
"type"
◉ type.
Answer: name of the set of all possible values a variable might have
◉ program variable.
Answer: has a particular value during program execution, but that
value may change during any time
◉ mathematical variable.
Answer: has an arbitrary but fixed value
, ◉ program type.
Answer: has mathematical type that models it
◉ Declaring a variable.
Answer: must provide a name for its location to store a value, and its
program type
◉ Initializing a variable.
Answer: To initialize a variable, you assign it a value
◉ Constant.
Answer: value is initialized and never changed; have "final in front of
them (Ex. final int pi = 3.14;)
◉ Operator.
Answer: symbol(s) that is used with variables and values to simplify
how you write certain program expressions
◉ Expression.
Answer: syntactically well-formed and meaningful fragment (Ex.
keyBoardIn.nextLine()); analogous to a word in English
◉ Statement.