0% found this document useful (0 votes)
12 views3 pages

Bca 4 Sem Computer Architecture 2 1913 2020

This document is an examination paper for a C++ programming course, detailing the structure and requirements for answering questions. It includes a compulsory question and a selection of questions from four units covering topics such as inheritance, polymorphism, templates, exception handling, and file handling in C++. Each question is designed to assess the understanding of key C++ concepts and their practical applications.

Uploaded by

sheetaldankher
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)
12 views3 pages

Bca 4 Sem Computer Architecture 2 1913 2020

This document is an examination paper for a C++ programming course, detailing the structure and requirements for answering questions. It includes a compulsory question and a selection of questions from four units covering topics such as inheritance, polymorphism, templates, exception handling, and file handling in C++. Each question is designed to assess the understanding of key C++ concepts and their practical applications.

Uploaded by

sheetaldankher
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/ 3

https://www.kuonline.

in

Roll No. .......................... Total Pages : 03

OBCA/M-20 1917
PROGRAMMING IN C++
BCA-361
Time : Three Hours] [Maximum Marks : 80

Note : Attempt Five questions in all. Q. No. 1 is compulsory.


In addition to compulsory question, attempt four more
questions selecting one question from each Unit. All
questions carry equal marks.

(Compulsory Question)

1. (a) What is the need of virtual function ? 4


(b) What is derived class ? Illustrate with example. 4
(c) What are the advantages of handling exceptions in
a program ? 4
(d) What is the syntax of detecting end of file ? Explain
with example. 4

Unit I

2. Describe the concept of inheritance in C++ ? What are


the various types of inheritance ? Explain with suitable
examples. 16
(3)L-1917 1
https://www.kuonline.in

3. Explain private, protected and public derivations in


inheritance with suitable examples. Also elaborate on the
role of constructors and destructor in inheritance. 16

Unit II

4. What do you mean by polymorphism ? Discuss the


technique for implementation of run time polymorphism
with the help of an example. 16

5. (a) Explain the concept of function overriding and


virtual function with suitable examples. 8
(b) What is type conversion ? Elaborate on the concept
of conversion between objects and basic types with
suitable examples. 8

Unit III

6. What is the purpose of templates in C++ ? Differentiate


between function template and class template with suitable
examples in C++. 16

7. Explain the concept of Exception Handling in C++. Which


keywords are used to handle exceptions in C++ ? Elaborate
using suitable examples. 16

(3)L-1917 2

https://www.kuonline.in
https://www.kuonline.in

Unit IV

8. Explain life handling in C++. Discuss various modes for


opening and closing of files in C++ with suitable
examples. 16

9. (a) What are file pointers in C++ ? Explain with suitable


examples. 8
(b) Explain file input/output handling in C++ with
suitable examples. 8

(3)L-1917 3 ___

You might also like