0% found this document useful (0 votes)
2 views3 pages

OOP Exam Questions: C++/Java Concepts

Uploaded by

Kishan Gupta
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views3 pages

OOP Exam Questions: C++/Java Concepts

Uploaded by

Kishan Gupta
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

(Printed Pages 3) Roll No,

E-447

B.E. IV Semerter (Main & Re-Exam) May - 2017


OOP Using (C+}/Java)
(Cs)
(New Syllabus)
Time : Three Hours / | Maximum Marks:75
|Minimum Marks : 30
Note : Attempt all the questions of Section-A, four from Section-B and three

questions from Section-C.


Section-A
(objective Type Questions)
Note : This section will contain ten objectives type questions. They may be fill in
the blanks. True/False or Multiple Choice Type. 1.5×10=15
1. Which of the following type of class allows only one object of it to be created?
(a) Virtual Class (b) Abstract Class
(g) Singleton Class (d) Friend Class
2. Which of the following is not a type of constructor?
(a) Copy Constructor (b) Friend Constructor
(c) Default Constructor (d) Parameterized Constructor
3. Which of the following is not the Member of Class?
(a) Static Function (b), Friend function
(c) Coast Function (d) Virtual Function
4. The default value of a static integer variable of a class in Java is

(a) 0 (b) 1
(c) Garbage Value (d) Nuil (e)-1
(e) -1
P.T.O.
5. Multiple inheritance means:

(a)One class inheriting from move super classes


(b) Move classes inheriting from one super class
(c) Move classes inheriting from move super classes
(d) None of above
(e) (a) and (b) above
6. To prevent any method from overriding, we declare the methods as
(a)/Static (b) Coast

(c) Final (d) Abstract

(e) None of above


7. Which one of the following is False:
(ay A class containing abstract methods is called an abstract class.
(b) Abstract methods should be implemented in the demeed class.

(c) An abstract class cannot have non-abstract methods.


(d) A class must be qualified as "abstract" class, if it contains one abstract
method.

(e) None of above

8. Variable declared outside a block are caled

(a Global (b) Universal

(c) Stellar (d) External


into
9. The compiler converts your C++ instruction
(a) Edited Code (b) Object Code
(c) Source Code (d) Translated Code

10. A constructor always has


(a) Communicational Cohesion (b) Temporal Cohesion

(c) Logical Cohesion (d) No Cohesion

E-447 (2)
Section-B
(Short Answer Type Questions)
Note : This section will contains six questions. Student will ask to attempt any
four questions out of sixX questions. 6x4=24
1. *Distinguish between Procedural Oriented and Object Oriented Programming.
2. What is function Overloading? Illustrate with an example.
3. Explain Encapsulation with an example.
4. Write a note of Inline Function with illustrations.
5. What are constructors and destructors. Explain with an example.
6. Define and give the syntax of Virtual function &Abstract Base Class.
Section-C

(Long Answer Type Questions)


Note : This section willcontains five questions. Student will ask to attempt any

three questions out of five questions. 12x3=36


1. What is generic Function? Write a generic function to swap two data elements
and demonstrate for Float and character type data.
2. Define a class by name complex. Write a Member function to add two complex
numer and a Friend Function to substract two complex number.
hetd
3. Explain the concept of Fested class in Java vwith asuitable example. in |ap
4. Explain-about Java Beans and Java swing in detail.
5. Write short notes on any two of the following:
(a) JDBC
(b) Exception Handling
Throwing &Catching Mechanism.

E-447 (3)

You might also like