APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY Previous Years Question Paper & Answer

Course : B.Tech

Semester : S1 and S2

Year : 2018

Term : DECEMBER

Branch : BIOTECHNOLOGY

Scheme : 2015 Full Time

Course Code : CS 100

Page:1





PDF Text (Beta):

<> നഗ

€ 52079

ಆ Hie

Reg No.: Name:

APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY
SECOND SEMESTER B.TECH DEGREE EXAMINATION, DECEMBER 2018
Course Code: CS100
Course Name: COMPUTER PROGRAMMING (CS, IT)

Max. Marks: 100 Duration: 3 Hours
PART A

Answer all questions. Marks
1 Explain switch construct with an example. (3)
2 Describe the precedence and the associativity of the logical bitwise operators. (3)
3 Differentiate between keywords and identifiers. (3)
4 Explain register storage class with an example. (3)
5 Write a C program to concatenate two strings without using built in function. (3)
6 A C program contains the following declaration (3)

static int x[8] = {11, 22,33,44,55,66,77,88};
Assume that the array begins at location 2000.
(i) What is the value of (x + 2)?
(ii) = What is the value of * (x+ 2)?
(iit) = What is the value of (*x + 2)?

7 Write the syntax for : (3)
i) Declare a pointer to a function that accepts three integer arguments
and returns a floating point quantity.
ii) Declare a function that accepts two integer arguments and returns a
pointer to a long integer.
8 Write a C program to print the Fibonacci series using recursion. (3)
9 Discuss the concept of binary file in ۰ (2)
10 What are escape sequences? What is its purpose? (2)
11 What is the purpose of getw( ) and putw( ) function? (2)
12 List out any two arithmetic operations that can be carried out on pointers. Give (2)
examples.
13 Differentiate between linear and binary search techniques in C. (2)
14 What is the purpose of fopen( ) and fclose( ) functions in 0. (2)
15 What is the output of the following program? (2)
int 7181೧0
{
int i;

int arr[5] = {0};
for (i= 0; 1 <5; i++)

Page 1 of 2

Similar Question Papers