All Exams Test series for 1 year @ ₹349 only
Question

If the input is: apple 12 orange 7 banana 15 and the logic used is to arrange numbers in ascending order and words in alphabetical order, what would be Step 2?

This question was previously asked in
SSC Stenographer 2025 Question Paper (06-Aug-2025) Shift 2
The correct answer is
7 apple 12 banana 15 orange

Input String and Sorting Logic

The problem presents an input string: "apple 12 orange 7 banana 15". The goal is to determine the result of "Step 2" following a specific logic. This logic requires two types of sorting:

  • Arranging numbers in ascending order (from smallest to largest).
  • Arranging words in alphabetical order (from A to Z).

The question asks specifically for the outcome after Step 2, implying an intermediate step likely involved sorting these elements individually.

Applying Ascending and Alphabetical Sort

Separating Words and Numbers

First, we need to identify and separate the words and numbers within the given input string:

Input: apple 12 orange 7 banana 15

Identified Words: apple, orange, banana

Identified Numbers: 12, 7, 15

Sorting Numbers in Ascending Order

Next, we apply the ascending order rule to the identified numbers:

Original Numbers: 12, 7, 15

Sorted Numbers (Ascending): 7, 12, 15

In mathematical notation, this sequence is $7, 12, 15$.

Sorting Words in Alphabetical Order

Then, we apply the alphabetical order rule to the identified words:

Original Words: apple, orange, banana

Sorted Words (Alphabetical): apple, banana, orange

Step 2: Combining Sorted Elements

Step 2 involves combining the sorted numbers and sorted words. By examining the structure of the correct output, we can infer the combination method used:

  • The first element is the smallest number: 7.
  • The second element is the first word alphabetically: apple.
  • The third element is the next smallest number: 12.
  • The fourth element is the second word alphabetically: banana.
  • The fifth element is the largest number: 15.
  • The sixth element is the third word alphabetically: orange.

This sequential interleaving process creates the final output for Step 2:

Step 2 Output: 7 apple 12 banana 15 orange

This result aligns with the logical application of the sorting rules.

Was this answer helpful?

Similar Questions

  1. Input: dance, apple, zebra, kite, fan, bottle
    Step 1: zebra, apple, dance, kite, fan, bottle
    Step II: zebra, apple, bottle, dance, kite, fan
    Step III: zebra, apple, bottle, dance, fan, kite
    Question: What is the logic followed in the above arrangement?
  2. A word-and-number arrangement machine rearranges a given input following a specific rule in each step. The rule involves moving the alphabetically smallest word to the leftmost side and the numerically largest number to the rightmost side in each step. The process continues until all words are arranged in alphabetical order at the left end, and all numbers in descending order at the right end.
    Based on the pattern, answer the questions that follow the given input.
    Input: Panther 88 33 11 Roar Stripes 44 Animal
    Question: Which is the 1st word placed in Step 1?

  3. Input: cat 28 dog 43 bat 59
    Step 1: 59 cat 28 dog 43 bat
    Step 2: 59 bat cat 28 dog 43
    Step 3: 59 bat 43 cat 28 dog
    Step 4: 59 bat 43 dog cat 28
    What will be the final step for the input?
  4. A word-and-number arrangement machine rearranges a given input following a specific rule in each step. The rule involves moving the alphabetically smallest word to the leftmost side and the numerically largest number to the rightmost side in each step. The process continues until all words are arranged in alphabetical order at the left end, and all numbers in descending order at the right end.
    Based on the pattern, answer the questions that follow the given input.
    Input: Volcano 37 19 Ash 50 Smoke 90 Dust 28
    Question: What is the sequence of numbers in Step II?

  5. A definite Input-Output process is given below. Study the arrangement rules carefully for the given input and follow them to answer the questions based on the new input. Input: 40 10 60 20 30
    Step I: 10 40 60 20 30
    Step II: 10 20 40 60 30
    Step III: 10 20 30 40 60
    Last Step: 10 20 30 40 60
    Based on the process shown above, answer the following question for the given input:
    New Input: 75 25 85 35 15
    Question: What is the element at the \(3^{rd}\) position from the left in Step II of the new input?
  6. Input: blue 42 rose 71 violet 13 orange
    Which of the following would be Step 3 if the logic is:
    Step 1: Alphabetical arrangement of words from left
    Step 2: Numbers arranged in descending order from the end?
  7. Input: 85 kite 23 lamp 62 brush
    Step 1: brush 85 kite 23 lamp 62
    Step 2: brush 85 kite 62 23 lamp
    Step 3: brush 85 kite 62 lamp 23
    Which of the following describes the logic best?
  8. A word-and-number arrangement machine rearranges a given input following a specific rule in each step. The rule involves moving the alphabetically smallest word to the leftmost side and the numerically largest number to the rightmost side in each step. The process continues until all words are arranged in alphabetical order at the left end, and all numbers in descending order at the right end.
    Based on the pattern, answer the questions that follow the given input.
    Input: Apple 41 Orange 62 85 Mango Banana 19
    Question: What is the final (last) arrangement?
  9. A word-and-number arrangement machine rearranges a given input following a specific rule in each step. The rule involves moving the alphabetically smallest word to the leftmost side and the numerically largest number to the rightmost side in each step. The process continues until all words are arranged in alphabetical order at the left end, and all numbers in descending order at the right end.
    Based on the pattern, answer the questions that follow the given input.
    Input: Shine 34 12 Gravity 91 20 Echo Bounce Mirror 73 50
    Question: Which word is placed at the 3rd position from the left in Step IV?

  10. A word-and-number arrangement machine rearranges a given input following a specific rule in each step. The rule involves moving the alphabetically smallest word to the leftmost side and the numerically largest number to the rightmost side in each step. The process continues until all words are arranged in alphabetical order at the left end, and all numbers in descending order at the right end.
    Based on the pattern, answer the questions that follow the given input.
    Input: 100 Orbit 35 Dream 44 67 Space Apple
    Question: What will be the arrangement in Step II?


Important Questions from Input Output

  1. Which option correctly explains the fundamental difference between input and output devices in a computer system?
  2. Which of the following accurately explains why a touchscreen can be considered both an input and an output device?
  3. When 12 is subtracted from a number, it reduces to its 40%. Two-fifth of that number is:

  4. After an increase of 9% in salary, a person received ₹6,300. What was his salary before the increase (consider integral part only)?

  5. If x : y = 5 : 6, then 2x + 3y : 3x + 5y is:

Need Expert Advice?
Upcoming Exams
SSC CGL
September 30, 2026
UPSSSC PET
October 23, 2026
Test Series
SSC Stenographer img
SSC
SSC Stenographer 2026 Mock Test Series (Latest Version)
1172 Tests 2 Tests Free
3053 Attempts
4.6(263)
English, Hindi

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App