Skip to content
VUBuddy

CS201 Quiz 4 by Iqra Azhar

Introduction to Programming PDF 676 KBUpdated 23 Oct 2026
Quiz CS201 Quiz 4 by Iqra Azhar PDF 676 KB
vubuddy.com
Type
Quiz
Course
CS201 Introduction to Programming
Size
PDF 676 KB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 676 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 7. Download the file for all 7 pages.

The life time of the static data member of a class is the life time of the

program.

stack The get member function, when passed no arguments, inputs an entire stream and returns it as the value of the function call. false. The operator function for << (stream insertion) >> and stream extraction must be Non-member function of class member functions of a class both none. _____________ must be included to use stream manipulator in your code.

Which of the following is a destination of cout stream? daratype variable constant printer

To get the memory address of a variable we use ___

i+=2 is equivalent to ___________.Select the correct option i=1+I; i=i++; 2+=I; i = i + 2. In C++ operators, which of the following operator cannot be overloaded ___________.Select the correct option

he behaviour of the compiler in _____classes is the same as in template functions. Select the correct option Abstract Nested Outer Template

Which of the following is not an advantage of templates?Select the correct option Easy to understand Helps in compiler optimizations Provide code reusability Templates are not type-safe." which of the following cannot act as data member of class?Select the correct option Objects Functions Structures Unions Functions A _____________ function of a class is defined outside that class scope, but it can access all private and protected members of the class. Select the correct option Global Private Protected Friend Consider the following code segment. Which of the following will be called while executing code at line 2?String s1 , s2;s1 = s2 ; assignment operator What is the sequence of event(s) when allocating memory to an object using new operator? Memory is allocated first before calling constructor Only constructor is called for object Only block of memory is allocated for object Constructor is called first before allocating memory

________ variable has a single copy for the whole class. static Which of the following functionality can be achieved through overloading? New operators cannot be defined through operator overloading. We can change the precedence of some operators

All CS201 files →
CS201 Introduction to Programming All CS201 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.