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