Linux and Windows Operating Systems Quiz

Quiz covering Linux commands, shell scripting, and Windows registry configurations for operating system administration

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

what do SUID bits do

  1. They ensure that the associated program runs in root
  2. They ensure that the associated program runs automatically with the owner's permissions
  3. They make the file executable
  4. They add the program to the /bin directory
Question 2 Multiple Choice (Single Answer)

What does the read command do while it waits for input?

  1. Tests for command-line arguments
  2. Shifts arguments to the left
  3. Exits the program
  4. Creates a pause in the program
Question 3 Multiple Choice (Single Answer)

Which directory is the standard for storing shell scripts created by systems adminstrators?

  1. /etc
  2. /bin
  3. /dev
  4. /rc.d
Question 4 Multiple Choice (Single Answer)

What stream usually outputs error messages to the screen?

  1. stdout
  2. stderr
  3. stderr2
  4. stdouterr
Question 5 Multiple Choice (Single Answer)

Without using the shift command, what range of command-line argument variables can be referenced correctly?

  1. $0 to $9
  2. $0 to $10
  3. $1 to $9
  4. $1 to $10
Question 6 Multiple Choice (Single Answer)

If the argument list is omitted from a for command, where does it take its values from?

  1. The $* shell variable
  2. The $@ shell variable
  3. Redirected input
  4. Redirected output
Question 7 Multiple Choice (Single Answer)

Which of the following does the .seq file in the printer spooling directories do?

  1. Prevent two jobs being sent to the same printer simultaneously
  2. Keep track of all the print jobs in the spooling directory
  3. Assign job numbers to new print jobs
  4. Record the owners of print jobs
Question 8 True/False

linux allows more than one root directory

  1. True
  2. False
Question 9 True/False

It is possible to redirect the output of a process to more than one source

  1. True
  2. False
Question 10 True/False

du command displays the file system usage for the entire file system

  1. True
  2. False
Question 11 True/False

Normal users can kill init process

  1. True
  2. False
Question 12 True/False

top command can be used to control processes

  1. True
  2. False
Question 13 True/False

Shell functions are self-contained and cannot be accessed from outside the function

  1. True
  2. False
Question 14 True/False

vi is the only text editor available in linux

  1. True
  2. False
Question 15 Multiple Choice (Single Answer)

The key [HKEY_LOCAL_MACHINE\Software\Microsoft\MSLicensing] Stores information on

  1. Windows 2000 Server License
  2. Terminal Server Client Access License
  3. Microsoft Exchange Server Client License
  4. Microsoft IIS Server License
Question 16 Multiple Choice (Single Answer)

You can disable USB storage devices on your computer by locating the DWORD value "Start" under the key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR] and changing its value data to:

  1. 1
  2. 2
  3. 3
  4. 4
Question 17 Multiple Choice (Single Answer)

The applications you find running at startup are also listed under

  1. [HKEY_LOCAL_MACHINE\software\microsoft\windows\currentversion\RunOnce]
  2. [HKEY_LOCAL_MACHINE\software\microsoft\windows\currentversion\Start]
  3. [HKEY_LOCAL_MACHINE\software\microsoft\windows\currentversion\Run]
  4. [HKEY_LOCAL_MACHINE\software\microsoft\windows\currentversion\Startup]
Question 18 True/False

You can view and change Windows Pagefile settings under the following key: [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Memory Management]

  1. True
  2. False
Question 19 True/False

Dr. Watson is the automatic debugger in Windows and tries to automatically debug program errors if they occur. To turn of Dr. Watson, you should set the value of the string "Auto" under the key [HKEY_Local_Machine \Software\Microsoft\Windows NT\CurrentVersion\AeDebug] to "1"

  1. True
  2. False
Question 20 Multiple Choice (Single Answer)

How can you list the files present in a directory in alphabetical order ?

  1. ls -S
  2. By executing the script - for myfile in * do echo "$myfile" done
  3. ls -t
  4. a,b and c are correct
  5. a is incorrect and b is correct