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
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 140. Download the file for all 140 pages.
- 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
- 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
- Default constructor generated by ________ does __________ for us. Compiler initialization…..confirm from net
operator.
13. With user data type variables (objects) self assignment can produce
Logical error……confirm from net
14. Constructor is a special type of function
- 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
- #define CIRCUMFERENCE(X) (2*PI*R) is a.
- 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.
Related CS201 files
All CS201 files →- CS201 Final Term Important MCQs Lectures 19-45 by Ali Khan Final term PDF 1.2 MB
- CS201 Final Term MCQs Set 3 Final term PDF 3.5 MB
- CS201 Final Term Solved Subjective Set 2 by Junaid Final term PDF 927 KB
- CS201 Final Term All Papers Mega File Final term PDF 1.3 MB
- CS201 Highlighted Handouts Set 2 Highlighted PDF 5.2 MB
- CS201 Handwritten Short Notes Quiz PDF 1.1 MB
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.