Question 1 of 25
Hints left: 3
Q1
What will be the size of the following C structure? #include <stdio.h> struct temp { int a[10]; char p; };
Q2
How many times will a 'do-while' loop execute its body if the condition is initially false in C?
Q3
What type of value does sizeof return?
Q4
What will be the output of the following C code? #include <stdio.h> printf("%d", sizeof(strlen("HELLOWORLD")));
Q5
What is the result of the expression !(5 == 5) in C?
Q6
What is the sizeof(char) in a 32-bit C compiler?
Q7
What is the purpose of the 'continue' statement in C?
Q8
What will be the output of the following C code? #include <stdio.h> printf("%.0f", 2.89);
Q9
Which control structure is used to make a decision between two or more alternatives in C?
Q10
Which of the following is not an operator in C?
Q11
What will be the output of the following C code? #include <stdio.h> (sizeof double = 8, float = 4, void = 1) #define PI 3.14 int main() { printf("%d", sizeof(PI)); }
Q12
Which among the following is never possible in C when members in a structure are the same as that in a union? //Let P be a structure //Let Q be a union
Q13
What is the result of the expression 5 > 3 && 4 < 6 in C?
Q14
%lf is used to display?
Q15
What will be the output of the following C code? #include <stdio.h> main() { int a = 1; printf("size of a is %d, ", sizeof(++a)); printf("value of a is %d", a); };
Q16
What is the sizeof(void) in a 32-bit C?
Q17
In C, what happens if the 'default' case is missing in a 'switch' statement?
Q18
Which data type is suitable for storing a number like? 10.0000000001
Q19
What is the purpose of the 'else' statement in C's 'if-else' control structure?
Q20
In a 32-bit compiler, which 2 types have the same size?
Q21
Which among the following is never possible in C when members are different in a structure and union? //Let P be a structure //Let Q be a union
Q22
Which control structure is used to repeatedly execute a block of code in C?
Q23
In C, what is the purpose of the 'break' statement within a loop?
Q24
Which of the following cannot be used inside sizeof?
Q25
Size of an array can be evaluated by . . . . . . . . (Assuming array declaration int a[10];)