{
  "id": "SNAPIMP-2022-FULL-Q26",
  "exam": "SNAP",
  "year": 2022,
  "slot": "SNAP 2022",
  "official_slot": null,
  "question_no": 26,
  "section": "Logic",
  "sub_section": null,
  "topic": null,
  "sub_topic": null,
  "difficulty": "Medium",
  "ideal_time_seconds": 70,
  "set": null,
  "context_text": null,
  "question_text": "A word arrangement machine sorts a given input line of words based on their character lengths in ascending order from left to right. In each step exactly one word is moved; if two words have the same length, the one that appears first moves first. A word already in its correct place does not use a step. Input: 'the beautiful sky is falling down'. Step 1: 'is the beautiful sky falling down'. Step 2: 'is the sky beautiful falling down'. Step 3: 'is the sky down beautiful falling'. Step 4: 'is the sky down falling beautiful'. Which step will be 'an the dark walked elephant through forest' for the Input: 'an elephant walked through the dark forest'?",
  "question_html": "<p>A word arrangement machine sorts a given input line of words based on their character lengths in ascending order from left to right. In each step exactly one word is moved; if two words have the same length, the one that appears first moves first. A word already in its correct place does not use a step. Input: 'the beautiful sky is falling down'. Step 1: 'is the beautiful sky falling down'. Step 2: 'is the sky beautiful falling down'. Step 3: 'is the sky down beautiful falling'. Step 4: 'is the sky down falling beautiful'. Which step will be 'an the dark walked elephant through forest' for the Input: 'an elephant walked through the dark forest'?</p>",
  "figures": [],
  "options": [
    {
      "id": "A",
      "text": "Step 2",
      "html": "Step 2",
      "image": null
    },
    {
      "id": "B",
      "text": "Step 3",
      "html": "Step 3",
      "image": null
    },
    {
      "id": "C",
      "text": "Step 4",
      "html": "Step 4",
      "image": null
    },
    {
      "id": "D",
      "text": "Step 5",
      "html": "Step 5",
      "image": null
    }
  ],
  "answer": {
    "key": "B",
    "text": "Step 3",
    "official_key": "B",
    "cetking_key": null
  },
  "answer_verified": false,
  "solution_text": "Step 1: Word lengths in the input 'an elephant walked through the dark forest': an 2, elephant 8, walked 6, through 7, the 3, dark 4, forest 6. Step 2: Target order (ascending length, ties by original order): an (2), the (3), dark (4), walked (6), forest (6), through (7), elephant (8). Step 3: 'an' is already in place, so no step is used. Step 1 moves 'the' to 2nd place: an the elephant walked through dark forest. Step 4: Step 2 moves 'dark' to 3rd place: an the dark elephant walked through forest. Step 5: Step 3 moves 'walked' to 4th place: an the dark walked elephant through forest. This is the arrangement asked for. Why not the others: A) Step 2 still has 'elephant' before 'walked'. C) Step 4 would have moved 'forest' too: an the dark walked forest elephant through. D) Step 5 is the final sorted line, with 'through' before 'elephant'. Quick check: Compare with the worked example in the question - the first word 'the' (or 'an' here) that is already in place does not consume a step, exactly as 'is' needed one step there because it was not first. Correct answer: B.",
  "solution_html": "Step 1: Word lengths in the input 'an elephant walked through the dark forest': an 2, elephant 8, walked 6, through 7, the 3, dark 4, forest 6.<br>Step 2: Target order (ascending length, ties by original order): an (2), the (3), dark (4), walked (6), forest (6), through (7), elephant (8).<br>Step 3: 'an' is already in place, so no step is used. Step 1 moves 'the' to 2nd place: an the elephant walked through dark forest.<br>Step 4: Step 2 moves 'dark' to 3rd place: an the dark elephant walked through forest.<br>Step 5: Step 3 moves 'walked' to 4th place: an the dark walked elephant through forest. This is the arrangement asked for.<br>Why not the others: A) Step 2 still has 'elephant' before 'walked'. C) Step 4 would have moved 'forest' too: an the dark walked forest elephant through. D) Step 5 is the final sorted line, with 'through' before 'elephant'.<br>Quick check: Compare with the worked example in the question - the first word 'the' (or 'an' here) that is already in place does not consume a step, exactly as 'is' needed one step there because it was not first.<br>Correct answer: B.",
  "g_strategy": {
    "note": "Cetking™'s famous G Strategy: Sacred Art of Shortcut & Sacred Art of Tukka Shortcut — available after login on cetking.com.",
    "login_url": "https://cetking.com/login/",
    "page_url": "https://cetking.com/snap-2022-q26-a-word-arrangement-machine-sorts-a/#q-SNAPIMP-2022-FULL-Q26"
  },
  "page_url": "https://cetking.com/snap-2022-q26-a-word-arrangement-machine-sorts-a/#q-SNAPIMP-2022-FULL-Q26",
  "json_url": "https://cetking.com/api/snap/q/SNAPIMP-2022-FULL-Q26.json",
  "publisher": {
    "name": "Cetking",
    "url": "https://cetking.com"
  }
}