Question
Which of the following will be the next step for the
followinginput? Input: 50 26 82 28 43 94 68 63 Directions : Study the following information to answer the given questions: A number sorting machine, when given an input of numbers, rearranges the numbers in a particular manner step by step as indicated below till all the numbers are arranged in a particular order. Input: 17 56 32 70 81 25 77 92 52 23 60 97 Step I: 17 23 32 70 81 25 77 92 52 56 60 97 Step II: 17 23 32 70 81 25 77 60 52 56 92 97 Step III: 17 23 25 70 81 32 77 60 52 56 92 97 Step IV: 17 23 25 70 56 32 77 60 52 81 92 97 Step V: 17 23 25 32 56 70 77 60 52 81 92 97 Step VI: 17 23 25 32 56 70 52 60 77 81 92 97 Step VII: 17 23 25 32 52 70 56 60 77 81 92 97 Step VIII: 17 23 25 32 52 60 56 70 77 81 92 97 Step IX: 17 23 25 32 52 56 60 70 77 81 92 97 and step IX is the last step for the given input.Solution
Here the rule followed is: Step I: The smallest number interchanges its position with the first number. [In case the first number is smallest then the next number just larger than it interchanges its position with the second number.] Step II: The largest number interchanges its position with the last number. [In case the largest number is first from right end, the second largest number interchanges its position with the second number from right and so on.] These steps are repeated alternately till the numbers get arranged in ascending order and that will be the last step for the particular input. Input: 50 26 82 28 43 94 68 63 Â Step I: 26 50 82 28 43 94 68 63
We had taken great pain to check the structural soundness of the coachwork.
In the question below, a sentence is given, divided into five parts (A) , (B) , (C) , (D) and (E) . One of the parts is grammatically incorrec...
Identify the segment that contains a grammatical error. If there is no error, select 'No error'.
We should be cautious while placing our trust in...
Much of Sri Lanka’s (1)/external borrowings are (2)/though sovereign bonds (3)/in the international money market (4).
Parts of the following sentence are given as options. Identify the segment that contains a grammatical error.Â
He gave such a long speech but ev...
The MNC recently roped in a new head of the HR department.
Given below are sentences with an error in each. The error is in one part of the sentence. Below each sentence are given the options containing the par...
Directions: In each of the questions, a sentence has been divided into four parts, one of which may contain an error. Identify that fragment and mark i...
In each of the questions, a sentence has been divided into four parts, one of which may contain an error. Identify that fragment and mark it as your an...
Out of the statements given below, one statement may be grammatically and contextually correct. Choose the correct statement as your answer. If all the...