image not found

Oops! That page can't be found.


Directions to Solve

Which of phrases given below each sentence should replace the phrase printed in bold type to make the grammatically correct? If the sentence is correct as it is, mark 'E' as the answer.

Q1: Anyone interested in the use of computers can learn much if you have access to a personal computer.

A one of them have access

B he or she has access

C they have access

D No correction required

E access can be available

Q2: Which of the following special symbol allowed in a variable name?

A | (pipeline)

B * (asterisk)

C - (hyphen)

D _ (underscore)

Q3: Maximum number of arguments that a function can take is 12

A Yes

B No

Q4: Will the following functions work?
int f1(int a, int b)
{
    return ( f2(20) );
}
int f2(int a)
{
    return (a*a);
}

A No

B Yes

Q5: Usually recursion works slower than loops.

A Yes

B No

Q6: Is it true that too many recursive calls may result into stack overflow?

A Yes

B No

Q7: In a function two return statements should never occur

A No

B Yes

Q8: What is (void*)0?

A Representation of NULL pointer

B None of above

C Error

D Representation of void pointer

Q9: Can you combine the following two statements into one?
char *p;
p = (char*) malloc(100);

A char *p = (char *)(malloc*)(100);

B char *p = (char) malloc(100);

C char *p = (char*)malloc(100);

D char p = *malloc(100);

Q10: In which header file is the NULL macro defined?

A stdio.h and stddef.h

B stdio.h

C stddef.h

D math.h