Functions – MCQ’s
Choose the correct answer
1. Another name for built-in function is:
a. User-defined function b. Library function
c. Custom-made function d. Both a & b
2. The pre-defined functions of C language are called:
a. Built-in functions b. Library functions
c. User-defined functions d. Both a and b
3. A built-in function:
a. Cannot be redefined b. Can be redefined
c. Cannot return a value d. Should be redefined
» View More
4. The printf and scanf are:
a. Built-in functions b. Arithmetic functions
c. User-defined functions d. Both a and c
5. The functions which are defined by a programmer are called:
a. Built-in functions b. Library functions
c. User-defined functions d. Both a and b
6. Function signature consists of:
a. Function name
b. Return type
c. Number and types of parameters
d. All
7 _________ describes the name, inputs and output of the function.
a. Function signature b. Function definition
c. Return type d. Parameters
8. A function that does not return anything has return type:
a. null b. void c. nothing d. none
9. The values passed to the function are called:
a. Arguments b. Variable
c. Return Value d. Constants
10. The keyword used to transfer the control from a function back to the calling function is:
a. return b. switch c. goto d. back
11. Multiple arguments passed to a function are separated by:
a. : (Colons) b. , (Commas) c. ; (Semicolons) d. . (Period)
12. The ________ of the function is the data type of the value returned by the function:
a Name b. Parameter c. Return type d. Argument
13. Which of the following are used to receive the values passed to the function as input?
a. Parameters b. Constants c. Expressions d. Arguments
Answers
a. Built-in functions b. Arithmetic functions
c. User-defined functions d. Both a and c
5. The functions which are defined by a programmer are called:
a. Built-in functions b. Library functions
c. User-defined functions d. Both a and b
6. Function signature consists of:
a. Function name
b. Return type
c. Number and types of parameters
d. All
7 _________ describes the name, inputs and output of the function.
a. Function signature b. Function definition
c. Return type d. Parameters
8. A function that does not return anything has return type:
a. null b. void c. nothing d. none
9. The values passed to the function are called:
a. Arguments b. Variable
c. Return Value d. Constants
10. The keyword used to transfer the control from a function back to the calling function is:
a. return b. switch c. goto d. back
11. Multiple arguments passed to a function are separated by:
a. : (Colons) b. , (Commas) c. ; (Semicolons) d. . (Period)
12. The ________ of the function is the data type of the value returned by the function:
a Name b. Parameter c. Return type d. Argument
13. Which of the following are used to receive the values passed to the function as input?
a. Parameters b. Constants c. Expressions d. Arguments
Answers
1. b 2. a 3. a 4. a 5. c 6. d
7. c 8. b 9. a 10. a 11. b 12. b
13. a
» View Less