CS201P Final Term MCQs by Miss Mehwish
- Type
- Final term past paper
- Course
- CS201P Introduction to Programming (Practical)
- Size
- PDF 1.1 MB
- 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 1, 2, 3 of 19. Download the file for all 19 pages.
Q1. Complex cadd ( Complex c1, Complex c2 );
Which statement is true for the above code?
It accepts two complex numbers as parameters and returns back the resultant complex number.
Define the function named Complex. Class with name of Complex has been created. Creating object of class Complex with name cadd with parameters.
Q2. The data members that are visible only from inside the class and hidden from the outside are known as: Friend
Public Private ✔ Private and Public
Q3. In C++, which operator is used for memory allocation?
Allocate_memory Calloc Allocate New ✔
Q4. How many objects are created for the class Date?
Date myDates[10];
10 ✔
Q5. An entry in an online encyclopedia that refers to another entry whose title has been changed is an example of _________.
Reference pointer This pointer NULL Pointer Dangling pointer ✔
Q6. The correct syntax of the stream insertion operator is:
istream& istream::operator >> (char *text); ostream& ostream::operator << (char *text); ✔ istream* istream::operator >> (); ostream* ostream::operator << ();
Q7. For overloading the minus (-) operator, which member operator function will be correct? Complex operator – (Complex c) ✔
Complex (-) operator (Complex c) Complex operator (complex c1 - complex c2) Complex – operator (Complex c)
Related CS201P files
All CS201P files →- CS201P Final Term Quiz 10 July 2023 by Miss Mehwish Final term PDF 543 KB
- CS201P Final Term MCQs Spring 2024 Final term PDF 1 MB
- CS201P Final Term Quiz 7 July 2023 by Miss Mehwish Final term PDF 588 KB
- CS201P Final Term Lab Quiz 7 by Wasi Final term PDF 660 KB
- CS201P Final Term Quiz 8 July 2023 by Miss Mehwish Final term PDF 537 KB
- CS201P All Labs Quiz PDF 232 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.