0% found this document useful (0 votes)
1K views2 pages

@vtucode - in BCS306B Previous Year Paper 2022

Bio important notes

Uploaded by

2020an0120310
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
1K views2 pages

@vtucode - in BCS306B Previous Year Paper 2022

Bio important notes

Uploaded by

2020an0120310
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 2
USN Third Semester B.E,/B.Tech. Deg: BCS Sehlelile BCS306B ‘ee Examination, Dec.2023/Jan.2024 Object Oriented Programming with C++ Time: 3 hrs. Max. Marks: 100 Note: 1. Answer any FIVE full questions, choosing ONE full question from cach module. 2.M: Marks, jloom's level , C: Course outcomes. Module-1 M/L c QI Ja. ] What is object oriented programming? Explain the structure of C++] 10| LI] COL program. k |_| b. | What is Friend function? Explain with an example. x 10| £2 | cor ne oR Q2 | a. ] What is constructors and destructors? Explain the scope resolution operator] 10 ] C2] COT an syntax, be to the functions, explain with an example? 10| L2| Col _ Module -2 Q3 Ja. | Explain array of pointers to objects and accessing member functions using | 10] L3 | COZ pointers. ~ b. | Explain the following terms with an example : 10 | L3 | Coz (i) Pointers to class members, (ii) The this pointer. _ OR Q4 Ja] Write a C+ program to” demonstrate function overloading for the | 10] L3 | COZ following prototypes, add (int a, int b) add (double a, double b) b. | Write the various function overloading used to “default function argument” | 10 | L2 | Coz and “ambiguity”. a Module—3 QS | a. | Explain with example, overloading of unary operator +". 10] 12 | Cos D, | Discuss the overloading operator using keywords “new* and “delete” 10} £3 | Cos OR 6 [a | What is inheritance? Explain with an example of inheriting the multiple | 10] L3 | CO4 base classe b, | How multiple base classes are inherited using virtual base classes? 10/13 | Cos Module—4 Q7 a. | Explain with example, virtual functions are hierarchical 10] £3] Cos b. | What is pure virtual function? Explain with example, generic function | 10| L3 | CO4 using template. OR = i Q8 a. | Explain the difference between Early and Late binding. 10] £3 | Cos Tof2 BCS306B D. | Discuss the following terms 3 10] 13 | Cod () Using non-type arguments with generic classes. Gi) Using default arguments with template classes, Module—5 Q9 Ja. | Discuss fundamentals of exception handling, 10] £2 | Cos D. | Discuss catching all exceptions and rethrowing an exception with|10| L2 | COS examples. ORS Qi0 | a. | Explain the following formatted 17/0 : 10] L4 | CO6 (i) width () (ii) precision g, fill () How file opening and closing is done? What are the functions required for | 10 | L3| CO6 reading and writing data in a file. Explain with example. " 2o0f2

You might also like