A child has to cross road and reach the school opposite to his house. The…

2023

A child has to cross road and reach the school opposite to his house. The child looks on right and left before crossing the road. On observing that no vehicle is coming, he crosses the road and reaches school. What action of algorithm is represented by the child in the above situation?

Answer: C. SelectionThe child checks a condition: whether any vehicle is coming or not. Based on that condition: If no vehicle is coming, he crosses the road. Otherwise, he…

  1. A.

    Input

  2. B.

    Output

  3. C.

    Selection

  4. D.

    Repetition

  5. E.

    Question not attempted

Attempted by 694 students.

Show answer & explanation

Correct answer: C

The child checks a condition: whether any vehicle is coming or not.
Based on that condition:

  • If no vehicle is coming, he crosses the road.

  • Otherwise, he waits.

This is an example of Selection, where a decision is made based on a condition (if-else logic).

Explore the full course: Isro

Loading lesson…