

MCQOPTIONS
Saved Bookmarks
This section includes 2 Mcqs, each offering curated multiple-choice questions to sharpen your General Awareness knowledge and support exam preparation. Choose a topic below to get started.
1. |
Which of the following code snippet performs linear search recursively? |
A. | a) |
Answer» C. | |
2. |
The array is as follows: 1,2,3,6,8,10. Given that the number 17 is to be searched. At which call it tells that there’s no such element? (By using linear search(recursive) algorithm) |
A. | 7th call |
B. | 9th call |
C. | 17th call |
D. | The function calls itself infinite number of times |
Answer» B. 9th call | |