D) Program 2 Has Syntax Error, Program 1 Is Not
D) Program 2 Has Syntax Error, Program 1 Is Not
D) Program 2 Has Syntax Error, Program 1 Is Not
(a) 100, 200 (b) 300, 200 (c) 100, 0 (d) 300, 0
(a) 100 (b) 200 (c) 300 (d) None of the above
(a) 4 0.000000
0 4.000000
(b) 4 4.000000
0 4.000000
(c) 4 4.000000
4 4.000000
(d)4 0.000000
4 4.000000
10. Which bitwise operator is suitable for checking whether a particular bit is
on or off?
A B
&& operator & operator
. .
C D
|| operator ! operator
. .
a) 1, 40, 1 b) 0, 1, 1 c) 1, 1, 1 d) 0, 40, 1
a B
Infinite times 11 times
. .
C D
0 times 10 times
. .
17. Which of the following statement is used to take the control to the
beginning of the loop?
a) break b) continue c)exit d) none of these
A B
0, 1, 2, 3, 4, 5 5
. .
C D
1, 2, 3, 4 6
. .
A B
Error: Misplaced continue Bye
. .
C D
No output Hello Hi
. .
#include<stdio.h>
int main()
{
printf("IndiaBIX");
main();
return 0;
}
A B
Infinite times 32767 times
. .
C D
65535 times Till stack overflows
. .
23. Input/output function prototypes and macros are defined in which header
file?
A B
conio.h stdlib.h
. .
C D
stdio.h dos.h
. .
24. What will be output if you compile and execute the above code?
int main()
{
char f=255.0;
printf("%d",sizeof(f++));
return 0;
}
(a)1
(b)8
(c)10
(d)Compiler error
25. What will be output if you compile and execute the above code?
#define int long
#define cal(x,y,z) x*y*z
int main(){
int a=2;
int b=cal(a++,a++,a++);
printf("%d,%d" ,a,b);
return 0;
}
(a)5,0
(b)5,125
(c)5,60
(d)Compiler error