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

char name[] = "Dennis";

declares an array of size 3
declares an array of size 4
declares an array of size 5
declares an array of size 6
declares an array of size 7

char name[] = "Jo";

char name[] = {'J', 'o'};
char name[] = {'J', 'o', '\n'};
char name[] = {'J', 'o', '\o'};
char name[] = {'J', 'o', '\0'};
char name[] = {'J', 'o', '%s'};

len = strlen("nut");

len is assigned 0
len is assigned 1
len is assigned 2
len is assigned 3
len is assigned 4

Strings can be concatented using ...

the strcat function
the + operator
the dir (DOS) or ls (UNIX) commands
the strcpy function
any of the above

A recursive function is one that contains a call to ...

the function it was called from
itself
a function called recursion
a function called recurzion
the main function

The size of a short integer is always ...

one byte
2 bytes
4 bytes
8 bytes
smaller or the same as a long integer

The maximum value of a signed two byte integer is ...

32767
0x7FFF
2 15 - 1
approx half that of an unsigned two byte integer
all of the above

What kind of brackets are used in a type cast?

square []
curly {}
round ()
angled <>
none

What kind of brackets are used to specify an array index?

square []
curly {}
round ()
angled <>
none

What kind of brackets are used round a function body?

square []
curly {}
round ()
angled <>
none

Wrong answers so far:

top