By: Prof. Dr. Fazal Rehman | Last updated: September 23, 2024
Advanced database MCQs
1. In the array, the elements are numbered from …a) 1 to 10b) 1 to 10c) 5 to 10d) 0 to 9
Answer - Click Here:
D
2. Overloaded functions are …a) functions having same variablesb) many functions in the programc) more than one function having same named) function having global variables
Answer - Click Here:
B
3. Variables declared inside the function are called as …a) local variablesb) private variablesc) global variablesd) external variables
Answer - Click Here:
A
4. The keyword template in c++ is used fora) global functionsb) template functionsc) default arguments functiond) with inline functions
Answer - Click Here:
B
4. In C++, word ‘register’ can be only used with…a) local variablesb) register variablesc) auto variablesd) external variables
Answer - Click Here:
A
5. The prototype of the function is a …a) C++ statementb) C++ programc) C++ functiond) C++ header file
Answer - Click Here:
A
6. A structure is …a) collection of functions onlyb) collection of fields onlyc) collection of records olnyd) collection of collection of data items only
Answer - Click Here:
D
7. The syntax for structure in programming is similar to a) functionsb) arrayc) classd) pointer
Answer - Click Here:
C
8. Which one is a keyword in programming?a) deleteb) voidc) editd) all of these
Answer - Click Here:
D
9. Indirection operator is represented by …a) !b) &&c) *d) &
Answer - Click Here:
C
10. Sequential search is also called as …a) linear searchb) binary searchc) serial searchd) Both (a) & (c)
Answer - Click Here:
D
11. How we access array elements?a) an index numberb) resolution scope operatorc) dot operatord) name
Answer - Click Here:
A
12. Function prototype includesa) number and type of parametersb) type of valuec) name of the functiond) All of these