How To Exam?

a knowledge trading engine...


Sikkim-Manipal University of Health Medical and Technological Sciences (SMUHMTS) 2008-2nd Sem M.C.A Computer Assignment s - university paper

Tuesday, 11 June 2013 05:50Web

MC0066 – 01
Marks –60
OOPS USING C++

No. Of Credits: 4 BKID: B0681 & B0715

1. Consider you have to obtain out avg. marks of 100 students in second semester MCA. Write simple program(s) using various iteration statements to accomplish it.
2. Explain the functions:
strlen ( )
strrev ( )
strcmp ( ) with simple programs
3. Discuss features of scope variables with respect to subsequent parameters:
? Visibility
? Lifetime
? Initialised to
? Purpose
4. Define a structure called SMU_students with subsequent data elements:
? Name
? Age
? LC_code
? Reg_No with improper data kinds


Next describe a different structure called MCA_students with subsequent elements (codes of MCA second semester subjects):
? BC0066
? BC0067
? BC0068
? BC0069
? BC0070 using improper data kind

Declare a variable say James of kind SMU_students and variable Sub_code of typeMCA_students in main( ) program. Write code to access individual subjects marks for any 1 learner.






MC0066 – 02
Marks –60
OBJECT ORIENTED PROGRAMMING USING C++
No. Of Credits: 4 Book ID:B0681 & B0715

1 Define terms: Class, Objects and member functions and member elements.

2 Write a C++ code for a class called Cars with member elements
? Wheels
? Engine
? Steering
? Stereo
And a member functions called gear( ), accelerator( ) and brakes( ), runs( )

3 Define terms: Constructors and Destructors.

4 In the class Cars (defined in question-2) initialize member elements Engine and Stereo with product-id using Constructors class and Destructor class. discuss when constructor and destructors are invoked respectively.

5 What are access specifiers? Bring out the features of public, private and protected kinds.

6 Define Inheritance, with a simple block diagram example.

7 You have class Cars with you right? Can you inherit 2 classes called Hyundai and Maruthi-Suzuki with member elements specific to them and write codes showing those 2 classes.

8 Define Polymorphism, with a simple example

9 For Cars Class, we have Maruthi-Suzuki and Hyundai as derived class. If Maruthi-Suzuki engine runs on Diesel and Hyundai on Petrol, implement runs( ) member functions and tell how it exhibits polymorphism?












( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER Sikkim-Manipal University of Health Medical and Technological Sciences (SMUHMTS) 2008-2nd Sem M.C.A Computer Assignment s - university paper