0% found this document useful (0 votes)
3 views2 pages

2nd sem cs pqp

The document outlines the examination structure for B.Sc. Computer Science students, detailing the subjects and topics covered in the Programming in C and C++ papers. It includes various questions related to object-oriented programming concepts, inheritance, templates, and exception handling. The examination consists of two parts, with specific marks allocated for each section and instructions on how many questions to answer.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views2 pages

2nd sem cs pqp

The document outlines the examination structure for B.Sc. Computer Science students, detailing the subjects and topics covered in the Programming in C and C++ papers. It includes various questions related to object-oriented programming concepts, inheritance, templates, and exception handling. The examination consists of two parts, with specific marks allocated for each section and instructions on how many questions to answer.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Code No: E-10107

B Sc. FACULTY OF SCIENCE


(CBCS) II- Semestor (Regular / Backlog)
Examination, June / July 2023
Subject: Computer Science
Paper - I|: Programming in C*
Time: 3 Hours
Max. Marks: 80
PART-A
Note: Answer any eight questions. (8 x 4 a 32
What are the Marks)
Characteristics
of C++ and Benefits of OOPs Languages?
Write a Member Function definition outside the class syntax with
suitable Example
3 Write a Qbject? How to invoke the object with syntax and
example program?
4 What are the features of Object based and Object oriented programming?
5 Define a class? Write syntax of class and object inside the class?
6. What is Function Overriding? Discuss with suitable example program?
7. List out the differences between Constructors and Destructors?
8. How can you
differentiate between private protected Access specifier's?
9. List Out the unformated /O Operations?
10. Define Destructor? How to Use the Destructor s in the derived class with Example?
11. Write short notes on Exception and what are the predefine Exceptions?
12. Explain the class with template in detail with Syntax or Program?

PART-B
Note: Answer all the questions. (4 x 12= 48 Marks)
13. a) Define a call by value and call by Reference? Write a program to implement swappir
of two number by using call by value and call by reference?
(OR)
b) Write the following Concepts In detail?
() Inline Functien without class and Object?
(i).Write aList ofall the Object oriented Program Concepts?
4. a) Friend
Write aFunction?
Program to implement unary operator Overloading by using ' sign without
(OR)
b) Write a program TO implement the Addition of two numbers by using Friend
ciasses?

5. a) Define Inheritance? What are the different types of Inheritance, discuss each one
syntax and Example?
(OR)
Ab) Write a program to implement a Dynamic Polymorphism by using Pure Virtual Fun
Concept?
a Define a Template? Write a Program TO implement Swapping of Two numbers u
Function with Templates?
(OR)
b) Explain Exception handling Concept in detail with suitable Program?
Code No. 9041
FACULTY OF SCIENCE
B.Sc. I-Semester (CBCS) Examination, January/February 2021

Subject: Computer Science


Paper -Il: Programming in C++
Time: 2 Hours Max. Marks: 80

PART - A
Answer any five questions. (5x4=20 Marks)
1 Describe different data types of C++ with
examples.
2 What is Default Arqument? Demonstrate with a C++ program?
3 Write down the applications of OOP.
4 What is the difference between a class and an instance of the class?
5 Briefly describe what is meant by member-wise assignment.
6 Explain Binary operator overloading in C++ using friend function.
7 What is the difference between redefining a base class function and overriding
a base class function.
8 Discuss formatted |/ O operations with advantages and disadvantages.
9 What is an abstract base class?
10 Explain how exception thrown by one function is caught by another function.
11 What is class template? Explain its syntax.
12 Can youoverload function templates? Explain.
PART -B
Answer any three questions. (3x20=6O Marks)
13 What do you mean by control flow statements? Explain each type with example.

14 What is object oriented programming? How it is different from procedure oriented


progranming? Explain its advantages.
15 (0) Define and explain default constructor and copy constructor.
() Explain pararneterized constructor with suitable example.
16 What are the advantages of operator overloading? Write a Ctt program to overload
'4 and =' operator to concatenate two strings and assign one string on another.
17 What is inheritance? With suitable examples discuss various inheritance supported
by C++.

18 Explain virtual function and run time polymorphism. Write a program to demonstrate
dynarmic polymorphism.
19 () Explain throwing and catching mechanism with suitable examples.
(üi) What should be placed inside the try block and catch block? When do you use
multiple catch handlers?

20 (i) What is function template? Explain the purpose of function templates with
suitable examples. templates.
(i) Write a program to implement a Bubble sort using function

You might also like