- Type
- Quiz
- Course
- CS201 Introduction to Programming
- Size
- PDF 257 KB
- Updated
- 23 Oct 2026
You get 3 free files a day on the website. Add the Chrome extension for 30 a day.
Preview text
Text from pages 1, 2, 3 of 16. Download the file for all 16 pages.
CS-201 Quiz -3 File
By Vu Topper RM
When a variable is defined as static in a class then _____________.
Only one copy is created for all objects of this class
In C++ operators, which of the following operator cannot be overloaded
Automatic variable are created on ________.
STACK
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
Which of the following is normally a source for cin stream?
Keyboard
Which of the following functionality can be achieved through overloading?
New operators cannot be defined through operator overloading. Assignment operator is used to initialize a newly declared object from existing object.
True
False Overloaded delete operator function takes parameter of void pointer and returns.
VOID(NOTHING)
Which of the following is a destination of cout stream?
PRINTER
When an operator function is defined as member function for a Unary operator then the number of extra arguments it takes is/are,
One
Static data members of a class can be ____________.
public and private
The operator function for << (stream insertion) >> and stream extraction must be
Non-member function of class
The only operator that the compiler overloads for user define data type by default is
Assign operator
It is possible to return an object from function using this pointer.
True
False The statement cin.get (); is used to________. Read a string from keyboard
Read a character from keyboard (Page 426)
Read a string from file Read a character from file
The stream-insertion operator is >> and the stream-extraction operator is
True
False
Within the statement obj1=obj2; obj1 will call the assignment operator function and obj2 will be passed as an argument to function.
True
False Let suppose a = b = c In such situation, it is necessary to return a reference of an object from assignment operator function.
True
False
When an array of object is created dynamically then there is no way to provide parameterized constructors for array of objects.
True
False When new operator is overloaded at global level then corresponding built-in new operator will also be visible to whole of the program. True
False
C++ offers type-safe I/O. The << and >> operators are overloaded to accept data items of specific types.
True
False
One
Zero
stream and returns it as the value of the function call.?
False
True
Member None
Related CS201 files
All CS201 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.