Skip to content
VUBuddy

CS201 Quiz File 2 by Attiq Kundi

Introduction to Programming PDF 597 KBUpdated 23 Oct 2026
Quiz CS201 Quiz File 2 by Attiq Kundi PDF 597 KB
vubuddy.com
Type
Quiz
Course
CS201 Introduction to Programming
Size
PDF 597 KB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 597 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 1, 2, 3 of 11. Download the file for all 11 pages.

CS-201 Quiz File · Knowledge For Us · By Attiq Kundi

  1. Reference is a thing by which we can create____of any data type.

Answer: synonym

  1. Encapsulation means___.

Answer: That the data of a class cannot be accessed from outside.

  1. The___data type always represents an empty set values in C++.

Answer: void

  1. Let suppose a=b=c In such situation, it is necessary to return a reference of an object from assignment operator function.

Answer: True.

  1. Once an object is declared as a friend, ____.

Answer: It has access to all non-public members as if they were public

  1. When the compiler overloads the assignment (=) operator by default then____.

Answer: Complier does member wise assignment.

  1. _____ Operator are the ones that require two operands on both side of the operator.

Answer: Binary

  1. For accessing data members we use____operator.

Answer: Dot (.)

  1. Header files provide_____so the program running on one operating system can run without an error on the other system.

Answer: Portability

  1. i+=2 is equivalent to___.
  2. In C language, the region of memory allocated at runtime is called_____.
  3. Memory allocated from heap or free store_____.
  4. The malloc function takes_____arguments.

Answer: One

  1. New operator can be used for____.

Answer: integer, float, char and double data types.

  1. The function will return a reference to the global variable that exists throughout the program and thus there will be no danger of____.
  2. Constructor is itself a___of C++ and____.

Answer: function and can be overloaded.

  1. The____of called automatically when an object destroys.
  2. 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.
  3. #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 ++ ();

  1. A class is a user defined data type it takes____.

Answer: no space in memory unless we create an object from it.

  1. The heap memory structure_____.

Answer: constantly changes in size.

  1. Which of the following Dec permits function overloading in C++.

Answer: both type and arguments

  1. 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>

  1. Function declared with the____specifier in a class member list are called friend functions of that class.

Answer: Friend

  1. Default constructor takes____.

Answer: No parameters.

  1. The members of a class declared without any keyword are____by default.

Answer: Private

  1. In a class we can have___constructor(s).
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.