Answer:
The length of the hallway is 10 m.
Step-by-step explanation:
Given:
Time taken to cover 1 km = 2.5 hours
Distance covered in 2.5 hours = 1 km
Therefore, speed of robot = 
Now, speed is constant.
Now, time taken to cover the length of hallway = 90 s
Speed of the robot = 0.4 km/h
Converting 0.4 km/h to m/s, we multiply by the factor
. This gives,

Now, distance of the hallway is equal to the product of speed and time. So,
Distance of hallway = Speed
Time
Distance of hallway = 
Therefore, the length of the hallway is 10 m.