Question
The average of 36 numbers is 75. If every number is
multiplied by 9, what will be the average of the resulting numbers?Solution
ATQ,
If the average of given numbers is 'k' and every number is multiplied by 'n', then the new average becomes 'n Γ k'.
Hence, required average = 75 Γ 9 = 675.
Which command is used to display the current working directory in a Unix-like operating system?
How do you access the value of a variable named `USERNAME` in a shell script?
Which command is used to display the contents of a file in Linux?
Which command is used to display the last few lines of a file?
Which command is used to display the current working directory in a Unix-like operating system?
Which symbol is used to comment a single line in shell scripts?
What is the primary purpose of the "shebang" line `#!/bin/bash` at the beginning of a shell script?
Which symbol is used in shell scripting to reference a positional parameter, e.g., the first argument passed to a script?
What does the command `chmod 755 myscript.sh` set as permissions for `myscript.sh`?
In a POSIX shell script, which construct correctly tests whether variable x is an empty string?