APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY Previous Years Question Paper & Answer

Course : B.Tech

Semester : S1 and S2

Year : 2020

Term : APRIL

Branch : BIOTECHNOLOGY

Scheme : 2015 Full Time

Course Code : CS 100

Page:3





PDF Text (Beta):

£2803 Pages: 3
void main()
{1111 count=0, | 0;
While(1)
A
I++;
if(i%3==0)
--------------- //Line |
count++:
printf("%d\t" i):
if(count==100)
−−−−−−−−−−−−−−− //Line2
)
}
PART 0

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 2) What are 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.
' dinclude void main()
i inti=0,j=0; {
display() inti=1j=1;
if printf("\nl: %d %d",i,j);
ഉസ്സ %d %d",i,j); (
। } 052452;
| printf("\n2: 9۹ 96,11):
பவா ರ;
}
printf("\n3: ५०५ %d",1,j);
i++ j++;
display();
}

24 a) Write a C 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 ೩ mXn matrix, (6)
‏بد‎ के ‏با‎ के

Scanned by CamScanner

Similar Question Papers