We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1
DEPARTMENT OF COMPUTER SCIENCE & APPLICATIONS
MODEL EXAMINATIONS JUNE 2022
Class : I B.Sc (CS)/ IT BCA Max Marks: 75
Subject: C++ Programming Time: 3Hrs Section-A (10*1=10) Answer all the questions 1. The _________ keyword is used to preserve value of the variable. a)public b)private c)friend d)static. 2.__________provides exact amount of bits required for storage of values. a) Bit fields b) Array c) functions d) class. 3. The private data of any class is accessed by a)only public member function b)only private member function c)both (a)&(b) d)none of the above. 4. Constructors is executed when_____ a) object is declared b)object is destroyed c)overloaded d)function call. 5. Which one of the following operator cannot be overloaded? a)dot operator(.) b)plus operator(+) c)ampersand operator(&) d) unary operator . 6. In multilevel Inheritance ,the middle class act as a)base class as well as drevied class b)only base class c)only derived class d)none of the above. 7. Exception is generated in______ 8. The object of fstream class provides______ a)both read &write b)only read c)only write d)none 9. The statement cin>>hex reads the data in___. a) Integer value b) decimal value c ) hexa-decimal value d) null 10._______ is used to temporary storage of data Section-B (5*5=25) Answer all the questions 11. (a) How to declare objects in C++ with sample code? (Or) (b) Write short notes on array of objects? 12. (a) Write about bit fields and classes with example. (Or) (b) Define the overloading Member function 13. (a) Write short notes on declaring the pointer (Or) (b) Write short notes on overloading new & delete operators? 14.(a) Write a C++ program in Operator overloading Function. (Or) (b) Explain the concept of virtual base class with example? 15.(a) Describe the file opening modes (Or) (b) Explain the exception handling mechanisms Section-C (5*8=40) Answer all the questions 16.(a) Briefly explain the friend function with example (Or) (b) Write a C++ program for Palindrome and explain it. 17.(a) Briefly explain Inheritance and its types? (Or) (b) Discuss in detail about overloading unary and binary operator 18.(a) Write in detail about Static Member Variable and functions with example? (Or) (b) Write a C++ program using Stack implementation. 19.(a) Write in detail about pure virtual functions (Or) (b) Write a C++ program to implement abstract class 20.(a) Write in detail about File stream Classes (Or) (b) Explain the keywords about try, throw, catch? ******All the Best******