APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY Previous Years Question Paper & Answer

Course : B.Tech

Semester : S1 and S2

Year : 2018

Term : MARCH

Branch : BIOTECHNOLOGY

Scheme : 2015 Full Time

Course Code : CS 100

Page:1





PDF Text (Beta):

MODEL QUESTION PAPER
COLLEGE OF ENGINEERING , ARANMULA
SIXTH SEMESTER B.TECH DEGREE EXAMINATION, MARCH 2018
Course Code: CS100
Course Name: COMPUTER PROGRAMMING

Max. Marks: 100 Duration: 3 Hours
PART A
Answer all questions
1 Give the use of break and continue with an example? (3)
2 What are the basic input and output functions used in C? (2)
3 What is difference between while and do-while loops? (3)
4 What is keyword? State two keywords of C? (2)
5 Explain nested for loop statement with suitable example? (2)
6 What is function prototype? Give one example of function prototype? (3)
7 Explain union with an example and state the uses of union? (3)
8 Give the meaning of declaration :int *ptr; (2)
9 Differentiate between call by value and call by reference. (3)
10 Explain about Actual and Formal parameters? (2)
11 What is recursion? Differentiate between recursion with iteration. (3)
12 What is the difference between text and binary file? (3)
13 State any four string handling functions? (2)
14 What is typecasting in 6? (2)
15 Explain about command line arguments? (2)
16 What is the use of fseek( ) function in files. Write its syntax? (2)
PART B
Answer any 4 full questions, each carries 8 marks.
17 a) Write a C program to test whether a given number is Armstrong or not? (5) b) What

is Preprocessors ? define some Preprocessors in c? (3) 18 a) Explain about different
storage classes with examples. Discuss their uses and (3) scope.
b) Write a recursive function for finding the factorial value of a given number. (5)
19 3) Write the procedure for swapping two strings using pointers. (5)
b) How can a pointer be used to access individual elements of an array? (3) Explain
with an example.
20 2) Write the procedure for swapping two strings using pointers. Write a program (6) to print
the following series on the screen

1

1 1
1 2 3
1 2 3 23
1 2 3 4 23

0) Write short note on relational operators in c? (2) 21 Write a function to multiply two
matrices of order സന്‌ and ‘nxl’ and write (8) the main program to input array values and
output resultant matrix ?

PART C
Answer any two full questions, each carries 14 marks..
22 9) Write a C program to compare two strings without using any standard library
(6) function.
b) Write aC program to read name and marks of n number of students from user (8) and
store them in a file. If the file previously exits, add the information of n students.

Similar Question Papers