Question
A cheetah can catch a deer running with a speed of 144
km/h and is 50 meters ahead of it, in 10 seconds. Find the time taken by the cheetah to catch a zebra that is 170 metres ahead of it and is running with a speed which is 70% of that of the deer.Solution
Speed of the deer = 144 km/h = 144 × (5/18) = 40 m/s Distance covered by the cheetah in 10 seconds = 50 metres + distance covered by the deer in 10 seconds = 50 + 40 × 10 = 50 + 400 = 450 metres So, speed of the cheetah = 450/10 = 45 m/s Speed of the zebra = 35 × (80/100) = 28 m/s So, relative speed of the cheetah with respect to the zebra = 45 – 28 = 17 m/s Hence, time taken by the cheetah to catch the zebra = 170/17 = 10 seconds
In shell scripting, $1 represents:
In bash, what does trap 'echo Exit' EXIT do?
Which statement correctly defines a variable in shell scripting?
Which command is used to search for a pattern in files?
Which construct allows embedding a block of text in shell scripts as input?
Named pipes (FIFOs) are created using:
To check if a file /tmp/data.txt is both readable and writable by the current user in a shell conditional, which test is correct?
Which symbol is used in shell scripting to reference a positional parameter, e.g., the first argument passed to a script?
Which special file enables interprocess communication using named pipes?
Which command is used to find the number of lines, words, and characters in a file?