CS201 Final Term MCQs 2026 by VUBuddy
- Type
- Final term past paper
- Course
- CS201 Introduction to Programming
- Size
- PDF 16.6 MB
- Updated
- 23 Oct 2026
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 50. Download the file for all 50 pages.
Q1. a = a + 1; can be written as _______________.
Correct answer: a + = 1;
Q2. Why is it a good practice to write macro names in capital letters?
Correct answer: It helps distinguish macros from functions and variables
Q3. Which of the following code segment represents a left shift operator?
Correct answer: result = number << 1 ;
Q4. Default constructor takes _________.
Correct answer: no parameters
Q5. the sizeof operator is used to determine the size of _____________.
Correct answer: data type
Q6.
Correct answer: cannot be overloaded and have no return type
Q7. A class is _____________.
Correct answer: a user defined data type
Q8. For accessing data members we use _________ operator
Correct answer: dot .
Q9. What is the main difference between a struct and a class in C++?
Correct answer: Struct members are public by default; class members are private.
Q10. Which is not true regarding structures?
Correct answer: c) We can’t declare pointers to structure
Q1. Which of the following is the default mode of the file opening while using the ofstream class?
Correct answer: ios::out
Q2. Default constructor generated by ______________does ______________for us.
Correct answer: compiler, no initialization
Q3. student s[100]; means that ‘s’ is an array of hundred students of type ‘student’ structure. What will be the correct statement to access the ‘name’ data element of the fifty sixth student from the array?
Correct answer: s[55].name;
Q4. What is the storage space of double data type?
Correct answer: 8 bytes
Q5. a = a + 1; can be written as _______________.
Correct answer: a + = 1;
Q6. Public member functions of the class ______________main program.
Correct answer: are accessible in
Related CS201 files
All CS201 files →- CS201 Final Term Quiz Spring 2026 Final term PDF 683 KB
- CS201 Final Term Past Papers 2024 by Qalb-e-Momin Final term PDF 10.7 MB
- CS201 Final Term MCQs and Short Notes 2023 by Learning Zone Final term PDF 279 KB
- CS201 Final Term Guess Paper 2023 Final term PDF 573 KB
- CS201 Highlighted Handouts by VUBuddy Highlighted PDF 3.8 MB
- CS201 Lecture 13 Quiz DOCX 53 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.