APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY Previous Years Question Paper & Answer

Course : B.Tech

Semester : SEMESTER 4

Year : 2020

Term : SEPTEMBER

Scheme : 2015 Full Time

Course Code : AE 202

Page:1





PDF Text (Beta):

ர 02000AE202052001 Pages: 2

Reg No.: Name:
APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY

Fourth semester B.Tech examinations (S), September 2020

Course Code: AE202
Course Name: COMPUTER PROGRAMMING (AE)
Max. Marks: 100 Duration: 3 Hours
PARTA
Answer any two full questions. Each question carries 15 marks

1 a) Write aC program to swap two numbers without using a temporary variable. 5

b) Compare compilers and interpreters with a neat diagram. 5

c) Draw a flowchart to illustrate the sequences of operations in a for loop. Give an 5

example program
2 a) Drawa flowchart and write an algorithm to check whether a number is odd oreven. 5
b) Construct a C program to find the factorial of a given number. 5
c) While purchasing certain items, a discount of 10% is offered if the quantity 5
purchased is more than 1000. If quantity and price per item are input through the

keyboard, write a C program to calculate the total expenses.

3 a) Produce an algorithm and draw a flowchart to find the area of a triangle. 5

b) Distinguish between break and continue statement with an example. 5

c) Illustrate conditional operator with an example. 5
PART 0

Answer any two full questions. Each question carries 15 marks

4 a) Write a C program to copy a string to another without using string handling 4

function.
b) Construct a C program to search a key value using linear search. 5
c) Simulate aC program to add two matrices and print its result. 6
5 a) Distinguish between structure and union with example. 4
b) Create a C program to find the largest and smallest element in an array using 5
pointers.
©) Show aC program to print the Fibonacci series using recursion within a range. 6
6 a) Explain ftell, fseek and rewind function for accessing files from disk. +
b) Build a C program to carry out addition of two numbers using command line. 5
௦) Create a structure to store details of Employee with the following members: 6

Page 1 of 2

Similar Question Papers