Semester : SEMESTER 2
Subject : Problem Solving using C
Year : 2016
Term : MAY
Branch : COMPUTER SCIENCE
Scheme : 2020 Full Time
Course Code : BCS 2B 02
Page:2
1:
12.
13.
14.
15.
16.
we:
18.
19.
20.
21.
22.
23.
2 C 5602
Part B
Answer all the questions.
Each question carries 2 marks.
Define operator overloading ?
Encapsulation is an important feature of an object oriented programming methodology. How it is
implemented in C++? |
Explain the use of virtual base class.
Consider the following arithmetic expression P, written in postfix notation:
P: 13;7,3,—4 2, 1,5; +,*, +
Translate P into its equivalent infix expression.
Write a procedure to add a given ITEM of information at the end of a linked list.
(5 x 2 = 10 marks)
Part C
Answer any five questions.
Each question carries 4 marks.
What is the benefit of using default arguments in a C++ function? Write a suitable C++ program to
illustrate the same.
Write a C++ program to add two time objects having data members hours and minutes by passing
objects as function arguments.
Define multilevel and multiple inheritances in the context of object oriented programming. With.
the help of a suitable program explain how these concepts can be implemented in C++.
Briefly discuss about various classes for file stream operations.
Explain how addition and deletion operations are performed on a QUEUE ?
Suppose STR1 and STR2 are character strings in memory. Write program to concatenate these
two strings without using in-built string handling functions.
Write an algorithm to search an element using binary search.
Write a C++ program to delete an element from a circular linked list.
(5 x 4 = 20 marks)