APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY Previous Years Question Paper & Answer

Course : B.Tech

Semester : S1 and S2

Year : 2019

Term : MAY

Branch : BIOTECHNOLOGY

Scheme : 2015 Full Time

Course Code : CS 100

Page:2





PDF Text (Beta):

E3

17

19

20

21

22

23

24

a)

b)
a)

b)

a)
b)

a)
b)
९)
2)

b)

‎Pages:‏ 6ہ

‎printf(“%c”, *p++);

‎printf(“%c”, *p);

‎}

‎List the advantages of using pointers in ಛಿ,
What do you meant by scope of a variable in ಲಿ?

‎What is a stream pointer? What is the relationship between a stream pointer and
buffer area?
Explain the meaning of each of the following function prototypes.

‎i) int fl (int a);

‎ii) double f2(double a, int b);

‎PART B
Answer any four full questions, each carries 8 marks.

‎Write a C program to evaluate the series

‎Explain increment and decrement operators with an example.

‎Write a C program to accept a two dimensional matrix and display the row sum,
column sum and diagonal sum of elements.
Write a C program to replace a character in a string with another character.

‎Using pointers, write a function that receives a character string and a character as
argument and deletes all occurrences of this character in the string. The function
should return the corrected string with no holes. Also write the main function to
invoke the above function.

‎Write a program to check whether a number is perfect or not.

‎How will you declare variables using enumerated data type ?Explain with an
‏وت‎ miei os ue न

‎example. |
Explain the purpose of typedef construct.
Explain the various function parameter passing methods with examples.
PART C
Answer any two full questions, each carries 14 marks.
Write a C program to read two sorted arrays and merge them into a single array.

‎Write a C program to search for an element using binary search.

‎Write a C program to copy the contents of a text file to another file. Pass the
filename using command line arguments.
Give the syntax and use of external storage class.

‎What is an unformatted data file? List the applications of such files.

‎Write a C program to write a set of numbers to a file and separate the odd and
even numbers to two separate files.
Differentiate static and automatic variables.

‎मं मे ‏ید ید‎

‎Page 2 of 2

‎(2)

‎G3)

‎(2)
‎(8)

‎(8)
‎(6)
‎(8)

‎(3)
‎(3)
‎(8)

‎(4)

Similar Question Papers