MCQOPTIONS
Saved Bookmarks
This section includes 8 Mcqs, each offering curated multiple-choice questions to sharpen your C Programming knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
Select the odd one out with respect to type? |
| A. | char |
| B. | int |
| C. | long |
| D. | float |
| Answer» E. | |
| 2. |
%f access specifier is used for ________ |
| A. | Strings |
| B. | Integral types |
| C. | Floating type |
| D. | All of the mentioned |
| Answer» D. All of the mentioned | |
| 3. |
In the following C code, the union size is decided by? |
| A. | char |
| B. | int |
| C. | float |
| D. | both int and floatView Answer |
| Answer» E. | |
| 4. |
Loss in precision occurs for typecasting from____________ |
| A. | char to short |
| B. | float to double |
| C. | long to float |
| D. | float to int |
| Answer» E. | |
| 5. |
What is the size of float in a 32-bit compiler? |
| A. | 1 |
| B. | 2 |
| C. | 4 |
| D. | 8 |
| Answer» D. 8 | |
| 6. |
In a 32-bit compiler, which 2 types have the same size? |
| A. | char and short |
| B. | short and int |
| C. | int and float |
| D. | float and double |
| Answer» D. float and double | |
| 7. |
Which among the following is never possible as an output for a float? |
| A. | 3.666666 |
| B. | 3.666 |
| C. | 3 |
| D. | None of the mentioned |
| Answer» E. | |
| 8. |
How many digits are present after the decimal in float value? |
| A. | 1 |
| B. | 3 |
| C. | 6 |
| D. | 16 |
| Answer» D. 16 | |