How To Exam?

a knowledge trading engine...


Deemed University 2011 B.C.A Computer Application University: Lingayas University Term: III Title of the : Object Oriented Programming Systems - Question Paper

Tuesday, 30 April 2013 07:20Web


Roll No

Roll No. ..

 

Lingayas University

BCA 1st Year (Term III)

Examination May 2011

Object Oriented Programming Systems (CA - 1104)

 

[Time: 3 Hours] [Max. Marks: 100]

 


Before answering the question, candidate should ensure that they have been supplied the correct and complete question paper. No complaint in this regard, will be entertained after examination.

 


Note: Attempt five questions in all. All questions carry equal marks. Question no. 1 (Section A) is compulsory. Select two questions from Section B and two questions from Section C.

Section A

Q-1. Select the correct answer of the following multiple choice questions. [102=20]

(i) Which is not the feature of structured programming?

(a) Support for modular programming (b) User-defined data type

(c) Emphasis on algorithm (d) Data abstraction

(ii) In object oriented programming classes are useful because they

(a) Can closely model objects in the real world

(b) Bring together all aspects of an entity in one place

(c) Permit data to be hidden from other classes

(d) All of these

(iii) The first object oriented language is

(a) Small Talk (b) C++

(c) Java (d) None of these

(iv) In object oriented programming, advantages of inheritance include

(a) Providing a useful conceptual framework

(b) Avoiding rewriting of code

(c) Facilitating class libraries

(d) All of these

(v) Polymorphism is done by

(a) Function overloading

(b) Creating new classes from base class

(c) Operator overloading

(d) Both (a) and (c)

(vi) Class is

(a) A template which associates code and data

(b) Data abstraction

(c) Implementation of an abstract data type

(d) Object oriented

(vii) A friend function can be called

(a) By using object of the class (b) Directly

(c) Should not be called (d) Like a normal function

(viii) A const member functions

(a) Doesnt change data fields of the object

(b) Cant be overloaded

(c) Dont have return type

(d) Have no arguments

(ix) Protected members are accessible to

(a) Members of its class only

(b) To the members of derived class

(c) Both (a) and (b)

(d) Are not outside the class

(x) Object orientated programming allows for extension of an objects function or of class function. This ability within OOP is called ________

(a) Extendibility (b) Expansion capacity

(c) Virtual extension (d) Scalability

(xi) _______ provide useful conceptual framework.

(a) Inheritance (b) Polymorphysm

(c) Encapsulation (d) None of these options

(xii) Which of the following is true?

(a) Class is an object of an object

(b) Class is Meta class

(c) Class cannot have zero instances

(d) None of these options.

(xiii) The design of classes in a way that hides the details of implementation from the user is known as:

(a) Encapsulation (b) Information Hiding

(c) Data abstraction (d) All of these options

(xiv) ______ is the good example of a method that is shared by all instance of a class.

(a) Constructor (b) Attribute

(c) Constructor and Attribute (d) None of these options

(xv) An ______ denotes the essential characteristics of an object that distinguish it from all other kinds of objects.

(a) Aggregation (b) Abstraction

(c) Modularity (d) None of these options

(xvi) What is a base class?

(a) An abstract class that is at the top of the inheritance hierarchy.

(b) A class with a pure virtual function in it.

(c) A class that inherits from another class

(d) A class that is inherited by another class, and thus is included in that class.

(xvii) ______ is the property of an object that distinguishes it from all other object.

(a) Identity (b) State

(c) Behaviour (d) None of these options.

(xviii) When a class uses dynamic memory, what member functions should be provided by the class?

(a) An overloaded assignment operator

(b) The copy constructor

(c) A destructor

(d) All of these options

(xix) If a catch statement is written to catch exception objects of a base class type, it can also catch all _____ derived from that base class

(a) Exceptions for objects (b) Objects of classes

(c) Arguments (d) Errors

(xx) An application uses encapsulation to achieve ________

(a) Information hiding

(b) Minimizing interdependencies among modules

(c) Make implementation independent

(d) All of these options

 

Section B

Q-2. Write short notes on the following:

(i) Friend function

(ii) Polymorphism

(iii) Exception Handling

(iv) Preprocessor Directives [45=20]

 

Q-3. (a) What is a reference variable in C++ ? Where it is used? What is the purpose of const keyword along with function argument? Can const be used with a function? Justify your answer with an example. [10]

(b) What is the use of static data members and static member functions? How are they referenced? Explain with an example. [10]

 

Q-4. (a) Explain in detail the three types of access modifiers. How these modifiers control access to the class? [10]

(b) What is the need of a virtual function? Describe this with the help of a suitable example using C++. What is a pure virtual function? [10]

 

Section C

 

Q-5. What is inheritance? What are its advantages? Explain any two types of inheritance with the help of diagram and suitable example. [20]

 

Q-6. Explain operator overloading. Write a program to overload the binary operators; + for the concatenation of the string and overload = to assign the result of concatenation of string into third variable. [20]

 

Q-7. What is template class? What are the advantages of template class? Write a program to implement the template class demonstrating the usage of array of integer, array of float, array of character using generic data type. [20]

 

Q-8. Explain different types of file operations in C++. Write a program to read the text from one file and write it into other file. [20]


( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER Deemed University 2011 B.C.A Computer Application University: Lingayas University Term: III Title of the : Object Oriented Programming Systems - Question Paper