InterviewSolution
Saved Bookmarks
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
What is an example of iteration in C?(a) for(b) while(c) do-while(d) all of the mentionedThe question was posed to me during an online interview.I want to ask this question from While Loops in section Control Flow Statements in C of C |
|
Answer» The CORRECT ANSWER is (d) all of the mentioned |
|
| 2. |
Which keyword can be used for coming out of recursion?(a) break(b) return(c) exit(d) both break and returnThe question was posed to me in an international level competition.Enquiry is from Break and Continue topic in chapter Control Flow Statements in C of C |
|
Answer» RIGHT ANSWER is (B) return Explanation: NONE. |
|
| 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–)This question was posed to me in an internship interview.This intriguing question originated from For Loops in portion Control Flow Statements in C of C |
|
Answer» RIGHT choice is (d) for (i = n-1; i>-1; i–) Easiest EXPLANATION - NONE. |
|
| 4. |
The keyword ‘break’ cannot be simply used within _________(a) do-while(b) if-else(c) for(d) whileI have been asked this question in unit test.The query is from Break and Continue topic in portion Control Flow Statements in C of C |
|
Answer» The CORRECT ANSWER is (B) if-else |
|