This download link is referred from the post: PTU B.Tech Question Papers 2020 March (All Branches)
Roll No.
Total No. of Pages : 02
--- Content provided by FirstRanker.com ---
Total No. of Questions : 09
B.Tech. (Electrical & Electronics Engg.) (2012 Onwards E-lI) (Sem.-6)
OBJECT ORIENTED PROGRAMMING
Subject Code : BTEEE-603C
M.Code : 72844
--- Content provided by FirstRanker.com ---
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 :
- Differentiate between data hiding and encapsulation.
- What are parameterized constructors?
- What are virtual destructors?
- What are pure virtual functions?
- Differentiate between new operator and malloc function.
- What are operators << and >> used for?
- Which operator is used to access public members of an object?
- What function can be used to open a file in C++?
- What is explicit constructors?
- What is the use of command line arguments?
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
SECTION-B
Write a program to sort a list of strings into alphabetical order using an array of pointers.
Explain how new and delete operators manage memory allocation/deallocation dynamically.
--- Content provided by FirstRanker.com ---
How are structures in C different from a class? What is meant by dynamic initialization of a variable? Explain how memory is allocated to classes and objects.
Explain the difference between C and C++.
Write a program in C++ to count the numbers of digits in given string.
SECTION-C
Discuss in detail features of object oriented programming.
--- Content provided by FirstRanker.com ---
What are the various types of inheritance in C++? Give an example of each. What are virtual functions and pure virtual functions?
Explain the concept of constructors, destructor and friend functions with the help of a program.
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 March (All Branches)