Skip to content
VUBuddy

CS201P Lab Quiz 9 by Iqra Azhar

Introduction to Programming (Practical) PDF 458 KBUpdated 23 Oct 2026
Quiz CS201P Lab Quiz 9 by Iqra Azhar PDF 458 KB
vubuddy.com
Type
Quiz
Course
CS201P Introduction to Programming (Practical)
Size
PDF 458 KB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 458 KB

You get 3 free files a day on the website. Add the Chrome extension for 30 a day.

Unlimited downloads in the Android app Get it free on Google Play

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

All CS201P files →
CS201P Introduction to Programming (Practical) All CS201P handouts, past papers, quizzes and MCQs in one place. Open course page

Get more out of VUBuddy, for free

Android app Free on Google Play
  • Unlimited downloads
  • The explanation behind every MCQ answer
  • Study offline on slow data
Get the Android app
Chrome extension Free on the Chrome Web Store
  • 30 downloads a day instead of 3
  • Sign in and buy Pro Semester here
Add to Chrome

One Pro Semester membership works in both the extension and the app.