APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY Previous Years Question Paper & Answer

Course : B.Tech

Semester : S1 and S2

Year : 2018

Term : APRIL

Branch : BIOTECHNOLOGY

Scheme : 2015 Full Time

Course Code : CS 100

Page:3





PDF Text (Beta):

E E2803 Pages: 3

void main()

{int count=0, i=0;
while(1)
4
11%
if(i%03==0)
−−−−−−−−−−−−−−− ∕∕∟∎↼⊓∁∣
∁∘∪⋯⊹⊹≟
ന്ധി);
if(count==100)
−−−−−−−−−−−−−−− //Line2

PART C
Answer any two full questions, each carries 14 marks.

22 a) Write a C program to copy the content of a given text file to a new file after (10)
replacing every lowercase letters with corresponding uppercase letters.

b) With suitable example explain any four different File 1/0 operations in C? (4)
23 a) Whatare the different storage classes in C? Explain with example. (8)
b) What will be the output of the following code snippet? Answer should be (6)
supported with proper reasons.
#include void main()
inti=0,j=0;
display) inti=l j=l;
{ printf("\nl: %d %d",i,j);
printf("\n4: 9۸۸0 %d",i,j); {
} inti=2,j=2;
printf("\n2: %d %d",i,j);
ಗ ಯ

)
printf("\n3: ۶۸0 %61,1]);
{1
display();
}

24 a) Write aC program to accept Admission number and Name of 'N' (a positive (8)
integer) students in a class and toprepare a Roll List based on the alphabetical order

of their Names.

b) Write a © program for displaying the prime numbers in a mXn matrix. (6)
111,

Page 3 of 3

Similar Question Papers