PYQs

Object Oriental Programming

1 papers · 051301

Jump to paper

2016051301

B.Tech 3rd Semester Examination, 2016

3 hours70 marks

Instructions

  • There are Nine Questions in this Paper.
  • Attempt Five questions in all.
  • Question No. 1 is Compulsory.
  • The marks are indicated in the right hand margin.

Questions

Ask AI
  1. Q1

    Explain briefly about the following terms (any seven):

    a)

    Overloading

    b)

    Overriding

    c)

    C++ STL

    d)

    Constructor

    e)

    Destructor

    f)

    Inheritance

    g)

    Encapsulation

    h)

    Templates

    i)

    Protected variable

    j)

    Private function

    14 marks
    Ask AI
  2. Q2

    Write a C++ program to overload '-' operator to calculate age from date of birth and current date.

    14 marks
    Ask AI
  3. Q3

    Answer the following:

    a)

    What is a friend function and what are its advantages?

    7 marks
    b)

    What are the guidelines that should be followed while using friend function?

    7 marks
    14 marks
    Ask AI
  4. Q4

    Compare overloading and overriding of function with example.

    14 marks
    Ask AI
  5. Q5

    What is exception handling? Write a C++ program to demonstrate the 'try', 'catch' and 'throw' keywords?

    14 marks
    Ask AI
  6. Q6

    Define C++ classes to represent the information of an ORGANISATION having EMPLOYEES and CLIENTS. Provide subclasses MANAGER, CLERK and SUPPORT_STAFF. In this organisation employees work on projects requested by clients.

    14 marks
    Ask AI
  7. Q7

    Answer the following:

    a)

    What is virtual function? Explain with an example.

    7 marks
    b)

    Explain the abstract class with an example.

    7 marks
    14 marks
    Ask AI
  8. Q8

    Explain inline functions with an example program. What are the conditions, where inline functions cannot be expanded?

    14 marks
    Ask AI
  9. Q9

    Answer the following:

    a)

    What is the difference between compile time and run time errors? What is the use of stack unwinding in exception handling?

    7 marks
    b)

    Discuss void, this and const pointers.

    7 marks
    14 marks
    Ask AI

Support BEUConnect

Contributions cover the domain and hosting.

UPI QR code for pritkr@cnrb
pritkr@cnrb

Add to home screen

  1. Tap Share in Safari.
  2. Choose Add to Home Screen.