MCQOPTIONS
Saved Bookmarks
This section includes 3 Mcqs, each offering curated multiple-choice questions to sharpen your C Language Interview knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
The control won’t fall into the for loop$ |
| A. | Numbers will be displayed until the signed limit of short and throw a runtime error |
| B. | Numbers will be displayed until the signed limit of short and program will successfully terminate |
| C. | This program will get into an infinite loop and keep printing numbers with no errors |
| Answer» C. This program will get into an infinite loop and keep printing numbers with no errors | |
| 2. |
Which of the following cannot be used as LHS of the expression in for (exp1;exp2; exp3)? |
| A. | Variable |
| B. | Function |
| C. | typedef |
| D. | macros |
| Answer» B. Function | |
| 3. |
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» D. for (i = n-1; i>-1; i‚Äö√Ñ√∂‚àö√ë‚àö¬®) | |