LOADING

Questions

BE - SEMESTER IV EXAMINATION - SUMMER 2015 -Summer-June-2015

Q-1(a)

(a)  i)  What is model? What are the purposes of modeling? 
    iii)  Define following terms:
Abstraction, encapsulation, inheritance, polymorphism

(7)
Q-1(b)

i)  List and categories the operators used in C++.
ii)  Define the following terms with respect to C++:
class, function, constructor, pointer

(7)
Q-2(a)

(a) i)  Define a class named student with attributes like name, roll number, age etc.
Create two different objects of this class with different values of their attributes
in C++ program.
ii)  Define the following terms with respect to OO concepts:
association, generalization, event , transit ion

(7)
ORQ-2(a)

(b)    What do you mean by function over loading? Why it required? Explain it with
example.

(7)
Q-2(b)

(b)    What do you mean by function over ridding? Why it required? Explain it with
example.

(7)
Q-3(a)

(a)  i)  What is default constructor? What is the purpose of parameterized constructor?  
    ii)  Define the following terms and explain their use: copy constructor, destructor 

(7)

(a)  i)  Define the following terms and state their use: inline function, friend function
  ii)  Write a C++ program that demonstrates use of parameterized constructors.

Q-3(b)

(b)What do you mean by object model? Explain it with example.

(7)
ORQ-3(b)

(b)    What do you mean by functional model? Explain it with example.

(7)
Q-4(a)

(a)    Write a C++ program to find an average value of n integers stored in array. 

(7)

(a)    Write a C++ program to check that the given integer number is prime or not.

Q-4(b)

(b)    Explain the looping structures used in C++ program with example.
    

(7)
ORQ-4(b)

(b)    Explain the condit ional structures used in C++ program with example.
 

(7)
Q-5(a)

(a)    What is the purpose of operator overloading? List the C++ operators which
cannot be over  ridden. Write a function to overload any binary operator and
show that how it can be used.

(7)

(a)    What do you mean by type conversion?  Write a C++ program to explain basic to
user defined data type conversion.

Q-5(b)

(b)    What is pure virtual function? What is its need? Explain with example.
 

(7)
ORQ-5(b)

(b)    What is virtual funct ion? What is its need? Explain with example.
   

(7)