How To Exam?

a knowledge trading engine...


Indira Gandhi National Open University (IGNOU) 2009 B.C.A Computer Application CS-72P-S1: C++ and Object Oriented Programming , e' - Question Paper

Saturday, 27 July 2013 08:40Web



SET-1

BACHELOR IN COMPUTER APPLICATIONS (BCA)

Term-End Practical Examination

05350


June, 2009

CS-72P : C++ AND OBJECT ORIENTED PROGRAMMING

Maximum Marks : 100 (Weightage : 15%)

Time allowed : 2 hours


General Instructions :

(i)    There are two compulsory questions in this paper of 40 marks each. Rest 20 marks are for viva-voce.

(ii)    You must write appropriate main( ) function and test your programs.

(iii)    Write/Print the programs, input and results on your answer-script.

(iv)    Make and state suitable assumptions, if any.

1.    Design and implement a class my_prime using C++. The my_prime class stores the 40 first seven prime numbers viz. 2, 3, 5, 7, 11, 13, 17 in an array. The class determines whether an input value (it should be between 1 and 400) is a prime value or not. The input value is stored in the class variable n by a function. The class also has a function that determines if n is prime or not. This information is output by an output function.

You need to design the class and implement all the functions along with an appropriate main( ) function.

2.    Design and implement the following class hierarchy using C++ :    40

Closed Surfaces

Curved


Straight

Circle    Square Rectangle

Your implementation should include :

   The member variables for each class.

   Appropriate constructor for each class.

   A polymorphic function "CalArea" that calculates the area of the object.

-oOo-







Attachment:

( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER Indira Gandhi National Open University (IGNOU) 2009 B.C.A Computer Application CS-72P-S1: C++ and Object Oriented Programming , e' - Question Paper