This download link is referred from the post: PTU B.Tech Question Papers 2020 December (All Branches)
FirstRanker.com
Firstranker's choice
Roll No.
--- Content provided by FirstRanker.com ---
Total No. of Pages : 02Total No. of Questions : 18
B.Tech. (CSE/ECE/IT/Electronics Engg/Electronics & Computer Engg)
(2012 to 2017) (Sem.-3)
OBJECT ORIENTED PROGRAMMING USING C++
--- Content provided by FirstRanker.com ---
Subject Code : BTCS-305M.Code : 56595
Time : 3 Hrs. Max. Marks : 60
INSTRUCTIONS TO CANDIDATES :
- SECTION-A is COMPULSORY consisting of TEN questions carrying TWO marks each.
- SECTION-B contains FIVE questions carrying FIVE marks each and students have to attempt any FOUR questions.
- SECTION-C contains THREE questions carrying TEN marks each and students have to attempt any TWO questions.
--- Content provided by FirstRanker.com ---
SECTION-A
Answer briefly :
- What is the use of an Abstract class?
- What is a Friend function? Why is it required?
- What are the properties of a static member function?
- What is meant by Overloading Operators?
- What are the differences between the Accesses specifies private and protected?
- Explain briefly what Exception Handling is.
- List the syntax of any two functions used to display output to the user in C++.
- What are the differences between sequential and random access files?
- What are Dangling Pointers?
- What is the purpose of defining a Destructor function?
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
SECTION-B
--- Content provided by FirstRanker.com ---
- What is Object Oriented Programming? Distinguish between Procedure Oriented Programming and Object Oriented Programming.
- Write a program in C++ to print first N prime numbers, where N is the integer value entered by user.
- Explain the concepts of Function Overloading and Function Overriding with the help of examples.
- What is a Template? Explain with the help of an example how to create a Function Template.
- Explain the concept of Virtual and Pure Virtual Functions with the help of examples.
--- Content provided by FirstRanker.com ---
SECTION-C
- Create a class which keeps track of the number of its instances and also assigns unique identification to each of them. Use static data member, constructors and destructors to maintain updated information about active objects.
- What is inheritance? Explain with example how to inherit a class in C++. Also show in what order the constructors are called in a class hierarchy when an object of a derived class is created?
- What are the two methods available for opening the files? Write a program to write characters onto a file and to read characters from a file.
NOTE : Disclosure of Identity by writing Mobile No. or Making of passing request on any page of Answer Sheet will lead to UMC against the Student.
--- Content provided by FirstRanker.com ---
This download link is referred from the post: PTU B.Tech Question Papers 2020 December (All Branches)
--- Content provided by FirstRanker.com ---