Bca 2 Sem Test Paper
Bca 2 Sem Test Paper
g college,Varanasi
B.C.A Department ( Sem - 2)
TIME-1:30 Marks:129
11) Which format specifier is used to print the values of double type variable
A]%If B]%Id C]%Iu D] %f
12) What will be the output of the following program?
Void main ( ) {
Double x=28;
Int r;
R= x%5;
Printf (“\n r=%d”, r); }
A] r= 3 B] Run time Error C]Compile time Erroe D]None of the
Above
13) What the follwing function call mean?
Strcpy(s1 , s2 );
A]copies s1 string into s2 B]copies s2 string into s1
C]copies both s1 and s2 D] None of these
14) What will be the output of the following program?
Void main( ) {
Int x []= {10,20,30,40,50};
Print f (“ \n %d %d %d %d “, x [4] ,3[x] ,x[2] ,1[x] ,x[0] ); }
A]Error B]10 20 30 40 50 C]50 40 30 20 10 D]None of these
31) Which of the following function not convert floating point number to string ?
A] fcvt B] gevt C] eevt D] hcvt
32) What will be the output ?
void main ( ) {
printf(“%d”,’B’ < ‘A’ ); }
A] Error B] 1 C] 0 D] None of these