MCQOPTIONS
Saved Bookmarks
This section includes 4 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. |
Which of the data types has the size that is variable? |
| A. | int |
| B. | struct |
| C. | float |
| D. | double |
| Answer» C. float | |
| 2. |
What will be the output of the following C code on a 64 bit machine? |
| A. | 8 |
| B. | 5 |
| C. | 9 |
| D. | 4View Answer |
| Answer» E. | |
| 3. |
Which is correct with respect to the size of the data types? |
| A. | char > int > float |
| B. | int > char > float |
| C. | char < int < double |
| D. | double > char > int |
| Answer» D. double > char > int | |
| 4. |
What will be the output of the following C code on a 32-bit machine? |
| A. | p and q are 4 and 4 |
| B. | p and q are 4 and 8 |
| C. | compiler error |
| D. | p and q are 2 and 8View Answer |
| Answer» B. p and q are 4 and 8 | |