Discussion
How many steps will be required to get the final output from the following input? Input : 39 88 162 450 386 72 29
Answer: D
Correct answer: None of these
The placement order is 450, 29, 386, 39, 162, 72, with 88 left over. Steps 1 to 3 place 450, 29 and 386. The next element, 39, is already in position four, so no step is printed for it; the fourth printed step places 162 and the fifth places 72, after which the line is arranged. Five steps are needed, and five is not among the first three options.
No comment is present. Be the first to comment.
Loading…
Post your comment
Please log in or register to post a comment.
Examination Categories
- SSC Exams
- Banking Exams
- Teaching Exams
- Civil Services Exams
- Railways Exams
- Engineering Recruitment Exams
- Defence Exams
- State Government Exams
- Police Exams
- Insurance Exams
- Nursing Exams
- Other Government Exams
- NRA CET
- PG Entrance Exams
- Campus Placement
- MBA Entrance Exams
- CUET and UG Entrance
- Judiciary Exams
- Regulatory Body Exams
- Software Development