………………
htt
Roll No. : …………………………………………...……………..
Invigilator’s Signature : ………………………………………..
CS/B.TECH (NEW)/SEM-2/CS-201/2012
p:/
2012
BASIC COMPUTATION & PRINCIPLES OF
COMPUTER PROGRAMMING
/q
Time Allotted : 3 Hours Full Marks : 70
GROUP – A
( Multiple Choice Type Questions )
er.
i) Operating system is
wb
d) none of these.
vi) Which one of the following is a Bitwise operator ?
a) < b) >=
wb
c) && d) <<.
vii) The output of
int fact=1;
for (i=0;i<fact;i++);
ut .
{
fact=fact*i;
printf("%d", fact);
a c.
}
is
a) 24 b) 5
c) infinite loop d) none of these.
in
2173 2
CS/B.TECH (NEW)/SEM-2/CS-201/2012
char a[]="computer";
/q
printf("%d",strlen(a));
a) 9 b) 10
pap
c) 8 d) 11.
decimal is
er.
a) 10 b) 12
c) 13 d) 15.
wb
GROUP – B
( Short Answer Type Questions )
Answer any three of the following. 3 × 5 = 15
disadvantage ? 2+3
GROUP – C
( Long Answer Type Questions )
Answer any three of the following. 3 × 15 = 45
er.
do-while loop.
extenally.
* *
ut .
* * * *
* * * * * *
* * * * * * * *
a c.
* * * * * * * * *
2173 4
CS/B.TECH (NEW)/SEM-2/CS-201/2012
9. a) What is recursion ?
calculate x n .
a c.
examples. 3+6+6
(742)8 to Binary
a c.
2173 6
CS/B.TECH (NEW)/SEM-2/CS-201/2012
b) Bitwise Operator
p:/
c) Pointer Arithmetic