C Programming MCQ
C Programming MCQ
C Programming MCQ
1. The keyword used to transfer control from a function back to the calling function is
a.switch b.goto
c.go back d. return
18. Input/output function prototypes and macros are defined in which header file?
a. conio.h b. stdlib.h
c. stdio.h d.dos.h
23. When the main function is called, it is called with the arguments
a) argc b)argv c) None of these d) both a & b
10. Can we use a function as a parameter of another function? [ Eg: void wow(int func()) ]
a) Yes, and we can use the function value conveniently
b) Yes, but we call the function again to get the value, not as convenient as in using variable
c) No, C does not support it.
d) This case is compiler dependent
11. The value obtained in the function is given back to main by using ________ keyword?
a) return
b) static
c) new
d) volatile
20. How to call a function without using the function name to send parameters?
a) typedefs
b) Function pointer
c) Both (a) and (b)
d) None of the mentioned
25. Calling a function f with a an array variable a[3] where a is an array, is equivalent to
a) f(a[3])
b) f(*(a + 3))
c) f(3[a])
d) All of the mentioned