Chapter 15
Quiz by Sandhya
Feel free to use or edit a copy
includes Teacher and Student dashboards
Measure skillsfrom any curriculum
Tag the questions with any skills you have. Your dashboard will track each student's mastery of each skill.
- edit the questions
- save a copy for later
- start a class game
- automatically assign follow-up activities based on students’ scores
- assign as homework
- share a link with colleagues
- print as a bubble sheet
- Q1
Fill in the blanks:
(a) Any C++ program contains at least .................. function(s).
(b) After each function has done a job, control returns to ..................
(c) The declaration of a function in the calling program is known as a function ..................
(d) In a program, the function can be called in two ways .................. and ..................
(e) When the return type is not specified, the default return type of function is ..................
(f) To return the control back to the calling function, we use the keyboard ..................
(g) In an .................. function, looping is not allowed.
Users enter free textType an Answer30s - Q2
There is a limit on the number of functions that might be present in a C++ program.
falsetrueTrue or False30s - Q3
A variable which is declared inside the function is called global variable.
falsetrueTrue or False30s - Q4
When function is not returning anything, return type is void.
truefalseTrue or False30s - Q5
An inline function is preferred when its size is small.
truefalseTrue or False30s - Q6
In call by reference, any change made in the object inside the function will reflect in the value of the actual object.
truefalseTrue or False30s - Q7
A C ++ program can have more than one function with the same name.
truefalseTrue or False30s - Q8
Inline is a keyword in C++ programming language.
falsetrueTrue or False30s - Q9
An inline function must be defined before it is called.
truefalseTrue or False30s - Q10
Any function in C++ can be declared as inline function.
falsetrueTrue or False30s - Q11
It is necessary to specify the variable name in the function prototype
falsetrueTrue or False30s