You are on page 1of 2

Department of Information Technology,

Division of Physical Science,


G.C University, Faisalabad.
: Assignment No. 01 :
Class: BS(IT) Semester: 2nd
Subject: OOP Course Code: CSI-301
Max. Marks: 100 Tutor: Shahbaz Nazeer
Deadline: Your assignment must be submitted before or on 06 June 2019.
Rules for Marking:
It should be clear that your assignment will not get any credit if:
o The assignment is submitted after due date.
o The assignment is copied.
Instructions:
o All Questions are compulsory.
o Write your roll no and name on your Assignment.
o Write just to the point.
o Understanding of Questions is part of Assignment.

Note: all Questions are compulsory and All questions carry equal marks Marks: 20*5=100

Question # 01: 20
1. Write about the history/Development of Object Oriented Programming (OOP)
2. What are Object Oriented concepts and principles write in detail?
3. What are the code OOP’s concepts? Elaborate.
4. What is Procedure oriented language and non-Procedure oriented language? Explain with
example?
5. What are the characteristics of Procedure oriented language and non-Procedure oriented
language.
6. What are the basic concepts of Object Oriented Programming (OOP)? Also write the features of
Object Oriented Programming (OOP)?
7. What is the process writing program in an object-oriented language?
8. Write the advantages and disadvantages of OOP.
9. What are the applications of OOP?
10. Differentiate between Sequential, Structured and Object Oriented Programming approaches.
Which programming languages are suitable for each type of approach? And why?

Question # 02: 20
Write the note of the following terms of Object Oriented Programming (OOP) also give at
least four examples each of the following:
1. Objects 12. function overloading
2. Class 13. constructors and destructors
3. Encapsulation 14. operator
4. Abstraction 15. derived classes
5. manipulators 16. concrete classes
6. data members 17. virtual functions
7. static data member 18. Array and its type
8. member functions 19. Pointer
9. function prototype 20. Structure
10. inline function
11. Friend functions

Question # 03: 20
1. What is variable? Write about declaration and initialization of the variable?
2. What is dynamic initialization of variables and reference variable?
3.What is a constructor? What is a destructor? Explain with program example?
4.What is polymorphism with an example?

Question # 04: 20
1. What is inheritance? Distinguish between single inheritance and multiple inheritances
2. Write a program in C++ having parent and child classes to demonstrate the concept of
inheritance. Write down the advantages and disadvantage of multiple inheritances.
3. Write a class that contains an attributes name a function to input and a function to display
name creates array of pointers in which each element refers to an object of the class.
Question # 05: 20
Explain virtual function and pure virtual function with five examples.

You might also like