Semester : S1 and S2
Subject : Computer Programming
Year : 2018
Term : APRIL
Branch : BIOTECHNOLOGY
Scheme : 2015 Full Time
Course Code : CS 100
Page:1
oS
variable of structure is accessed using this pointer?
Page 1 of 3
E E2803 ۱ ا
Reg No.: Name:
APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY
SECOND SEMESTER B.TECH DEGREE EXAMINATION, APRIL 2018
Course Code: CS100
Course Name: COMPUTER PROGRAMMING (CS, IT)
Max. Marks: 100 Duration: 3 Hours
PART A
Answer all questions. Marks
1 Differentiate between Keywords and Identifiers in ಲಿ. (3)
2 What will be the output of the following code and justify your answer. (3)
#include
void funX() {
{ inti;
static 1171; for(i=0;i<4;i++) funX(Q);
1-2 }
printf("%d ", 1);
}
3 Write ೩ C program to accept a 2-D integer matrix and check whether it symmetric (3)
or not.
4 Differentiate between Structure and Union in C. (3)
5 What are pre-processor directives? List any two pre-processor directive and their (3)
uses,
6 Explain any 3 bitwise operators and 3 logical operators in C, with example. (3)
7 What will be the value of someFunction(5,2) for the following definition of (3)
somefFunction? Justify your answer.
void someFunction(int a, int 0)
1
int *ptr;
a=0;
ptr = &a;
b= *ptr;
णा = 1;
printf("%d,%d", a, b);
}
8 Explain any Six File opening modes available ൩൦. (3)
9 Explain the concept of Command Line Argument in C with example (2)
10 Write a C program to check whether a characteris present in a string. (2)
11 What will be the output if doSomething(117,17) is called with the following (2)
definition?
intdoSomething(int a, int b)
{
if (b != 0)
return doSomething(b, a%b);
else
return a;
}
12 Explain how a pointer is assigned with a structure in C and how the member (2)