ExamVeda
Login
Home
61
%f access specifier is used for . . . . . . . .
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
62
What will be the output of the following C code?
#include <stdio.h>
printf("%d", sizeof('a'));
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
63
Loss in precision occurs for typecasting from. . . . . . . .
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
64
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;
}
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
65
Select the odd one out with respect to type?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
66
Predict the data type of the following mathematical operation?
2 * 9 + 3 / 2 . 0
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
67
How many digits are present after the decimal in float value?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
68
What is the size of float in a 32-bit compiler?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
69
Which among the following is never possible as an output for a float?
Discuss
Answer & Solution
Answer: Option D
Solution:
In C, a float can represent both whole numbers and decimal numbers due to its ability to store values in floating-point format.

Option A: 3.666666 is a valid float representation with precision.

Option B: 3.666 is also a valid float value, just with fewer decimal places.

Option C: 3 is an integer, but it can still be represented as a float (e.g., 3.0).

Therefore, all the options listed are valid float outputs depending on how the float is stored or printed.

Hence, the correct answer is Option D: None of the mentioned.
70
Size of an array can be evaluated by . . . . . . . .
(Assuming array declaration int a[10];)
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board