CS/B.TECH(NEW)/SEM-2/CS-201/2013
2013
BASIC COMPUTATION AND PRINCIPLES OF
COMPUTER PROGRAMMING
Time Alloted:3 Hours Full Marks : 70
The figures in the margin indicate full marks.
Candidates are required to give their answers in their own words
as far as practicable.
GROUP – A
( Multiple Choice Type Questions )
1. Choose the correct alternatives for the following : 1x10=10
i) The correct syntax to send an array "array" as a parameter to function "func" is
a) func ( & array ) ;
b) func ( array ) ;
c) func ( * array ) ;
d) 1func ( array [ size ] ); .
ii) What is the output of this C code ?# include < stdio.h >
void main ( )
{
double k = 0;
for ( k = 0.0; k < 3.0; k ++ );
printf ( "% f", k );
}
a) 2.000000
b) 4.000000
c) 3.000000
d) none of these