Semester : S1 and S2
Subject : Computer Programming
Year : 2019
Term : MAY
Branch : BIOTECHNOLOGY
Scheme : 2015 Full Time
Course Code : CS 100
Page:1
೫3
Reg ೫೦.
Max. Marks: 100
1116
Name:
APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY
SECOND SEMESTER B.TECH DEGREE EXAMINATION(R&S), MAY 2019
Course Code: CS100
Course Name: COMPUTER PROGRAMMING (CS, IT)
PART A
Answer all questions, each carries 2 or 3 marks.
Describe the four data-type qualifiers in C.
With a suitable example explain how does a pointer point to another pointer?
What is a structure? How is a structure member accessed? Explain with an
example
Write a C program to subtract two matrices.
When parameters are passed to a program from the command line, how is the
program execution initiated? Explain with an example.
Discuss about unformatted data files and write on any two library functions
associated with this.
Write the output of the program. Justify the answer
#include
int fun()
{ static int count=0;
count++;
return count;
ಕ
‘intmain()
( printf(“%d”, fun( بر(
printf(“%d”, fun( پر(
return 0; }
Illustrate the steps for sorting the following set of numbers using selection sort
(descending).23,97,60,11,61.
What are the keywords in C? What restrictions apply to their use?
Explain the relational and equality operators in C with example.
Write the output of the program
#include
#define prod(a,b) a*b
int main( )
{ int x=3,y=4;
printf(“%d” prod(x+2,y-1));
printf(‘“%d”, prod(y+1,x-2));
return 0;
}
What is the output of the following program? Justify your answer.
#include
void main()
{ char *p = “wxyz”:
Page 1௦12
Duration: 3 Hours
Marks
(3)
(3)
(2)
(2)
(2)
(2)