- Type
- Quiz
- Course
- CS201 Introduction to Programming
- Size
- PDF 597 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 11. Download the file for all 11 pages.
- Reference is a thing by which we can create____of any data type.
Answer: synonym
- Encapsulation means___.
Answer: That the data of a class cannot be accessed from outside.
- The___data type always represents an empty set values in C++.
Answer: void
- Let suppose a=b=c In such situation, it is necessary to return a reference of an object from assignment operator function.
Answer: True.
- Once an object is declared as a friend, ____.
Answer: It has access to all non-public members as if they were public
- When the compiler overloads the assignment (=) operator by default then____.
Answer: Complier does member wise assignment.
- _____ Operator are the ones that require two operands on both side of the operator.
Answer: Binary
- For accessing data members we use____operator.
Answer: Dot (.)
- Header files provide_____so the program running on one operating system can run without an error on the other system.
Answer: Portability
- i+=2 is equivalent to___.
- In C language, the region of memory allocated at runtime is called_____.
- Memory allocated from heap or free store_____.
- The malloc function takes_____arguments.
Answer: One
- New operator can be used for____.
Answer: integer, float, char and double data types.
- The function will return a reference to the global variable that exists throughout the program and thus there will be no danger of____.
- Constructor is itself a___of C++ and____.
Answer: function and can be overloaded.
- The____of called automatically when an object destroys.
- if (day== daysOfMath (*this)) //this is the last day of the month In the above condition, we have checked that day’s is equal to the number of days in the month or not. If the condition returns true it means loop will means loop will make its____iteration with____day of the month.
- #undef is used for_____.
Answer: making a symbol undefined.
Q20. Which one of the following is the declaration of overloaded pre-increment operator implemented as member function?
Answer: class-name operator ++ ();
- A class is a user defined data type it takes____.
Answer: no space in memory unless we create an object from it.
- The heap memory structure_____.
Answer: constantly changes in size.
- Which of the following Dec permits function overloading in C++.
Answer: both type and arguments
- The data members of the class are initialized___.
Answer: at runtime
Q25. Which one of the following is mandatory preprocessor directive for C++?
Answer: #include <iostream>
- Function declared with the____specifier in a class member list are called friend functions of that class.
Answer: Friend
- Default constructor takes____.
Answer: No parameters.
- The members of a class declared without any keyword are____by default.
Answer: Private
- In a class we can have___constructor(s).
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.