MCQs
MCQs
a) switch
b) goto
c) go back
d) return
a) Library Functions
b) User Defined Functions
c) Both Library and User Defined
d) None of the above
a) Pass By Value copies the variable value in one more memory location
b) Pass By Value does not use Pointers
c) Pass By Value protects your source or original variables from changes
in outside functions or called functions
d) All the above
a) printf()
b) show()
c) scanf()
d) main()
a) 1
b) 2
c) 3
d) 4
a) Formal arguments
b) Actual Arguments
c) Definite Arguments
d) Ideal Arguments
a) Definite arguments
b) Formal arguments
c) Actual arguments
d) Ideal arguments
10. Choose a corrects statement about C language function
arguments.
a) printf()
b) scanf()
c) fprintf()
d) printf4()
a) -1
b) 0
c) 1
d) None of the above
a) for loop
b) while loop
c) do while loop
d) All the above
15. A recursive function is faster than __ loop.
a) for
b) while
c) do while
d) None of the above
a) printf
b) scanf
c) void
d) return
a. Call By Value
b. Call By Reference
c.By Pointer
d. By Address
18. What is a Function’s return type in C if it does not return any value?
a. int
b. void
c. float
d. char
23. Which of the following is a valid function call (assuming the function exists)?
(a) funct;
(b) funct x, y;
(c) funct();
(d) int funct();
24. What is the default return type if it is not specified in function
definition?
A. void
B. int
C. float
D. short int