APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY Previous Years Question Paper & Answer

Course : B.Tech

Semester : SEMESTER 6

Year : 2020

Term : SEPTEMBER

Scheme : 2015 Full Time

Course Code : CE 306

Page:1





PDF Text (Beta):

( 03000CE306052002 Pages: 2

Reg No.: Name:
APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY

Sixth semester B.Tech degree examinations (S), September 2020

Course Code: CE306
Course Name: COMPUTER PROGRAMMING AND COMPUTATIONAL

TECHNIQUES
Max. Marks: 100 Duration: 3 Hours
PARTA
Answer any two full questions, each carries 15 marks. Marks
1 ஐ Define implicit type casting with an example. (4)
b) Differentiate between break and continue statements. (4)
c) Develop a program to find the largest of three numbers. (7)
2 >) Is the switch statement more advantageous than nested if - else statement? (4)
Explain with reasons.
b) With examples, illustrate any two string functions. (4)

c) Write a C++ program to check whether ೩ given number is a perfect number or (7)
not. (A perfect number is a positive integer that is equal to the sum of its
positive divisors, excluding the number itself.)

3 a) Which are the unary arithmetic operators in C++? Explain with examples. (4)

b) Compare and contrast while and do - while. (4)

c) Write a program in C++ to find the sum of upper triangular elements of a (7)
matrix.

PART 13
Answer any two full questions, each carries 15 marks.
4 9) Explain the relevance of function definition and declaration in C++ modular (6)

programming.
b) Develop a C++ program, using structures, to read the details of N students ina (9)
class like Roll no., Name and marks for 5 subjects. The program should output
the total marks of each student and the class average for each subject.
5 9७3) Describe any 3 functions used to handle files in C++. (6)
b) Write a program in C++ to check whether a number is prime or not using auser (9)

defined function.

Page 1 of 2

Similar Question Papers