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 "[]"

The bitwise AND and assign operator is ...

&=
&
&&
&&=
@=

Which is an assignment operator?

==
+=
>=
<=
!=

Which of the following operators has lowest precedence?

||
|
&&
&
^

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

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

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