Question
Which of the following memory types is volatile, meaning
it loses its content when the power is turned off?Solution
Random Access Memory is volatile, meaning it requires power to retain its data. Once the power is turned off, the data in RAM is lost. ROM (Read-Only Memory) is non-volatile and retains data, while flash memory and hard drives also retain data after power loss.
Which command is used to display the number of lines in a file?
What will be the output of the following script snippet?
  for item in Apple Banana Cherry; do
 echo $item
done
Which of the following is a system call used to create a new process in Unix-like operating systems?
Which of the following is the syntax for an `if` statement checking if a variable `NUM` is numerically equal to 5?
In a POSIX shell script, which construct correctly tests whether variable x is an empty string?
What does $# represent in a shell script?
Which command is used to display all currently running processes in Linux?
Which operator enables process substitution?
Which command is used to read user input from the keyboard and store it in a variable?
Which character is used to denote a single-line comment in a shell script?