Skip to content
VUBuddy

CS201 Final Term Past Paper Spring 2006 Session 1

Introduction to Programming PDF 161 KBUpdated 23 Oct 2026
Final term past paper CS201 Final Term Past Paper Spring 2006 Session 1 PDF 161 KB
vubuddy.com
Type
Final term past paper
Course
CS201 Introduction to Programming
Size
PDF 161 KB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 161 KB

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 4. Download the file for all 4 pages.

FINALTERM EXAMINATION

SPRING 2006 CS201 - INTRODUCTION TO PROGRAMMING (Session - 1 ) Marks: 50 Time: 120min

Student Name:

Center Name/Code:

Exam Date: Wednesday, August 23, 2006

d. All coding questions should be answered using the C ++ syntax.

You are allowed to use the Dev-C++ compiler to write and test your code. If you do so please remember to copy and paste your code into the examination

solution area. (Do NOT share your code; your colleague could get higher marks than you!!)

Question Total

com

Marks

Q1. A for loop usually consist of __________ expressions. (2 marks)

Q2. A preprocessor directive is identified by _________ symbol (2 marks)

Q3. Which of the following operators can not be overloaded? (2 marks)

new

delete

sizeof

Q4. com (2 marks)

Analyze the following code

class myclass · private: · float x,y; · public: · void myclass(float a, float b) · x=a; · y=b; · void diplay() · cout<<endl<<x<<endl<<y;

What is wrong with the above code?

The member functions should be private

constructor must not have a return type

The constructor should have no body

There is no error in the given code

Q5. Analyze the following code and list all the errors and line numbers in the given code. (6 marks)

int i=2; · for(i<=100;i++) · if(i%2==0) · cout<<i; · cout<<” is even /n’;

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.