CS201 Final Term MCQs by Miss Mehwish
- Type
- Final term past paper
- Course
- CS201 Introduction to Programming
- Size
- PDF 3.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 72. Download the file for all 72 pages.
Q1. One ✔️
Zero
Two
Q2. Identify the correct method of adding two strings, s1 and s2.
s1, s2+
strcat(s1, s2);
s1+s2 ✔️
s1+s2 and strcat(s1,s2)
Q3. *this is a pointer that always points to
A Value of data member
Current pointer of the class
Current object of the class ✔️
Current function of the class
Q4. Let suppose
int a, b, c, d, e; a = b = c = d = e = 42; This can be interpreted by the compiler as:
(a = b = (c = (d = (e = 42)))); ✔️
a = b = (c = (d = (e = 42)));
a = (b = (c = (d = (e = 42))));
(a = b) = (c = d) = (e = 42);
Q5. When the compiler overloads the assignment (=) operator by default, then:
Compiler does member wise assignment. ✔️
Compiler does not do member wise assignment.
Compiler does not allow default assignment operator
Class members are not assigned properly
Q6. What is the function of the following statement to delete an array of 5 objects named ‘arr’ allocated using the new operator?
delete arr;
Results in syntax error ✔️
Deletes only one object of array
Deletes all the objects of array
Do not delete any object
Q7. The only operator that the compiler overloads for user-defined data types by default is:
Minus (-) operator
Q8. a member function?
Q9. What is the meaning of a bad bit in I/O operation:
Lost data
Wrong data
Bad data
Error in data ✔️
Q10. Overloaded member operator function is always called by _______.
Primitive data type
Object ✔️
Compiler
Class
Q1. What is meant by the following statement?
String str[5] = {String(“Programming”), String(“CS201”)};
Default constructor will be called for all objects of array
Parameterized constructor will call for first 2 objects and default constructor for remaining objects
Default constructor will call for first 2 objects and parameterized constructor for remaining objects
Parameterized constructor will be called for all objects of array
Related CS201 files
All CS201 files →- CS201 Final Term Past Papers File 2 by Waqar Siddhu Final term PDF 4.8 MB
- CS201 Final Term MCQs by VU Topper RM Final term PDF 739 KB
- CS201 Final Term Solved MCQs Set 2 by Junaid Final term PDF 2 MB
- CS201 Final Term Solved Papers Set 2 Final term DOC 192 KB
- CS201 Highlighted Handouts by VUBuddy Highlighted PDF 3.8 MB
- CS201 Practice Exercises Quiz PDF 687 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.