CS201 Final Term Solved File 5 by Team Hadi
Introduction to Programming
PDF 1.1 MBUpdated 23 Oct 2026
Final term past paper
CS201 Final Term Solved File 5 by Team Hadi
PDF 1.1 MB
vubuddy.com
- Type
- Final term past paper
- Course
- CS201 Introduction to Programming
- Size
- PDF 1.1 MB
- Updated
- 23 Oct 2026
Free download
0 of 3 used today
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 32. Download the file for all 32 pages.
- For binary member operators, operands on the ________ drives (calls) the operation.
- Left
- Right
- Both left and right
- None of the given
- We cannot increment ________.
- pointers
- arrays
- references
- variables
- We can ________ pointer.
- increment
- decrement
- reassign
- all of the given
- We can ________ references.
- increment
- decrement
- reassign
- None of the given
Q5. What will be the correct syntax for the following function call?
float add (int &);
- add(int x);
- add(&x);
- add(x);
- add(*x);
- An instance of a class is called ________.
- structure
- data type
- object
- member function
7. The ________ is called automatically when an object destroys
- destructor
- constructor
- main program
- default constructor
- The destructor is used to ________.
- allocate memory
- deallocate memory
- create objects
- allocate static memory
- ________ data isn't accessible by non-member functions or outside classes.
- Public
- private
- Static
- Globally declared
- Member functions of the class ________ main program.
- are not accessible
- are accessible from
- are defined within the
- are private to
11. Overloading means :
- Using the same name to perform multiple tasks or different tasks depending on the situation.
- Using the different name to perform multiple tasks or different tasks depending on the situation
- Using the same name to perform multiple tasks or same tasks depending on the situation
- Using the same name to perform difficult tasks or complex tasks and it does not depend on the situation
- The main advantage of function overloading is ________.
- The program becomes portable
- The program becomes complex
- The function becomes inline
- The program becomes more readable
- You cannot overload the ________ operator.
- ? :
- *
- /
- ++
14. In C++, a variable can be declared anywhere in the program this will increase
- writability
- readability
- portability
- efficiency
- Memory allocated from heap or free store ________.
- can be returned back to the system automatically
- can be allocated to classes only
- cannot be returned back unless freed explicitly using malloc and realloc
- cannot be returned back unless freed explicitly using free and delete operators
- We cannot use ________ pointer for storing and reading data from it.
- 'NULL
- integer
- double
- zero
- The dynamic memory allocation uses ________ whereas static memory allocation uses ________.
- heap , stack
- stack , lists
- array , stack
- classes , array
Q18. What will be the output of the given code?
cout << "x = " << x << " y = " << y << '\n';
- x=23 y=45
Related CS201 files
All CS201 files →- CS201 Final Term Quiz MCQs 2021 Final term PDF 3.5 MB
- CS201 Final Term Past Papers File 3 by Waqar Siddhu Final term PDF 4.8 MB
- CS201 Final Term Past Papers File 1 by Waqar Siddhu Final term PDF 4.6 MB
- CS201 Final Term Quiz 3 July 2023 by Miss Mehwish Final term PDF 462 KB
- CS201 Complete Handouts Set 2 Handout PDF 3 MB
- CS201 Quiz Jan 2026 Quiz PDF 15 KB
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
Chrome extension
Free on the Chrome Web Store
- 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.