Question
βXβ and βYβ started a business together. The
amount invested by βXβ is 40% more than that of βYβ, while βYβ invested his amount for 20% less time than βXβ. What is the ratio of the profits earned by βXβ and βYβ after a year?Solution
ATQ,
Let the amount invested by βYβ be Rs. a
Therefore, amount invested by βXβ = Rs. 1.4a
Let the time for which βXβ invested be βbβ months
Therefore, time for which βYβ invested = 0.8b months
Ratio of the profits earned = (1.4a Γ b):(a Γ 0.8b) = (1.4b):(0.8b) = 14:8 = 7:4
Which command displays the manual page for another command?
Extended globbing in bash allows:
A Here-Document in shell is denoted by:
Slowly Changing Dimension (SCD) is used to:
Which command is used to check the current working directory in Linux?
Which command is used to make a shell script executable?
Which operator enables process substitution in bash (e.g., diff <(cmd1) <(cmd2))?
Which of the following is the syntax for an `if` statement checking if a variable `NUM` is numerically equal to 5?
Which construct allows embedding a block of text in shell scripts as input?
What is the primary purpose of the "shebang" line `#!/bin/bash` at the beginning of a shell script?