Skip to content
VUBuddy

CS201 Final Term MCQs 2026 by VUBuddy

Introduction to Programming PDF 16.6 MBUpdated 23 Oct 2026
Final term past paper CS201 Final Term MCQs 2026 by VUBuddy PDF 16.6 MB
vubuddy.com
Type
Final term past paper
Course
CS201 Introduction to Programming
Size
PDF 16.6 MB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 16.6 MB

You get 3 free files a day on the website. Add the Chrome extension for 30 a day.

Unlimited downloads in the Android app Get it free on Google Play

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 _______________.

  1. a + 1;
  2. a + a + 1;
  3. a + = 1;
  4. 1 + a = a;

Correct answer: a + = 1;

Q2. Why is it a good practice to write macro names in capital letters?

  1. It helps distinguish macros from functions and variables
  2. It speeds up macro execution
  3. It is required by the compiler
  4. It avoids runtime errors

Correct answer: It helps distinguish macros from functions and variables

Q3. Which of the following code segment represents a left shift operator?

  1. cout<<1;
  2. result = number >> 1 ;
  3. cin >> number ;
  4. result = number << 1 ;

Correct answer: result = number << 1 ;

Q4. Default constructor takes _________.

  1. one parameter
  2. character type parameter
  3. no parameters
  4. two parameters

Correct answer: no parameters

Q5. the sizeof operator is used to determine the size of _____________.

  1. None of the given
  2. data type
  3. variable
  4. data

Correct answer: data type

Q6.

  1. takes no arguments and can be overloaded
  2. cannot be overloaded and have return type
  3. cannot be overloaded and have no return type
  4. can be overloaded and have return type

Correct answer: cannot be overloaded and have no return type

Q7. A class is _____________.

  1. a user defined data type
  2. a member function
  3. a built in function
  4. an array

Correct answer: a user defined data type

Q8. For accessing data members we use _________ operator

  1. plus +
  2. dot .
  3. multiplication *
  4. Division /

Correct answer: dot .

Q9. What is the main difference between a struct and a class in C++?

  1. Structs can’t have functions.
  2. Classes don’t allow data grouping.
  3. There is no difference.
  4. Struct members are public by default; class members are private.

Correct answer: Struct members are public by default; class members are private.

Q10. Which is not true regarding structures?

  1. a) We can declare arrays of structure
  2. b) We can take the size of structure
  3. c) We can’t declare pointers to structure
  4. d) Both b & c

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?

  1. ios::out
  2. ios::in
  3. ios::app
  4. ios::trunc

Correct answer: ios::out

Q2. Default constructor generated by ______________does ______________for us.

  1. compiler , initialization
  2. classes , initialization
  3. main program, memory management
  4. compiler, no initialization

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?

  1. s[55].name;
  2. s.name[56];
  3. s[56].name;
  4. s.name[55];

Correct answer: s[55].name;

Q4. What is the storage space of double data type?

  1. 64 bytes
  2. 16 bytes
  3. 8 bytes
  4. 32 bytes

Correct answer: 8 bytes

Q5. a = a + 1; can be written as _______________.

  1. 1 + a = a;
  2. a + 1;
  3. a + = 1;
  4. a + a + 1;

Correct answer: a + = 1;

Q6. Public member functions of the class ______________main program.

  1. are accessible in
  2. are defined within the
  3. are not accessible in
  4. are private to

Correct answer: are accessible in

All CS201 files →
CS201 Introduction to Programming All CS201 handouts, past papers, quizzes and MCQs in one place. Open course page

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
Get the Android app
Chrome extension Free on the Chrome Web Store
  • 30 downloads a day instead of 3
  • Sign in and buy Pro Semester here
Add to Chrome

One Pro Semester membership works in both the extension and the app.