2/21/20

Previous year question of object oriented programming through C++ 2019



Sub Code: - 1618404


2019(Even)
Time : 3Hrs                                                                          
      Semester  IV(New)       
OOP                   
Full Marks : 70
Pass marks : 28
                                                                                                                                                          
Group A


Choose the most suitable answer from the following options: -   (1*20=20)

(i) Which type is best suited to represent the logical values?

(a) Integer
(b) Boolean
(c) Character
(d) All of the above

(ii) Is the size of character literal different in C and C++

(a) Implementation defined
(b) Can’t say
(c) Yes they are different
(d) No, They are not different

(iii) Size of C++ objects are expressed in terms of multiples of the size of a ___________ and the size of char is __________

(a) char, 1
(b) int, 1
(c) float, 8
(d) char, 4

(iv) ________ have the return type void?

(a)All functions
(b) Constructors
(c) Destructors
(d)  None

(v) Which variable does equals in size with enum variable
(a) int
(b) float
(c) string
(d) None

(vi) The constraints are also called as:

(a) Const
(b) Preprocessor
(c) Literal
(d) None of the above

(vii) The declaration of structure is also called as?

(a) Structure creator
(b) Structure signifier
(c) Structure specifier
(d) None of the above

(viii) Which operator is having the highest precedence?

(a) Postfix
(b) Unary
(c) Shift
(d) Equality

(ix) What type of comments does C++ support?

(a) Single line
(b) Multi line
(c) Single line and multi line
(d) None

(x) Which is more effective while calling the functions? 

(a) Call by value
(b) Call by reference
(c) Call by pointer
(d) None

(xi) How many minimum number of functions are needed to be presented in C++

(a) 0
(b) 1
(c) 2
(d) 3

(xii) Function overloading is also similar to which of the following?

(a) Operator overloading
(b) Constructor Overloading
(c) Destructor overloading
(d) None

(xiii) Overload function are

(a) Very long function that can hardly run
(b) One function containing another one or more functions inside it
(c) Two or more functions with the same class with different features
(d) None

(xiv) Which other keywords are also used to declare the class other than class?

(a) Struct
(b) Union
(c) Object
(d) Both struct and union

(xv) Which of these following members are not accesses by using direct member access operators?

(a) Public
(b) Private
(c) Protected
(d) Both private and protected

(xvi) Pick the other name of operator function

(a) Function overloading
(b) Operator overloading
(c) Member overloading
(d) None

(xvii) What is most suitable for returning the logical errors in the program?

(a) Use constructor and destructor
(b) Set a global error indicator
(c) Use break keyword
(d) None of the above

(xviii) Which of the following can derived class inherit?

(a) Members
(b) Functions
(c) Both member and function
(d)None of the above

(xix) Which of the following advantages we lose by using multiple inheritance?

(a) Dynamic binding
(b) Polymorphism
(c) Both (a) and (b)
(d) None

(xx) What will initialize the list of arguments in stdrag.h header file?

(a) va_list
(b) va_start
(c) va_arg
(d) None


Group:-"B"

Answer all Five Questions: -                         (5*4=20) 


2. Write C++ program to illustrate an inline function.
OR
What is the significance of operator overloading

3. What is friend function? Explain with the help of suitable example.
OR
Difference between multiple and multilevel inheritance

4. What is constructor? List some of the special properties of the constructor functions.
OR
Describe the ‘structure’ of C++ program.

5. Define the following
            a. Abstraction
            b. Polymorphism
OR
Define structure and union

6. Explain data type in C++ with example
OR
What is an array? What are the advantage of it?

Group:- "C"

Answer all Five Questions: -                         (5*6=30) 

7. Explain the concept of multiple inheritance by giving example.
OR
Explain the concept of “call by value” by giving C++ example

8. Explain the concept of recursion and its benefits in details
OR
Explain the concept of “single level inheritance” with an example.

9. Define the relation between structure and class.
OR
Discuss the purpose of using constructor and destructor

10. Explain inheritance and their types in detail
OR
Write a C++ program to demonstrate inheritance

11. Explain the various features of OOPS
OR
Write short notes on following
a.      Destructor
b.     Pre processor directive










No comments:

Post a Comment

Please do not enter any spam link in the comment box and use English and Hindi language for comment.

Latest Update

Searching sorting algorithm

Popular Posts