MCQOPTIONS
Saved Bookmarks
This section includes 5 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. |
%lf is used to display? |
| A. | float |
| B. | long float |
| C. | double |
| D. | all of the mentioned |
| Answer» D. all of the mentioned | |
| 2. |
Predict the data type of the following mathematical operation? |
| A. | int |
| B. | long |
| C. | float |
| D. | doubleView Answer |
| Answer» E. | |
| 3. |
Modulus for float could be achieved by? |
| A. | a % bb) modulus(a, b);c) fmod(a, b);d) mod(a, |
| B. | modulus(a, b); |
| C. | fmod(a, b); |
| D. | mod(a, b); |
| Answer» D. mod(a, b); | |
| 4. |
Which data type is suitable for storing a number like? |
| A. | int |
| B. | float |
| C. | double |
| D. | both float and doubleView Answer |
| Answer» D. both float and doubleView Answer | |
| 5. |
Which of the following % operation is invalid? |
| A. | 2 % 4; |
| B. | 2 % 4l; |
| C. | 2 % 4f; |
| D. | Both 2 % 4l; and 2 % 4f; |
| Answer» D. Both 2 % 4l; and 2 % 4f; | |