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. |
What type of value does sizeof return? |
| A. | char |
| B. | short |
| C. | unsigned int |
| D. | long |
| Answer» D. long | |
| 2. |
What is the sizeof(void) in a 32-bit C? |
| A. | 0 |
| B. | 1 |
| C. | 2 |
| D. | in a 32-bit C?a) 0b) 1c) 2d) 4 |
| Answer» C. 2 | |
| 3. |
Which among the following has the highest precedence? |
| A. | & |
| B. | << |
| C. | sizeof() |
| D. | && |
| Answer» D. && | |
| 4. |
Which of the following is not an operator in C? |
| A. | , |
| B. | sizeof() |
| C. | ~ |
| D. | None of the mentioned |
| Answer» E. | |
| 5. |
Size of an array can be evaluated by __________ a) sizeof(a);b) sizeof(*a);c) sizeof(a[10]);d) 10 * sizeof( |
| A. | sizeof(a); |
| B. | sizeof(*a); |
| C. | sizeof(a[10]); |
| D. | 10 * sizeof(a);View Answer |
| Answer» B. sizeof(*a); | |