EC6301 OOPS DS 2marks 16marks, Object Oriented Programming n Data Structures Question Bank, OOPS DS Short Answers – ECE 3rd SEM Anna University

0

Anna University Regulation 2013 Electronics and Communication Engineering (ECE) EC6301 OOPS DS 2marks & 16marks for all 5 units are provided below. Download link for ECE 3rd SEM EC6301 Object Oriented Programming n Data Structures Short answers, Question Bank are listed down for students to make perfect utilization and score maximum marks with our study materials.

UNIT – I DATA ABSTRACTION AND OVERLOADING
1. What is the output of the following program, if it is correct?
Otherwise indicate the mistake: [May 2006]
int l=10;
Void main () {
int l=20;
{
int l=30;
cout<<l<<::l;
}}
The program is in correct due to syntax error. Within the main function, there is no need of another opening braces in the int l=20; and also closing braces.
2. Difference between Class and structure? [April -2010, Dec-2012]
Class is the ADT where as structure is udt. Class needs access specifier such as private, public & private where as structure members can be accessed by public by default & don’t need any accessfiers. Class is oops where structure is borrowed from traditional structured [pop] concept.
3. What is abstract Class? [Nov-2009]
An abstract class is a class that is designed to be specifically used as a base class. An abstract class contains at least one pure virtual function. You declare a pure virtual function by using a pure specifier [= 0] in the declaration of a virtual member function in the class declaration.
4. List out the advantages of new operator over malloc[] [Dec-2012]
It automatically computes the size of the data object. It automatically returns the correct pointer type It is possible to initialize the objects while creating_ the memory space. It can be overloaded.
5. What are the basic concepts of OOS? [ April -2011]
Objects. Classes.
Data abstraction and Encapsulation.
Inheritance. Polymorphism.
Dynamic binding. Message passing
6. What is the difference between local variable and data member? [Nov-2011]
A data member belongs to an object of a class whereas local variable belongs to its current scope. A local variable is declared within the body of a function and can be used only from the point at which it is declared to the immediately following closing brace. A data member is declared in a class definition, but not in the body of any of the class member functions. Data members are accessible to all member function of the class.
7. What is the function parameter? Difference between parameter and Argument. [Nov- 2011]
A function parameter is a variable declared in the prototype or declaration of a function:
void foo[int x]; // prototype — x is a parameter
void foo[int x] // declaration — x is a parameter
{ }
An argument is the value that is passed to the function in place of a parameter
8. What is data hiding? [April -2011,Nov-2010]
The insulation of data from direct access by the program is called as data hiding or information binding. The data is not accessible to the outside world and only those functions, which are wrapped in the class, can access it..
9. What are the advantages of Default Arguments? [Nov-2010]
The function assigns a default value to the parameter which does not have a matching argument in the function call. They are useful in situations where some arguments always have the same value.
e.g., float amt [float P, float n, float r = 0.15];
10. List out the basic concepts of Object Oriented Programming. [Nov-2009]
Objects Classes
Data Abstraction and Encapsulation
Inheritance Polymorphism
Dynamic Binding Message Passing

11. What are abstract classes? [Nov 2009, Apr 2013]

Classes containing at least one pure virtual function become abstract classes. Classes inheriting abstract classes must redefine the pure virtual functions; otherwise the derived classes also will become abstract. Abstract classes cannot be instantiated.
12. Define abstraction and Encapsulation [Apr 2011]
Data Abstraction
Abstraction refers to the act of representing the essential features without including the background details or explanations.
Data Encapsulation
The wrapping up of data and functions into a single unit is known as data encapsulation.
13. What is the Need for Static Members [April 2011]
Class members can be declared using the storage class specifier static in the class member list. Only one copy of the static member is shared by all objects of a class in a program. When you declare an object of a class having a static member, the static member is not part of the class object.
EC6301 OOPS DS Unit 1 2marks & 16marks – Download Here
EC6301 OOPS DS Unit 2 2marks & 16marks – Download Here
EC6301 OOPS DS Unit 3 2marks & 16marks – Download Here
EC6301 OOPS DS Unit 4 2marks & 16marks – Download Here
EC6301 OOPS DS All Units 2marks & 16marks – Download Here
If you require any other notes/study materials, you can comment in the below section.

Related Links
For EC6301 OOPS DS Previous Year Question Papers – Click here
For EC6301 OOPS DS Important Questions/Answer Key – Click here
For EC6301 OOPS DS Lecture Notes – Click here
Search Terms
Anna University 3rd SEM ECE OOPS DS 2marks 16 marks
EC6301 Object Oriented Programming n Data Structures question bank free download
Anna University ECE OOPS DS short answers Regulation 2013
EC6301 2marks, OOPS DS Unit wise short answers – ECE 3rd Semester

Share.

Comments are closed.