Sequential Output Tracing Questions and Answers

Practice Mode
Showing 10 of 50 questions
Q1
In a certain input-output machine, the input is "go 15 up 23 now 7". Step I – numbers are arranged in ascending order. Step II – words are arranged in alphabetical order. What will be the final output?
  • A A) 7 15 23 go now up
  • B B) go now up 7 15 23
  • C C) 7 go 15 now 23 up
  • D D) up go now 23 15 7
Answer: Option A
Explanation: Numbers first (ascending), then words alphabetically.
Q2
Input: "sun 18 shine 5 bright 9" Step I: Numbers arranged in ascending order. Step II: Words arranged in reverse alphabetical order. Final Output?
  • A A) 5 9 18 bright shine sun
  • B B) bright shine sun 5 9 18
  • C C) 5 9 18 sun shine bright
  • D D) 18 9 5 sun shine bright
Answer: Option A
Explanation: Combine both steps in correct sequence.
Q3
Input: "lamp 42 candle 8 bulb 12" If each step arranges one number (ascending) and one word (alphabetically), what will be Step II?
  • A A) 8 bulb 12 candle 42 lamp
  • B B) 8 bulb 12 candle lamp 42
  • C C) 8 bulb 12 candle 42 lamp
  • D D) 8 bulb 42 candle 12 lamp
Answer: Option A
Explanation: Two elements arranged per step.
Q4
Input: "red 7 blue 15 green 3" Step I: Smallest number moves to the front. Step II: Word next to the smallest number moves to front. What is Step I output?
  • A A) 3 green red 7 blue 15
  • B B) green 3 red 7 blue 15
  • C C) red 3 blue 7 green 15
  • D D) 7 red 15 blue 3 green
Answer: Option A
Explanation: Only number moved first, not its word.
Q5
Input: "pen 5 pencil 12 eraser 9" Rule: Odd numbers arranged ascending, even numbers descending. Final output?
  • A A) 5 9 12 pen pencil eraser
  • B B) 5 9 12 eraser pen pencil
  • C C) 5 9 12 pencil eraser pen
  • D D) 5 9 12 pen eraser pencil
Answer: Option D
Explanation: Odd first ascending → 5, 9; then even descending → 12.
Q6
Input: "rose 10 lily 8 daisy 12" Rule: Numbers ascending, corresponding words follow them. Final Output?
  • A A) 8 lily 10 rose 12 daisy
  • B B) lily 8 rose 10 daisy 12
  • C C) 8 lily 10 rose 12 daisy
  • D D) daisy 12 rose 10 lily 8
Answer: Option A
Explanation: Arrange number-word pairs.
Q7
Input: "fox 12 zebra 3 dog 9" Step I – Smallest number comes first with its word. What is Step I output?
  • A A) zebra 3 fox 12 dog 9
  • B B) 3 zebra fox 12 dog 9
  • C C) fox 12 dog 9 zebra 3
  • D D) dog 9 zebra 3 fox 12
Answer: Option A
Explanation: Smallest number and its word move together.
Q8
Input: "train 40 bus 10 car 20" Steps: Step I – smallest number with word moves to front. Step II – next smallest number follows. Final output?
  • A A) bus 10 car 20 train 40
  • B B) car 20 bus 10 train 40
  • C C) train 40 car 20 bus 10
  • D D) bus car train 10 20 40
Answer: Option A
Explanation: Ascending order of number-word pairs.
Q9
Input: "book 25 copy 18 page 12" Step I – Arrange numbers in descending order with their words. Final output?
  • A A) 25 book 18 copy 12 page
  • B B) 12 page 18 copy 25 book
  • C C) book 25 copy 18 page 12
  • D D) 25 book 18 copy 12 page
Answer: Option A
Explanation: Descending means largest first.
Q10
Input: "orange 2 apple 5 banana 4" Rule: Words alphabetically, numbers increasing. Output?
  • A A) apple 2 banana 4 orange 5
  • B B) apple 5 banana 4 orange 2
  • C C) apple 4 banana 2 orange 5
  • D D) apple 2 banana 4 orange 5
Answer: Option A
Explanation: Match word and number sequence.
Questions and Answers for Competitive Exams Various Entrance Test