In each case click the single most appropriate response. Only the correct response will register in the radio button.

javac is ...?

a missprint!
the java application launcher
the java applet launcher
a documentation creation tool
the java compiler

What are braces "{}" used for in Java?

to enclose comments
to form a compound statement
to enclose an array index
to enclose a parameter list
to denote a constructor

....

//this is a comment
/*this is a comment*/
/**this is a comment*/
all of the above
none of the above

By convention, method names in Java ...

are entirely in lower case
are entirely in upper case
have initial letter of all words including first capitalised
have initial letter of all words excluding first capitalised
contain square brackets "[]"

By convention, variable names in Java ...

are entirely in lower case
are entirely in upper case
have initial letter of all words including first capitalised
have initial letter of all words excluding first capitalised
contain square brackets "[]"

In Java, exceptions are dealt with using ...

the if .. else construct
the try .. catch .. finally construct
the >>> operator
the protected modifier
the static modifier

Which is an assignment operator?

==
+=
>=
<=
!=

Which is NOT a subclass of IOException?

NoSuchMethodException
MalformedURLException
SocketException
EOFException
UnknownHostException

int[] category = {1, 2, 3};

declares, instantiates, and initialises an array
doesn't declare
doesn't instantiate
doesn't initialise
is syntatically incorrect

int[] nums = new int[8];

is syntatically incorrect
has an element nums[8]
has an element new[8]
has an element int[8]
none of the above

Wrong answers so far:

top