Question 1 of 25
Hints left: 3
Q1
Identify the correct output of the following code: void main() { int w=10, x=5, y=3, z=3; if( (w < x ) && (y=z++) ) printf("%d %d %d %d", w, x, y, z); else printf("%d %d %d %d", w, x, y, z); }
Q2
Which among the following is never possible as an output for a float?
Q3
Predict the data type of the following mathematical operation? 2 * 9 + 3 / 2 . 0
Q4
what will be the output when following code is executed? void main() { int a=10, b; b = a++ + ++a; printf("%d %d %d %d", b, a++, a, ++a); }
Q5
Which among the following statement is right?
Q6
Select the odd one out with respect to type?
Q7
What will be the output of the following C code? #include <stdio.h> printf("%d", sizeof('a'));
Q8
%f access specifier is used for . . . . . . . .
Q9
What will be the output of the following C code? #include <stdio.h> union temp { char a; char b; int c; }t; int main() { printf("%d", sizeof(t)); return 0; }
Q10
Which among the following has the highest precedence?
Q11
Determine output of the following program code. #include<stdio.h> void main() { int a, b=7; a = b<4 ? b<<1 : ++b>4 ? 7>>1 : a; printf("%d %d", a, b); }
Q12
Loss in precision occurs for typecasting from. . . . . . . .
Q13
Find the output of the following program. #include<stdio.h> void main() { int y=10; if(y++>9 && y++!=11 && y++>11) printf("%d", y); else printf("%d", y); }
Q14
What will be the output of the following C code? #include <stdio.h> int main() { float a = 2.455555555555; printf("%f", a); }
Q15
Modulus for float could be achieved by?
Q16
Find the output of the following program. #include<stdio.h> void main() { int y=10; if(y++>9 && y++!=10 && y++>11) printf("%d", y); else printf("%d", y); }
Q17
Which of the following % operation is invalid?
Q18
Consider the following program fragment, and choose the correct one. void main() { int a, b = 2, c; a = 2 * (b++); c = 2 * (++b); }
Q19
In the following C code, the union size is decided by? union temp { char a; int b; float c; };
Q20
What will be the output of the following code fragment? void main() { printf("%x",-1<<4); }
Q21
Choose the correct output for the following program. #include<stdio.h> void main() { int a=10, b=11, c=13, d; d = (a=c, b+=a, c=a+b+c); printf("%d %d %d %d", d, a, b, c); }
-
A
-
B
-
C
-
D
Q22
Which operator from the following has the lowest priority?
Q23
How many digits are present after the decimal in float value?
Q24
Given b=110 and c=20, what is the value of 'a' after execution of the expression a=b-=c*=5?
Q25
What is the size of float in a 32-bit compiler?