Linux Multiple Choice Questions – Best Linux MCQs


Q) Context switching in Linux is

  1. Kernel switches from executing one process to another.
  2. Process switches from kernel mode to user mode.
  3. Process switches from user mode to kernel mode.
  4. None of the other option listed for this question

Answer: 3
In computing, a context switch is the process of storing the state of a process or of a thread, so that it can be restored and execution resumed from the same point later. This allows multiple processes to share a single CPU, and is an essential feature of a multitasking operating system.
The precise meaning of the phrase “context switch” varies significantly in usage. In a multitasking context, it refers to the process of storing the system state for one task, so that that task can be paused and another task resumed. A context switch can also occur as the result of an interrupt, such as when a task needs to access disk storage, freeing up CPU time for other tasks. Some operating systems also require a context switch to move between user mode and kernel mode tasks. Wikipedia


Q) Linux operating system is virus free.

  1. true
  2. false

Answer: 2
Linux is known to have least number of Viruses.


Q) Maximum number of processes in Linux is

  1. 32768
  2. 1024
  3. 2048
  4. 16384

Answer: 1
On 32-bit platforms, 32768 is the maximum value for pid_max. On 64-bit systems, pid_max can be set to any value up to 2^22 (PID_MAX_LIMIT, approximately 4 million)


Related Posts