Quiz 1
Respond with the correct answer by marking either True “T” or False “F” for each question.
I.
High-level languages include
C, C++ and Java.
( T / F )
II.
The equation wages = rate x hours can
be written in Java as:
wages = rate * hours;
( T / F )
III.
Algorithm
is a step-by-step problem-solving
process. ( T / F )
IV.
Comments are for the compiler,
not the reader. ( T / F )
V.
There are two types of
comments; Single line and multiple
line. (
T / F )
VI.
Errors in syntax are found
in compilation. ( T / F )
VII.
Java compiler guarantees that the program follows
the rules of the language and does not guarantee that the program will run
correctly. ( T / F )
VIII.
Semantic rule: rules that specify
which statements (instructions)
are legal. ( T / F )
IX.
Identifier (variable name) must begin with a number. ( T / F )
X.
Java is NOT case sensitive - NUMBER is the same as
number. (
T / F )
XI.
bool type has two values: true and false. ( T / F )
XII.
Java logical operators
symbols for NOT, AND and OR
are !, &&, ||. ( T / F )
XIII.
Variable is a memory location
whose content may change
during execution. (
T / F )
XIV.
All operations inside of ()
are evaluated last (Order of Precedence) (
T / F )
XV.
Repetition allows you to
efficiently use variables. (
T / F )
[15 MARKS]
Assignment 1
Sila download 'Assignment 1' anda di sini.