APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY Previous Years Question Paper & Answer

Course : B.Tech

Semester : SEMESTER 5

Year : 2020

Term : SEPTEMBER

Scheme : 2015 Full Time

Course Code : CH 307

Page:1





PDF Text (Beta):

00000CH307121903

Pages: 2

Reg No.: Name:

Max. Marks: 100

b)

b)

b)

b)

b)

APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY
Fifth semester B.Tech degree examinations (S) September 2020

Course Code: CH307
Course Name: COMPUTER PROGRAMMING IN C++

PARTA
Answer any two full questions, each carries 15 marks.
Object Oriented Programming is superior to Procedure Oriented Programming.
Justify this statement giving the advantages of OOP over POP.
Write a C++ program to implement the concept of Conditional operator.
List any 5 non-arithmetic operators. Give the significance of giving precedence

to Operators.

Write a Program to find the sum of individual digits of a 3 digit number.
Use ‘if-else-else if’ to display the grade of a student on entering the marks, with

reference to the table given:

| Grades | | marks |

|0 | >=90
>=80 and

A <90
>=60 and

| om <80
>=40 and

Cc <60

F <40

Write a C++ program to find the factorial of a number using While loop.
PART 13

Answer any two full questions, each carries 15 marks.
Define Constructor and destructor in C++.
Write a C++ program to show the overloading of a binary ‘+’ operator.
Define inline functions. Mention the situations where declaration of a function as
inline is not recommended. Write a C++ program with an inline function to add 3
numbers.

Give the purpose of declaring a function as a friend to a class. Give the syntax.

Duration: 3 Hours

Marks
(10)

(5)
(5)

(10)
(10)

(5)

(5)
(10)
(10)

(5)

Similar Question Papers