How To Exam?

a knowledge trading engine...


Janardan Rai Nagar Rajasthan Vidyapeeth 2006 B.Tech Computer Science and Engineering OBJECT ORIENTED PROGRAMMING - Question Paper

Tuesday, 14 May 2013 08:25Web

JRN Rajasthan Vidyapeeth University

COMPUTER ENGINEERING

SEMESTER 4

OBJECT ORIENTED PROGRAMMING

Model Question Paper

BSCO10-OBJECT ORIENTED PROGRAMMING

Duration : 3 hrs Maximum Marks: 75

Instruction:

  1. Question paper is divided into Group A, Group B, and Group C
  2. Each Group is of 25 marks
  3. Figure to the right in bracket indicate marks.
  4. Good Handwriting is expected.

Group A (25 Marks)

Answer any three questions (Question 1 is compulsory)

1. Define the following terms: (5)

(i)                                                     Encapsulation

(ii)                                                   Data abstraction

2. What do you meant by overloading of a function? When do we use this concept? (10)

3. What is Function overloading? Explain function overloading with suitable example. (10)

4. Explain the following terms: (10)

(i)                                                     Constructor

(ii)                                                   Destructor

5. What is Operator overloading? Explain operator overloading with suitable example (10)

 

 

Group B (25 Marks)

Answer any three questions (Question 6 is compulsory)

6. Explain private, protected and public members of a class. (5)

7. Explain the following terms: (10)

(i) Virtual Function

(ii) Pure Virtual Function

8. Explain the FOR loop with two examples? (10)

9. What are Templates? Explain template with suitable example. (10)

10.              What is Exception handling? Explain exception handling with suitable example. (10)

Group C (25 Marks)

All questions are compulsory.

Q. 11. Fill in the blanks (Each question carries 2 marks, Total = 10 marks)

1. The __________statement defines a block of statements to handle the exception appropriately.

2. C++ supports a mechanism known as _______________to achieve run time polymorphism.

3. The ____________ statement is used to exit from all the nested loops.

4.      In C++, a function contained with in a class is called a_______________.

5. The default case is required in the ___________ selection structure.

 

Q. 12. Multiple choice questions (Each question carries 2 marks, Total = 10 marks)

Select the correct answer.

 

1. Which of the following is keyword.

(a)                                                                null

(b)                                                               abstract

(c)                                                                protected

(d)                                                               string

 

 

2. Which of the following statements is valid array declaration.

(a) int number(5);

(b) float average[5];

(c) counter int[5];

(d) double[5]marks;

 

3. An exception is caused by

(a) a hardware problem.

(b) a problem in the operating system.

(c) a syntax error.

(d) a run time error.

 

4. If m and n are int type variables, what will be the result of the expression? m%n Where m=-14 and n=-3?

(a) 4

(b) 2

(c) -4

(d) None of the above

 

5. Which of the following keywords is not used to control access to a class member?

(a) private

(b) break

(c) public

(d) protected

 

 

Q. 13. Indicate whether following statements are True or False (Each question carries 1 marks, Total = 5 marks)

1. Building function and data together is known as data hiding.

2. In a structure, members are public by default.

3. A pure virtual function is one with an initializer = 0 in its declaration.

4. An Exception is always caused by a syntax error.

5. Using the keyword operator, we can create new operator in c++.

 

 

 

 

 

********************************


( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER Janardan Rai Nagar Rajasthan Vidyapeeth 2006 B.Tech Computer Science and Engineering OBJECT ORIENTED PROGRAMMING - Question Paper