Question
A 120-meter-long train crosses a pole in 6 seconds. How
much time will it take to cross a 180-meter-long platform?Solution
Speed of the train = Length of the train / Time taken to cross the pole = 120/6 = 20 m/s. Total distance to be covered when crossing the platform = Length of train + Length of platform = 120 + 180 = 300 meters. Time taken = Distance / Speed = 300/20 = 15 seconds. Correct Option: b
Which construct replaces a command with its output in a POSIX shell?
Star schema consists of:
In Bash, which syntax is used for arithmetic expansion?
How do you access the value of a variable named `USERNAME` in a shell script?
Which command is used to search text patterns in files?
Which command is used to display the number of lines in a file?
How do you check the exit status of the last executed command in a shell?
Which command is used to display the first few lines of a file?
In shell scripting, how do you assign the string "Hello World" to a variable named `MESSAGE`?
Which command is used to display the last 10 lines of a file in Linux?