Question
Two numbers are in the ratio 6:5. After adding 3 and 5
to them respectively the ratio becomes 2:3. Find the bigger number.Solution
Let the two number’s be 6x and 5x. According to the question, => (6x+3)/(5x+5) = 2/3 => 18x + 9 = 10x + 10 => x = 1/8 So, the bigger number will be, => 6x = 6 × (1/8) = 3/4
In Bash, which syntax is used for arithmetic expansion?
Which symbol is used for logical AND in shell scripting?
Extended globbing in bash allows:
What is the exit status code of a successfully executed command in Linux shell?
Which statement correctly defines a variable in shell scripting?
What does the #!/bin/bash line at the beginning of a shell script indicate?
Which operator is used to append output to a file?
Named pipes (FIFOs) are created using:
Which signal is sent by default when using kill without arguments?
Which command is used to display the last few lines of a file?