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

Defines beginning and end of a code block?

( )
{ }
[ ]
/ /
< >

... a conditional statement?

while
break
switch
for
case

... an iterative statement?

break
assert
switch
if
for

... allows you to skip an iteration of a loop?

assert
switch
break
continue
skip

... disabled by default

assert
switch
break
continue
try

Keyword required to create a class method?

class
return
void
static
abstract

Purpose of overloading methods?

to allow same-named methods to perform differently
to use a copy of a variable's value
to use the actual variable rather than a copy
to refer to the executable parts of a class
to get multiple return values

A variable can be declared as an array using?

{}
()
<>
""
[]

What is the purpose of array indexing?

to group similar arrays into objects
to group similar arrays into classes
to access an individual array
to access individual members of an array
none of the above

What is the purpose of the length property of an array?

to initialise an array
to determine the size of an array
to pass an array to a method
to determine the number of dimensions of an array
to set all elements of an array

Wrong answers so far:

top