

MCQOPTIONS
Saved Bookmarks
This section includes 2 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 for loop has range of similar indexes of 'i' used in for (i = 0;i < n; i++)? |
A. | for (i = n; i>0; i--) |
B. | for (i = n; i >= 0; i--) |
C. | for (i = n-1; i>0; i--) |
D. | for (i = n-1; i>-1; i--) |
Answer» E. | |
2. |
The C code for(;;) represents an infinite loop. It can be terminated by ___________ |
A. | break |
B. | exit(0) |
C. | abort() |
D. | terminate |
Answer» B. exit(0) | |