Machine-translated by Google. Questions are authored in English.
Top

Input Output Questions and Answers

Important Instructions
Direction for [ Question No: 31 To 37 ] :

Study the following information to answer the questions given below:

A number arrangement machine when given an input of numbers, rearranges them following a particular rule in each step.

The following is an illustration of input and steps of rearrangement.

Input : 48 245 182 26 99 542 378 297

Step I : 542 48 245 182 26 99 378 297

Step II: 542 26 48 245 182 99 378 297

Step III: 542 26 378 48 245 182 99 297

Step IV: 542 26 378 48 297 245 182 99

Step V: 542 26 378 48 297 99 245 182

This is the final arrangement and step V is the last step for this input

31.

What will be fourth step for an input whose second step is given below

Step II : 765 42 183 289 542 65 110 350

Answer: C

Correct answer: 765 42 542 65 183 289 110 350

This machine takes the largest remaining number, then the smallest remaining, alternately from the left. The second step has 765 and 42 in place, so step 3 brings the next largest, 542, to position three, and step 4 brings the next smallest, 65, to position four: 765 42 542 65 183 289 110 350.

Please log in or register to report this question.

32.

What should be the third step of the following inputs? Input : 239 123 58 361 495 37What should be the third step of the following inputs? Input : 239 123 58 361 495 37

Answer: D

Correct answer: 495 37 361 239 123 58

The order of placement is largest, smallest, next largest, next smallest: 495, 37, 361, 58, 239, 123. Step 1 gives 495 239 123 58 361 37, step 2 gives 495 37 239 123 58 361, and step 3 brings 361 to position three: 495 37 361 239 123 58.

Please log in or register to report this question.

33.

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.

Please log in or register to report this question.

34.

What should be the last step of the following output? Input : 158 279 348 28 326 236

Answer: A

Correct answer: 348 28 326 158 279 236

The order is 348, 28, 326, 158, 279, 236. The first three moves give 348 158 279 28 326 236, then 348 28 158 279 326 236, then 348 28 326 158 279 236. At that point 158, 279 and 236 are already in positions four, five and six, so nothing further moves and step 3 is the last.

Please log in or register to report this question.

35.

If the first step of an input is "785 198 32 426 373 96 49 " the which of the following step will be " 785 32 426 49 198 373 96 "?

Answer: B

Correct answer: Fourth

From the first step, 785 198 32 426 373 96 49, the machine continues with the smallest, 32, then the next largest, 426, then the next smallest, 49. That gives step 2 as 785 32 198 426 373 96 49, step 3 as 785 32 426 198 373 96 49 and step 4 as 785 32 426 49 198 373 96, which is the line asked about.

Please log in or register to report this question.

36.

Below is given the second step of an input. What will be its fourth step? Step II :298 12 128 36 212 185

Answer: B

Correct answer: 298 12 212 36 128 185

The second step has the largest number, 298, and the smallest, 12, in place. Step 3 brings the next largest, 212, to position three, giving 298 12 212 128 36 185, and step 4 brings the next smallest, 36, to position four: 298 12 212 36 128 185.

Please log in or register to report this question.

37.

Below is given the third step of an input.What will be its second step? Step III : 387 42 236 185 92 64

Answer: D

Correct answer: Cannot be determined

Working forward from a given line is always possible, but working backward is not: each move slides an element out of its old place and lets the rest close up, so the earlier arrangement cannot be recovered. Several different second steps would produce the same third step, and nothing in the line distinguishes them.

Please log in or register to report this question.

Direction for [ Question No: 38 To 39 ] :

Study the following information to answer the given questions.

A word arrangement machine, when given an input line of words, rearranges them following a particular rule in each step. The following is an illustration of input and the steps of rearrangement.

Input : Go for to thought By easy to Access at

Step I : Access Go for to Though By easy To at

Step II : Access at Go for to Though by easy To

Step III : Access at By Go for to Though easy to

Step IV : Access at By easy Go or to Though To

Step V : Access at By easy for Go to though To

Step VI : Access at By easy for Go Though to To

Step VII : Access at By easy or Go though To to (and step VII is the last step for this input.) As per the rules followed in the above steps, find out in the given questions the appropriate step for the given input.

38.

Input : Over Go for through at one Which step number will be the last step of the above input.

Answer: D

Correct answer: IV

The machine places the words in alphabetical order from the left, one per step, and prints a step only when something actually moves. For this input the order is at, for, Go, one, Over, through. The first four moves give steps I to IV, ending at at for Go one Over through - and at that point Over and through are already in positions five and six, so no further steps are printed. Step IV is therefore the last.

Please log in or register to report this question.

39.

Input : Story for around on was He at. Which of the following will be the IV step ?

Answer: B

Correct answer: around at for He story on was

The words in alphabetical order are around, at, for, He, on, Story, was. Taking them one per step from the left: step I gives around Story for on was He at, step II around at Story for on was He, step III around at for Story on was He, and step IV around at for He Story on was.

Please log in or register to report this question.

40.

Input :Together over series on feast the so. Which of the following steps will be the last but one ?

Answer: D

1st Step : feast Together over series on the so 2nd Step : feast on Together over series the so 3rd step : feast on over Together series the so 4th step : feast on over series Together the so 5th Step : feast on over series so the Together (Last step)

Please log in or register to report this question.

Loading…
Tags: Input Output Questions and Answers || Input Output MCQ Questions and Answers || Input Output GK Questions and Answers || Input Output GK MCQ Questions || Input Output Multiple Choice Questions and Answers || Input Output GK || GK on Input Output || Reasoning Questions and Answers || Reasoning MCQ Questions and Answers || Reasoning GK Questions and Answers || GK on Reasoning