If we would require a technique which would be able to run the setup() function for ‘n’ times, which one would we use? A-> Iterative looping B->

If we would require a technique which would be able to run the setup() function for ‘n’ times, which one would we use?
A-> Iterative looping
B-> Recursive looping
C-> Goto Function
Choose the correct Combination that works.
A. BC
B. A
C. C
D. B
 
Answer: B
Explanation: Here the best option to use would be the iterative looping technique. This is because it has both efficient memory management and an easy to use implementation. Recursive looping can be used when there is no urgent need to consolidate and minimize memory usage for a project. However, the Goto function is generally not preferred since it is a very complex way to go about looping and is very difficult for other programmers to decipher the program after development.
 

Tìm kiếm

Back
Top