University of Calicut Previous Years Question Paper & Answer

University : University of Calicut
Course : B.Sc

Semester : SEMESTER 2

Year : 2017

Term : MAY

Branch : COMPUTER SCIENCE

Scheme : 2020 Full Time

Course Code : BCS 2B 02

Page:3





PDF Text (Beta):



24.

25.

26.

27.

28.
29.
30.

31.

8 C 24743
Part D-

Answer any five questions.
Each question carries 8 marks.

Explain various types of inheritance with example.

Explain the three different situations that arise in the data conversion between uncompatible
types in C++.

Create a class Comple x for storing a complex number of the form x + iy, where x is the real part
and y is the imaginary part. Write a C++ program to perform the following: 1

(a) Overload + to add two complex numbers.

(b) Overload — to subtract one complex number from the other.
Write short notes on :

(a) Friend functions in C++.

(b) Significance of virtual base classes.
Write a program to implement a queue using linked list.
Write a program in C++ to insert a node into a sorted linked list.
Write an algorithm to evaluate a prefix expression.
Write short notes on :

(a) Sorting of a list of numbers using Quick sort.

(b) Circular queue implementation using one dimensional array.
(5 x 8 = 40 marks)

Similar Question Papers