Introduction to Programming - CS201 Fall 2005 Final Term Paper.pdf
Verified academic study resource for CS201 (Introduction to Programming) under the Computer Science at Virtual University of Pakistan. This PDF document (Final-Term Solved Past Paper & Examination Pack) covers Final-Term Exam Scope (Lectures 23 to 45) spanning approximately 320 pages across 4 curriculum modules, and is indexed for student examination review with instant in-browser preview and 100% free direct download.
- Course
- CS201 – Introduction to Programming
- Faculty
- Computer Science
- Format
- Type
- Final-Term
- Coverage
- Final-Term Exam Scope (Lectures 23 to 45)
- Tags
- FINALTERM
Virtual University regulations strictly require achieving at least 20% marks in the Final-Term exam paper alone (typically 12+ marks out of 60) to pass CS201, regardless of midterm scores.
What this file covers — CS201 syllabus roadmap
- Object-Oriented Paradigms: Classes & Data Abstraction — Lectures 23 to 29 (Pages 281 to 360). 16% Final-Term Marks (Core OO Concepts)
- Inheritance Hierarchies & Dynamic Polymorphism — Lectures 30 to 36 (Pages 361 to 435). 20% Final-Term Marks (Virtual Functions & V-Tables)
- Templates, Standard Library & Persistent File I/O — Lectures 37 to 41 (Pages 436 to 510). 14% Final-Term Marks (Generic Code & Streams)
- Final-Term Examination Dossier & Capstone Synthesis — Lectures 42 to 45 (Pages 511 to 585). Final-Term Exam Synthesis (Lectures 23–45 Scope)
Frequently asked questions
Where can I download Introduction to Programming - CS201 Fall 2005 Final Term Paper.pdf for free?
You can preview and download "Introduction to Programming - CS201 Fall 2005 Final Term Paper.pdf" (CS201 PDF, ~320 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/introduction-to-programming-cs201-fall-2005-final-term-paper-pdf) with 100% free high-speed downloads and zero registration requirements.
What syllabus chapters and lectures are covered in this CS201 file?
This document covers Final-Term Exam Scope (Lectures 23 to 45) across 4 distinct lecture units (Lectures 23 to 29, Lectures 30 to 36, Lectures 37 to 41, Lectures 42 to 45), featuring comprehensive definitions, solved objective questions, and examiner marking rubrics.
What is the passing criteria for CS201 under the VU 20% Two-Half Rule?
Under official Virtual University regulations, students must score at least 20% in the First Half (Quizzes, Assignments, GDBs, and Midterm combined) AND independently at least 20% in the Final-Term examination paper. Scoring under 20% in the final exam results in an automatic F grade regardless of earlier marks.
Are CS201 solved past papers and handouts verified for 2026 exams?
Yes. All CS201 materials on MIHORA VU—including Moaaz, Waqar Siddhu, and team archives—are reviewed against the current VU syllabus to help students prepare for 2026 Midterm, Final-Term, and online quiz examinations.
Inside this file
WWW.VUTUBE.EDU.PK
www.vustuff.com
CS201 Introduction to Programming
Final Term Examination - February 2005
Time Allowed: 150 Minutes
Please read the following instructions carefully before attempting any of the
uestions:
1. Attempt all questions. Marks are written adjacent to each question.
2. Do not ask any questions about the contents of this examination from
anyone.
a. If you think that there is something wrong with any of the questions,
attempt it to the best of your understanding.
b. If you believe that some essential piece of information is missing,
make an appropriate assumption and use it to solve the problem.
c. Write all steps, missing steps may lead to deduction of marks.
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!!)
**WARNING: Please note that Virtual University takes serious note of
unfair means. Anyone found involved in cheating will get an `F` grade in
this course.
Total Marks: 100 Total
Questions: 13
Question No. 1 Marks : 2
A function declaration has the same relationship to a function definition that
1 a class definition has to an object definition
2 an object declaration has to an object
3 a variable has to a variable declaration
4 a variable declaration has to the variable itself
5 they have no relationship
Question No. 2 Marks : 12
Write a function to overload subtraction operator for Class Order, which you created in
previous question. The class has following attributes/ data members
i) OrderID
ii) Items
iii) PricesOfItems
Write the main () to call the - operator and print the result also. This operator should subtract
the items of one object from the other.
Question No. 3 Marks : 4
What is the difference between an array and a structure?
Question No. 4 Marks : 2
When we write a class template the first line must be:
1 template < class class_type>
2 template < class data_type>
3 template < class T >, Here T can be replaced with any name but it is preferable.
4 class class-name()
5 class template< class_name>
Question No. 5 Marks : 2
A friend function of a class has access
1 To all data member and functions of the class
2 Only to other friend functions of the class
3 Only to private data of the class
4 Only to public data of the class
5 To private data declared in main()
Question No. 6 Marks : 5
Briefly describe the role of each of the following within a class:
1. Instance variables
2. Instance methods
3. Constructors
Question No. 7 Marks : 20
Create a class named Order. This class has the following attributes/ data members
i) OrderID
ii) Items
iii) PricesOfItems
a) Create the object of this class using parameterized constructor in order to initialize
OrderID and Items data members. Default values of both the data members must be
equal to 1.
b) Write the following member functions of this class;
i) OrderBill ( ), this function will calculate the invoice of an order and display the
result. The formula to calculate the invoice is
invoice=SumPrices();
ii) SumPrices( ), this function will sum the prices of the items entered by the user
from
keyboard in PricesOfItems array and returns the result.
c) Write the setter functions for OrderID, Items, and PricesOfItems. And getter functions
for OrderID and Items.
Also write the main () to create the object of class Order.
Question No. 8 Marks : 2
The new operator
1 is used to declare objects or variables
2 can not create and initialize an object
3 names an object or variable
4 returns an address to an object or variable
5 can allocate an appropriate amount of memory for an object or variable
Question No. 9 Marks : 15
Write a program that inputs one string of max length of 10. If the string is identical to "Virtual",
output the message "Correct Password"; otherwise, output the first four characters in the
message and the length of the message.
Question No. 10 Marks : 2
If we open a file stream myfile for reading, what will give us the current position of the file
pointer?
1 tellg()
2 tellp()
3 seekg()
4 seekp()
5 fstream.h
Question No. 11 Marks : 2
There is a class Student, Which one of the following is a valid destructor for this class.
1 Student();
2 Student(int);
3 ~ Student();
4 int~ Student();
5 ~ Student(int);
More CS201 files
- CS201 (Final term Notes) Important Topics Covered 2025.pdf (PDF · Final-Term)
- CS201 2 Quiz#3 6 July2023 FINALS by MISS MEHWISH.pdf (PDF · Final-Term)
- CS201 2 Quiz#3 6 July2023 FINALS by MISS MEHWISH.pdf (PDF · Final-Term)
- CS201 2020 Final Paper Current by VU Answer-1.pdf (PDF · Final-Term)
- CS201 2020 Final Paper Current by VU Answer-1.pdf (PDF · Final-Term)
- CS201 2020 Final Paper Current by VU Answer.pdf (PDF · Final-Term)
- CS201 2020 Final Paper Current by VU Answer.pdf (PDF · Final-Term)
- CS201 2020 Final Paper Current by VU Answer.pdf (PDF · Final-Term)