Skip to content
VUBuddy

CS201 Final Term MCQs Set 5

Introduction to Programming PDF 4.5 MBUpdated 23 Oct 2026
Final term past paper CS201 Final Term MCQs Set 5 PDF 4.5 MB
vubuddy.com
Type
Final term past paper
Course
CS201 Introduction to Programming
Size
PDF 4.5 MB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 4.5 MB

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 140. Download the file for all 140 pages.

Quiz No 2 will be opened from · 15th February,2022 to 17th February, 2022. · Syllabus of Quiz No 2 is from Lecture 23 to 33.

  1. What will be the output of the given code? #include<iostream> using namespace std; #define MAX (A, B)((A)>(B)) int main () { int I, x, y; x=23; y=45; I = MAX(x++, y++); Side effect; ?? larger value incremented twice cout << x =<<x<< y=<<\n} X= 24, y=46
  2. if (day == daysOfMonth ( *this ) ) { // this is the last day of the month // process accordingly } In the above condition, we have checked that day is equal to the number of days in the month or not. If the condition returns true it means loop will make its _______ iteration with _______ day of the month.

Last, Last

  1. Default constructor generated by ________ does __________ for us. Compiler initialization…..confirm from net

4. Friend function are used in cases where one class is · to another class · Independent · 5. For casting, we normally declare a pointer of type · We are going to use…….confirm · 6. Constructor is special type of function · 7. Class can be defined as · A class includes both objects and structures · 8. The object code of our program is combined with the · Object code of the library function….confirm · 9. I+=2 is equivalent to · I= i+2….confirm · 10. For accessing data members we use

operator.

(Dot.)….confirm · 11. The · is called automatically when an object destroys · destructor · 12. The function overloading requires · The argument list to be the same….confirm

13. With user data type variables (objects) self assignment can produce

Logical error……confirm from net

14. Constructor is a special type of function

  1. Look at the statement given below int & a; and tell what will happen Compiler will generate an error: a declared as reference but not initialized….confirm from net

16. Macros are categorized into · type(s) · Two…..confrim · 17. If the memory in the free store is not sufficient · Malloc function returns NULL pointer…confirm from net · 18. A reference cannot be Null it has to point a data type · True…..confirm · 19. The friend function of a class can have access _ · To the private data members….confirm

  1. #define CIRCUMFERENCE(X) (2*PI*R) is a.

Definition of a macro…..confirm from net · 21. Which of the following is unary operator · i--, i++, ++i…..all options…confirm

  1. For overloading a void type pointer ptr into integer type, the correct syntax is (int*)ptr……confirm

23. Ternary operator is shown as

Q24. If we do not write our own assignment operator then which of the following problem may occur?

Dangling pointer

25.

Getche() is a _ function and defined in · header file. Built in function, conio.h……confirm from net · 26. Core must be taken about the correct

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.