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

num = rand() % 4 + 2;

the value assigned to num is in the range 0 to 3
the value assigned to num is in the range 2 to 5
the value assigned to num is in the range 2 to 6
the value assigned to num is in the range 4 to 6
the value assigned to num is in the range 4 to 7

srand((unsigned)time(NULL));

returns a NULL value
returns the time
returns a random string
seeds the random number generator
times the execution of a block of code

toss = rand() % 2;

toss will always be assigned the value 0
toss will always be assigned the value 1
toss will always be assigned the value 2
toss will be assigned 0's and 1's alternately
toss may be assigned three consecutive 0's

main(int argc, char *argv[])

argc is number of arguments on the command line
argc has a value of at least 1
argv is an array of strings
argv[0] is the name of the program
all of the above

Sorting the contents of an array means ...

arranging the values in order of their index
arranging the values in order of their type
arranging the values in order of their value
making the data types of all values the same
truncating the values to the array size

The unary operator * is ...

the dereference operator
the deference operator
the defensive operator
the disfunction operator
the displacement operator

The unary operator & is ...

the "pointer of" operator
the "memory of" operator
the "segment of" operator
the "address of" operator
the "variable of" operator

A pointer variable contains ...

a string
the address of a variable
the address of itself
the target of a goto statement
the target of a function call

When a pointer is passed as an argument to a function ...

a local copy of the value pointed to is made
a local copy of the pointer is made
the type of the value pointed to is unknown
the function must be recursive
the function must have a return value

The name of an array ...

must a maximum of be 8 characters
doesn't have to be declared
is a pointer to the first element
is a pointer to the last element
must be numeric

Wrong answers so far:

top