Question
A man purchases some pens at a rate of 4 for ₹14 and
an equal number at a rate of 5 for ₹18. He sells all the pens at a rate of 6 for ₹20. What is his overall percentage gain or loss?Solution
Let he buys total number of pens (LCM of 4, 5, 6) = 60 (30-30 of both type) Costing of 30 pens at 4 for Rs 1 4 = Rs 105 Costing of 30 pens at 5 for Rs 18 = Rs 108 Total cost price of 60 pens = 105+108 = Rs 213 Selling price of 60 pens at 6 for Rs 20 = 200
Which symbol is used to make a script executable in Linux?
If a program needs to read data from a file, which system call would it typically use?
How do you access the value of a variable named `USERNAME` in a shell script?
What does $# represent in a shell script?
Named pipes (FIFOs) are created using:
Which symbol is used for logical AND in shell scripting?
In shell scripting, which command is used to read input from the user?
How can you pass command-line arguments to a shell script?
Which operator is used for string equality comparison within `test` or `[` commands in shell scripting?
Which command is used to display the current working directory in a Unix-like operating system?