Semester : SEMESTER 2
Subject : Problem Solving using C
Year : 2019
Term : MAY
Branch : COMPUTER SCIENCE
Scheme : 2020 Full Time
Course Code : BCS 2B 02
Page:2
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21,
22.
23.
24.
25.
26.
2
Part B
10115.
Answer all the பரணை ன்
Each question carries 2
What is a friend function ?
What is operator overloading ?
What is the use of constructor ?
What is a sparse matrix ?
a queue.
List and describe the operations to be performed on ® 4
Part C
Answer any five questions.
Each question carries 4 marks.
What are the advantages of using an inline function ?
Compare private, public and protected data.
Write a C++ program to add two complex numbers.
Write a C++ program to read a list of names from a file and output the list.
Write different steps to insert a node at the beginning of a singly linked list.
Describe how the limitations of a queve are handled in a circular queue ?
Explain how PUSH and POP operations are performed on a STACK ?
Write an algorithm to implement merge sort.
Part D
Answer any five questions,
Each question carries 8 marks.
Explain the merits of an OOP
onventional Programming languages.
Explain different types of type conversion. `
What do you mean by a friend fun
ction ? Explain with he
functions act as a bridge between ६
(5 x 4 = 20 marks
Ip of an e fri
wo different classes. ^ Program, how friend
ع
حي
न
1
5