Hard work beats talent when talent doesn’t work hard.
--Your friends at LectureNotes

Previous Year Exam Questions of Object Oriented Programming Using Cpp of bput - OOP by Verified Writer

  • Object Oriented Programming Using Cpp - OOP
  • 2017
  • PYQ
  • Biju Patnaik University of Technology Rourkela Odisha - BPUT
  • Electronics and Communication Engineering
  • B.Tech
  • 40 Offline Downloads
  • Uploaded 1 year ago
0 User(s)
Download PDFOrder Printed Copy

Share it with your friends

Leave your Comments

Text from page-1

Registration No: Total Number of Pages: 01 B.Tech BECS2212 3rd Semester Back Examination 2017-18 C++ and Object Oriented Programming BRANCH : CHEM, CIVIL, EEE, ELECTRICAL, ETC, MECH, METTA, MINERAL, MINING, MME, PLASTIC, TEXTILE Time : 3 Hours Max Marks : 70 Q.CODE : B1109 Answer Question No.1 which is compulsory and any five from the rest. The figures in the right hand margin indicate marks. Q1 a) b) c) d) e) f) g) h) i) j) Answer the following questions: What are class and objects? Define scope and life of a variable. What do you mean by function overloading? What is a virtual class? Why it is used in C++? Differentiate between function templates and class templates. When will the destructors called? Is it implicit or explicit? What do you mean by dynamic binding? Describe nested namespace and unnamed namespace. What do you mean by catch-all exception handlers? What are I/O streams? Give an example. Q2 a) b) What are the needs for object oriented paradigm? Write a program in c++ to check whether entered year is leap year or not. (5) (5) Q3 a) Illustrate the concept of function overloading, to find the maximum of 2 numbers. What are inline functions? Write a suitable example to explain it. (5) What is the need of constructor? Define parameterized constructor. Differentiate between constructor and destructor. Write a C++ program to implement B AC + = , B AC − = and BAC ∗= where A , B and C are objects containing a int value (vector). (5) b) Q4 a) b) (2 x 10) (5) (5) Q5 a) b) Explain virtual functions with suitable program. Write a c++ program to find the area of the square, rectangle and circle using function overloading. (5) (5) Q6 a) b) Explain the different types of streams and various formatted I/O in C++. Explain the various file handling mechanisms in C++. (5) (5) Q7 With suitable examples describe various types of inheritance concept used in C++. (10) Q8 Write short answer on any TWO: Polymorphism in c++ Exception handling Friend function Static member function a) b) c) d) (5 x 2)

Lecture Notes