Question
'X' has 42 foldable laptops and 'Y' has 18 more than
'X'. If the ratio of 'Y' and 'Z' is 5:2, then how many foldable laptops does Z have?Solution
Number foldable laptops with 'Y' = (18 + 42) = 60
ATQ;
Number of foldable laptops with 'Z' = 2/5 x 60 = 24
Which construct allows embedding a block of text in shell scripts as input?
Extended globbing in bash allows:
In shell scripting, $1 represents:
How do you check the exit status of the last executed command in a shell?
Which command is used to read user input from the keyboard and store it in a variable?
In bash, which command is used to trap and handle signals like SIGINT?
Which command is used to search for a pattern in files?
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 command safely iterates over filenames that may contain spaces and newlines in a shell script?
Which command is used to display the contents of a file in Linux?