Question
Ram gave a discount of 20% on the marked price of an
item and still gained 10.4%. How much would have Ram gained, if he sold the item at the marked price?Solution
Let the MP =100. Discount =20% SP =100×80/100=80Rs. At the 10.4% profit- CP =80×100/110.4 CP=72.4. If he sold the item at the marked price, then the selling price =100 Profit =100-72.4=27.6 Profit % =27.6/72.4) ×100 =38.1%.
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?