C Programming Online Test – Multiple Choice Questions and Answers

1. Declare the following statement? “A pointer to a function which receives nothing and returns nothing”

 
 
 
 

2. What do the following declaration signify? void *cmp();

 
 
 
 

3. Declare the following statement? “A pointer to a function which receives an int pointer and returns float pointer”

 
 
 
 

4. What do the following declaration signify? char *arr[10];

 
 
 
 

5. The library function used to find the last occurrence of a character in a string is

 
 
 
 

6. Which of the following function is used to find the first occurrence of a given string in another string?

 
 
 
 

7. Which of the following is the correct order if calling functions in the below code? a = f1(23, 14) * f2(12/4) + f3();

 
 
 
 

8. Which of the following are unary operators in C? 1. ! 2. sizeof 3. ~ 4. &&

 
 
 
 

9. What do the ‘c’ and ‘v’ in argv stands for?

 
 
 
 

10. The maximum combined length of the command-line arguments including the spaces between adjacent arguments is

 
 
 
 

Question 1 of 10

Leave a Reply

Your email address will not be published. Required fields are marked *