By: Prof. Dr. Fazal Rehman | Last updated: September 23, 2024
Database MCQs from the book chapter
1. Built-in functions are also named as …a) user-definedb) subprogramsc) subroutinesd) none
Answer - Click Here:
D
2. Which statement is not true about function?a) it can not return any valueb) independent programc) function is also referred as modulesd) Both (a) & (c)
Answer - Click Here:
D
3. A function that does not return any thing has return type…a) voidb) nullc) floatd) nothing
Answer - Click Here:
A
4. Protype means …a) sampleb) modelc) definitiond) both (a) & (b)
Answer - Click Here:
D
5. Declaring variables inside a function are called as …a) private variablesb) external variablesc) local variablesd) global variables
Answer - Click Here:
C
6. We call pre-defined functions as …a) subprogramsb) built-in functionsc) user -definedd) subroutines
Answer - Click Here:
B
7. Which one is the advantage of a function?a) re-usabilityb) eliminate duplicate codec) easy to understandd) none
Answer - Click Here:
A
8. Sub-programs in C-language are called as …a) proceduresb) functionsc) modulesd) methods
Answer - Click Here:
B
9. We can a function using the reference of its …a) definitionb) parameterc) named) all of the above
Answer - Click Here:
C
10. Which of the following can’t be nested?a) do-while statamentb) if statementc) while statement d) user-defined functions
Answer - Click Here:
D
11. The parameters defined in the header of function are called as …a) default parametersb) actual parametersc) command-line parametersd) formal parameters
Answer - Click Here:
D
12. The global variables are created in …a) hard discb) cachec)RAM d) ROM