ACTUAL Questions and CORRECT
Answers
algorithm - CORRECT ANSWER - a set of instructions for a task
String literal - CORRECT ANSWER - one or more characters enclosed in double
quotation marks
modulus - CORRECT ANSWER - the remainder after performing division when the %
sign is used in an arithmetic expression
concatenation - CORRECT ANSWER - an operation which combines two strings into one
assignment operator - CORRECT ANSWER - the = symbol which is used to store a value
in a variable
variable - CORRECT ANSWER - a symbol that represents a value and identifies its
storage location in memory
primitive data types - CORRECT ANSWER - a data type defined by a programming
language;
e.g. int, double
instance - CORRECT ANSWER - a specific realization of any object
int data type - CORRECT ANSWER - a primitive data type that represents integer values.
Ranges from -2147483648 to 2147483648
, data type declaration - CORRECT ANSWER - declares the data type of a variable;
e.g. int a;
double data type - CORRECT ANSWER - a primitive data type that represents floating
point decimal values
boolean data type - CORRECT ANSWER - restricted to logical values (true/false)
Java primitive data types - CORRECT ANSWER - 1) double
2) int
3) boolean
casting - CORRECT ANSWER - the process of changing the value of one data type into a
value of another data type
increment operator - CORRECT ANSWER - instructs Java to add one to a variable's
current value and reassign the result to the variable; ++
decrement operator - CORRECT ANSWER - instructs Java to subtract one from a
variable's current value and reassign the result to the variable; --
pseudocode - CORRECT ANSWER - a pre-programming technique for representing an
algorithm in English-like statements
object-oriented progamming - CORRECT ANSWER - a program design technique based
on modeling the interaction between classes of objects
index - CORRECT ANSWER - indicates the position of a character in a string, i.e. in the
string abcde, a has an index of 0 and b of 1