Skip to content
VUBuddy

CS201 Final Term Solved MCQs by Moaaz

Introduction to Programming PDF 2.4 MBUpdated 23 Oct 2026
Final term past paper CS201 Final Term Solved MCQs by Moaaz PDF 2.4 MB
vubuddy.com
Type
Final term past paper
Course
CS201 Introduction to Programming
Size
PDF 2.4 MB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 2.4 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 44. Download the file for all 44 pages.

Latest Solved Mcqs from Final term Papers

July 11,2011

asad Asad Ali

Latest Mcqs

Q1. All A template function must have at least ---------- generic data type (1 marks)

  1. Zero
  2. One (Page 499)
  3. Two
  4. Three

Q2. Which of the following statement is best regarding declaration of friend function? (1 marks)

  1. Friend function must be declared after public keyword
  2. .
  3. Friend function must be declared after private keyword.
  4. Friend function must be declared at the top within class definition.
  5. It can be declared anywhere in class as these are not affected by the public and private keywords. (Page 346)

Q3. Which one of the following is the declaration of overloaded pre-increment operator implemented as member function? (1 marks)

  1. Class-name operator +() ;
  2. Class-name operator +(int) ;
  3. Class-name operator ++() ;

Correct answer: Class-name operator ++() ;

(Page 389)

  1. Class-name operator ++(int) ;

Q4. Class is a user defined___________. (1 marks)

  1. data type (Page 317)
  2. memory referee
  3. value
  4. none of the given options.

Correct answer: data type (Page 317)

Q5. How many bytes will the pointer intPtr of type int move in the following statement? intPtr += 3 ; (1 marks)

  1. 3 bytes
  2. 6 bytes
  3. 12 bytes
  4. 24 bytes

Correct answer: 12 bytes

Q6. Which of the following is the correct C++ syntax to allocate space dynamically for an array of 10 int? (1 marks)

  1. new int(10) ;
  2. new int[10] ;
  3. int new(10) ;
  4. int new[10];

Correct answer: new int[10] ;

Q7. A Pointer is a special variable that contain (1 marks)

  1. Data values
  2. Memory Address (Page 267)
  3. Both data and values
  4. None of the given option

Correct answer: Memory Address (Page 267)

Q8. Reference Value Type Data The code is written to __________ the program. (1 marks)

  1. implement
  2. design
  3. analysis
  4. none of the given options

Correct answer: implement

Final Term Spring 2010

Operator overloading can be performed through__________________.

  1. Classes
  2. Function (Page 371)
  3. Operators
  4. Reference

Correct answer: Function (Page 371)

Q2. When a value is referred by a normal variable then it is known as, (1 marks)

  1. Direct Reference (page 143)
  2. Indirect Reference.
  3. Partial Reference
  4. Proper Reference

Correct answer: Direct Reference (page 143)

When a value is referred by a normal variable is known as direct reference

Q3. Which of the following function is used to increase the size of already allocated memory chunk? (1 marks)

  1. malloc
  2. calloc
  3. realloc (Page 285)
  4. free

Correct answer: realloc (Page 285)

Q4. Which of the following is NOT a preprocessor directive? (1 marks)

  1. #error
  2. #define
  3. #line
  4. #ndefine (Page 272)

Correct answer: #ndefine (Page 272)

Q5. The stream objects cin and cout are included in which header file? (1 marks)

  1. iostream.h (Page 15)
  2. fstream.h
  3. istream.h
  4. ostream.h

Correct answer: iostream.h (Page 15)

Q6. Overloaded delete operator function takes the same parameter as an argument returned by new operator function. (1 marks)

  1. True (Page 414)
  2. False

Correct answer: True (Page 414)

The same pointer that is returned by the new operator, is passed as an argument to the delete operator. These rules apply to both, if operators (new and delete) are overloaded as member or non-member operators (as global operators).

Q7. When an array of object is created dynamically then there is no way to provide parameterized constructors for array of objects. (1 marks)

  1. True (Page 414)
  2. False

Correct answer: True (Page 414)

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.