CS201 Final Term MCQs and Short Notes 2023 by Learning Zone
- Type
- Final term past paper
- Course
- CS201 Introduction to Programming
- Size
- PDF 279 KB
- 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 2, 3, 4 of 25. Download the file for all 25 pages.
MCQS
- For binary member operators, operands on the drives (calls) the operation.
- Left
- Right
- Both left and right
- None of the given
2. We cannot increment
- pointers
- arrays
- references
- variables
3. We can
pointer.
- increment
- decrement
- reassign
- all of the given
4. We can
references.
- increment
- decrement
- reassign
- None of the given
5. What will be the correct syntax for the following function call? float add (int &);
- add(int x);
- add(&x);
- add(x);
- add(*x);
6. An instance of a class is called
- structure
- data type
- object
- member function
7. The
- destructor
- constructor
- main program
- default constructor
8. The destructor is used to
- allocate memory
- deallocate memory
- create objects
- allocate static memory
9. data isn't accessible by non-member functions or outside classes.
- Public
- private
- Static
- Globally declared
10. Member functions of the class
- 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
12. The main advantage of function overloading is
- The program becomes portable
- The program becomes complex
- The function becomes inline
- The program becomes more readable
13. You cannot overload the
operator.
- ? :
- *
- /
- ++
14. In C++, a variable can be declared anywhere in the program this will increase
- writability
- readability
- portability
- efficiency
15. 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
16. We cannot use
pointer for storing and reading data from it.
- 'NULL
- integer
- double
- zero
17. 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?
#include #define MAX( A, B ) ((A) > (B) ? (A) : (B)) void main() {
// Side-effect: // larger value incremented twice cout << "x = " << x << " y = " << y << '\n';
- x=23 y=45
- x=24 y=46
- x=24 y=47
- x=22 y=47
19. NULL has been defined in
- Iostream.h
- Stdlib.h
- Stdio.h
- String.h
20. Symbolic constant PI can be defined as:
- #define PI 3.14 ;
- #define PI 3.14
- #define PI=3.14
- # include pi= 3.14
21. The friend function of a class can have access _
- to the public data members only
- to the private data members
- to the protected data members
- to the main program
22. C++ was developed by
- Charles Babbage
- Graham Bell
- Bejarne Stroustrup
- Von Nuemann
23. Once the
are created, they exist for the life time of the program.
- local variables
- non static variables
- static variables
- automatic variables
24. Encapsulation means
- that the data of a class cannot be accessed from outside
Related CS201 files
All CS201 files →- CS201 Final Term Quiz 3 July 2023 Part 5 by Miss Mehwish Final term PDF 658 KB
- CS201 Final Term Quiz 2023 Final term PDF 646 KB
- CS201 Final Term Quiz 3 July 2023 Part 4 by Miss Mehwish Final term PDF 659 KB
- CS201 Final Term Quiz 3 July 2023 Part 3 by Miss Mehwish Final term PDF 665 KB
- CS201 Handouts Set 2 by VUBuddy Handout PDF 14.5 MB
- CS201 Short Notes Set 3 Quiz PDF 162 KB
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.