You are on page 1of 1

JAIPUR ENGINEERING COLLEGE AND RESEARCH CENTRE

Department of Computer Science & Engineering

UNIT TEST I Programming Test

Part A

Subject: Object Oriented Programming Code: 3CS4-06 Faculty Name: Priyanka Mitra

CO1: Understand the paradigms of object oriented programming in comparison of procedural


oriented programming.

CO2: Apply the class structure as fundamental, building block for computational
programming.

Q1: Use for loops to construct a program that displays a pyramid on the screen using C++.
The pyramid should look like this:

121

12321

1234321

123454321

Q2: Write a program to display record of 5 students using C++ (Array of Structures).

Q3: Write a program to generate Fibonacci Series using class and objects

Q4: Describe the mechanism of accessing data members and member functions through C++
program in the following case:

(a) Inside the main program


(b) Inside the member function of the same class.
Q5: Write a program to create class Vehicle and two member function setpart() and putpart().
Declare member function outside the class body and access it.

You might also like