- Type
- Quiz
- Course
- CS201 Introduction to Programming
- Size
- PDF 5.7 MB
- 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 1, 2, 3 of 122. Download the file for all 122 pages.
The reference of a local variable from the function……confirm
Q2. Which one of the following is the declaration of overloaded pre-increment operator implemented as member function?
Class name operator ++()….confirm from net
- Reference is a thing by which we can create ________ of any data type Synonym…..confirm
- Reference cannot be uninitialized because it is impossible to ______. Initialize a Null pointer…..confirm
5. The syntax of declaration of a function that returns the reference to an integer is
6. Friend function declaration can go _________ the class
Anywhere in……confirm
7. To prevent dangling reference the functions returning reference should be used with
Static and global variables……….confirm
- The only operator that the compiler overloads for user define data type be default in Arrangement (=) operator …..confirm from net
Q9. If operator function is non-member function then object on left side of operator cannot be ______________?
Object of member function…….confirm
- Which of the following functionality can be achieved through overloading? New operators cannot be defined through operator overloading
11. The return type of the overloading new operator must be? Void*….confirm from net
- For binary member operators, operands on the _________ derives (calls) the operation.
Left…….confirm
13. Identify the correct method of adding two strings, s1 and s2. Strcat(s1,s2)
- A friend function of a class is a function defined _________.
Outside that class and that has the right to access all members of the class
- Care must be taken about the correct ______ of operator while overloading.
Both Semantic and Complexity……confirm from net
- We can _______ reference.
None of the given….confirm
Q17. If text is a pointer of type string then what will be the functionality of following statement?
Int & a; and tell what will happen?
Compiler will generate an error ‘a’ declared as reference but not initialized……confirm
19. The syntax of declaration of a function that returns the reference to an integer is
- Which of the following syntax is best used to delete an array of 5 objects named ‘string’ allocated using new operator.
Delete []string;….confirm from net
Q21. If we do not write our own assignment operator then which of the following problem may occur?
22. Identify the correct syntax for making a class friend of other class
It has access to all non-public members as if they were public….confirm from net
- Reference is a thing by which we can create ______ of any data type.
alias or synonym…both………confirm
- A _______ function of a class is defined outside that class scope. But it can access all private and protected members of the class. Firend…..confirm
- Once the __________ are created they exist for the life time of the program Static variables…..confirm
Related CS201 files
All CS201 files →- CS201 Highlighted Handouts by VUBuddy Highlighted PDF 3.8 MB
- CS201 Midterm Solved MCQs Set 2 by Moaaz and Asad Midterm PDF 260 KB
- CS201 Grand Quiz 4 by Lucky Quiz PDF 2.5 MB
- CS201 Quiz 2 Updated June 2023 by Attiq Kundi Quiz PDF 3.3 MB
- CS201 Quiz 3 June 2025 by Lucky Quiz PDF 718 KB
- CS201 Quiz 1 Set 3 Quiz PDF 1.1 MB
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.