23. Which of these are selection statements in Java? a) break b) continue c) for() d) if() View Answer 24. What will be the output of the following Java program? classrecursion { intfunc(intn) { intresult; if(n==1) return1; result=func(n-1); returnresult; } }...
d) There are chances of wastage of memory space if elements inserted in an array are lesser than the allocated size View Answer 3. Which data structure is used for implementing recursion? a) Stack b) Queue c) List d) Array View Answer ...
Answer: 4 In recursion, the type of data structure that finds its use is the Stack type of data structure. Q6 The data structure that allows the insertion, as well as the deletion from both the ends, are: String type of data structure Queue type of data structure Stack type of data ...