The default value of the boolean type is
True
False
EJB and Java beans can be run on many systems?
he following code is not well-written. What does the program do? Void main() { int a=1, b=2, c=3,d=4; printf("%d %d", a, b); printf (" %d %d", c, d); }
Run-Time Error
Compile-Time Error
1 2 3 4
None of above
What will be the output of the following program : void main() { int a=1,b=2,c=3; c=(--a, b++)-c; printf("%d %d %d",a,b,c); }
0 3 -3
0 3 -1
0 3 0
What will be the output of the following program : void main() { int a=1,b=2,c=3,d=4,e; e=(a,a)+(b,c)+(c,d)-(d,b); printf("%d", e); }
10
6
2
What will be the output of the following program: void main() { float val=2.; printf("%.2",val); }
Compile-Time error
2.00
%.2
2.000000
What will be the output of the following program : void main() { int a=5; int b=6;; int c=a+b; printf("%d",c); }
11
What will be the output of the following program : void main() { int i,j; for (i=1; i<=3; i++) for (j=1; j<3; j++) { if (i == j) continue; if ((j % 3) > 1) break; printf("%d",i); } }
2,3
3,2
2,2
3,3
What will be the output of the following program : #define swap(a,b) temp=a; a=b; b=temp; void main() { static int a=5,b=6,temp; if (a > b) swap(a,b); printf("a=%d b=%d",a,b); }
a=5 b=6
a=6 b=5
a=6 b=0
None of the above
What will be the output of the following program : void main() { unsigned int val=5; printf("%u %u",val,val-11); }
5 -6
5 65530
none of the above