CS201P Lab Quiz 9 by Iqra Azhar
- Type
- Quiz
- Course
- CS201P Introduction to Programming (Practical)
- Size
- PDF 458 KB
- Updated
- 23 Oct 2026
You get 3 free files a day on the website. Add the Chrome extensionSign in with the extension for 30 a day.
Preview text
Text from pages 2, 3, 4 of 4. Download the file for all 4 pages.
Cs201p lab quiz 9 by iqra azhar
In C++, which of the following function causes the full definition of the function to be inserted in each place when it gets called?Select the correct option Recursive function Library function Built-in function
The correct option is: Inline function
Which of the following is not true about Destructor?Select the correct option Destructors don’t return a value. Destructors take no arguments Destructors cannot be used for memory manipulation. Destructors cannot be overloaded. The statement " Destructors cannot be used for memory manipulation" is not true.
hat will be the output of the following code?
void sampleFunction(int = 5,float = 4.1, char = 'A'); int main(){ sampleFunction(50,3.2); }void sampleFunction(int one,float two ,char three) { cout << one << ", " << two << ", " << three; }Select the correct option 5, 4.1, A 50, 4.1, A 50, 3.2, A 5, 3.2, A The correct output will be: 50, 3.2, A
Which function is automatically called when an object of a class is initiated?Select the correct option
Friend function Constructor Utility function The correct option is: Constructor
_________ is a user-defined data type. Select the correct option Pointer Constructor Function Class The correct option is: Class A constructor with arguments is known as. Select the correct option
Virtual Constructor
Paramterized Constructor The correct option is: Parameterized Constructor
In C++, which of the following option is used to declare a class?Select the correct option class CLASS cLAss Class So, the correct option is: class
Related CS201P files
All CS201P files →Get more out of VUBuddy, for free
- Unlimited downloads
- The explanation behind every MCQ answer
- Study offline on slow data
- 30 downloads a day instead of 3
- Sign in and buy Pro Semester here
One Pro Semester membership works in both the extension and the app.