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:3
——
24.
25.
26.
28.
29.
30.
31.
8 C 5602
Part D
Answer any five questions.
Each question carries 8 marks.
Create a class Account with data members accno, name and balance. Write a C++ program to
perform the following : :
(a) To accept the details of an account.
(b) To display the details of an account.
(c) To credit the account with some amount.
(d) To debit the account with some amount.
Differentiate between Constructor and Destructor functions with respect to object. oriented
programming.
Explain different types of type conversion.
. Write short notes on:
(a) Dynamic initialization of objects
(b) Significance of virtual base classes.
Discuss about various type of data structures available in C++.
Write an algorithm to evaluate an arithmetic expression using stack and show how the expression
3*(5-3) will be evaluated.
Write an algorithm to insert a node in a sorted linked list.
Write short notes on :
(a) Merge sort algorithm.
(b) Hashing. -
(5 x 8 = 40 marks)