You are on page 1of 4
S-4230001 Seat No. B. C. A. (Sem. III) (CBCS) Examination October - 2019 CCCS - 311 : Object Oriented Programming With C++ (New Course) Time : 2.15 Hours] [Total Marks : 60 1 (A) Select the correct option from the following : 7 (1) Which of the following operator cannot be Q) @) @) $-4230001 ] overloaded ? (A) >> ®) © % (D) Both (B) and (C) To execute C++ program, you first need to translate the source code into object code. This process is called (A) coding (B) compiling © sourcing (D) translating The correct way of creating object of class called Bird is (A) Bird obj; (B) Bird *obj = new Bird; (©) Only @) () (A) and (B) both To use strepy function, you must include the header file in your program (A) strepy.h @) stringh (C) copy-h (D)_ strcopy.h 1 [ Contd... (©) Which symbol is used to create multiple inheritance? (A) Dot (B) Comma (©) Dollar () None of these. 6) In C+ programming, cout is a/an (A) function (B) macro (©) operator () object (7) Which of the following is not a file operation : (A) Repositioning (B) Truncating (©) Appending (D) None of above (B) Do as directed : (Any Eight) 8 (1) Define : abstract class (2) List the different types of parameter passing techniques. (3) What is the use of destructor? (4) Name in C++ are case sensitive (TRUE / FALSE) (5) Describe input and output operators in C++. ©) List different file modes in C++. (7) Write a code to open a file in C++ (8) Operator overloading is done with the help of a special function, called which describes the special task to an operator. (0) What is type casting? 2 (A) Answer the following : (Any Two) 6 (1) Write basic structure of C-++ program, (Explain tokens in C++. (3) Explain memory allocation for object in detail. S-4230001 ] 2 [ Contd... (B) Answer the following : (Any Three) 9 (1) What is an object? How objects are initialized? Explain array of objects (2) What is inline function? Explain the need and use of inline function. (3) What is friend function? Write characteristics of friend function. (Differentiate between private, public and protected data members of a class using example. 3 (A) Answer the following : (Any Two) 7 (1) What is constructor? Explain various types of constructors in C++. (2) What are the rules of operator overloading ? State benefits of operator overloading, (8) Write note on OOP concepts. (B) Answer the following : (Any One) 8 (1) Write C++ code to demonstrate the concept of overloading binary operator + using friend function. (2) Write C++ code to demonstrate the concept of dynamic constructor. 4 (A) Answer the following : (Any Two) 7 (1) What is inheritance? Explain various types of inheritance with example. (2 What are the file modes? Explain its significance in file handling with example. (3) What is the use of virtual functions? List pros and cons of using polymorphism in OOP. S-4230001 ] 3 [ Contd.... (B) Answer the following : (Any One) 8 (@. Write C++ code to demonstrate the concept of multilevel inheritance using constructors with appropriate example. (@) Write a program to read a CPP source file ABC.cpp and copy the content to a new file XYZ.cpp. S-4230001 ] 4 [200/6-2]

You might also like