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. |
128 |
| A. | -128 |
| B. | Depends on the compiler |
| C. | None of the mentioned |
| Answer» B. Depends on the compiler | |
| 2. |
What is the size of an int data type? |
| A. | 4 Bytes |
| B. | 8 Bytes |
| C. | Depends on the system/compiler |
| D. | Cannot be determined |
| Answer» D. Cannot be determined | |
| 3. |
Which of the following is a User-defined data type? |
| A. | typedef int Boolean; |
| B. | typedef enum {Mon, Tue, Wed, Thu, Fri} Workdays; |
| C. | struct {char name[10], int age}; |
| D. | all of the mentioned |
| Answer» E. | |
| 4. |
Which data type is most suitable for storing a number 65000 in a 32-bit system? |
| A. | signed short |
| B. | unsigned short |
| C. | long |
| D. | int |
| Answer» C. long | |
| 5. |
The format identifier ‘%i’ is also used for _____ data type.$ |
| A. | char |
| B. | int |
| C. | float |
| D. | double |
| Answer» C. float | |