Semester : S1 and S2
Subject : Computer Programming
Year : 2020
Term : APRIL
Branch : BIOTECHNOLOGY
Scheme : 2015 Full Time
Course Code : CS 100
Page:1
variable of structure is accessed using this pointer?
Page 1 of 3
Scanned by CamScanner
0 1 Pages: 3
Rep No Name
۸۰۲ HNOLOGICAL UNIVERSIVY
SECOND SEMESTER || ( || DEGREE | × ۸۸۱۲۸ TION, APRIL 201%
Course Code: CS100
Course Name: COMPUTER PROGRAMMING (CS, 11)
Max, Marks: ( Duration أ Hours
PART A
Answer all questions, سیت
| Differentiate between Keywords and tdentifiers in ( (1)
2 ۱۷۱۱۷۷۱ will be the output of the following code and justify your answer (1)
٢۱۷۷۷ ) - 111111]
void 70 |
| inti;
static ٠ ൨0 0-4) 10)
॥*=2: }
|॥॥॥॥॥("५॥ ", 1);
}
3 Write aC program to accept a 2-D integer matrix and check whether it symmetric (3)
or not,
4 Differentiate between Structure and Union in (', (3)
5 What are pre-processor directives? List any (wo pre-processor directive and their (3)
uses.
0 111/1111) any 3 bitwise operators and 3 logical operators in C, with example. (3)
7 What will be the value of somelunetion(5.2) for the following definition of (3)
someFunetion? Justify your answer.
void somelunction(int ६. int 0)
{
int "ptr,
850
ماد ` &;
# ` * ptr
#|)॥ |;
print{("%d,%d", a, 0);
|
8 Explain any Six File opening modes available in 0, (3)
9 [ixplain the concept of Command Line Argument in C with example (2)
10 Write a C program to check whether a characteris present ina string. (2)
|| What will be the output if doSomething(117,17) is called with the following )2(
definition?
intdoSomething(int a, int b)
{
if ( !5 0)
return doSomething(b, a%b);
else
return it;
।
12 Explain how a pointer is assigned with a structure in C and how the member (2)