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 they have access

B one of them have access

C he or she has access

D No correction required

E access can be available

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

A * (asterisk)

B | (pipeline)

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 Yes

B No

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 No

B Yes

Q7: In a function two return statements should never occur

A Yes

B No

Q8: What is (void*)0?

A Representation of void pointer

B Representation of NULL pointer

C None of above

D Error

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 math.h

C stdio.h

D stddef.h