Linux Multiple Choice Questions – Best Linux MCQs

Linux multiple choice questions for interview and Linux exams preparation. Most of the Linux MCQs are asked in the interviews and they have answers and explanations.


Q) Core of Linux operating system is

  1. Kernel
  2. Shell
  3. Terminal
  4. Command

Answer: 1

The kernel is the core of the system and manages the CPU, memory, and peripheral devices. The kernel is the “lowest” level of the OS.


Q) Which one provide command interpreter environment?

  1. Kernel
  2. Shell
  3. CPU
  4. Hardware

Answer: 2

Shell provides a command interpreter environment to the Linux kernel for giving instructions.


Q) Which directory contains configuration files in Linux?

  1. /etc/
  2. /bin/
  3. /dev/
  4. /root/

Answer: 1
/etc/ — Contains configuration files and directories.
/bin/ — Used to store user commands
/dev/ — Stores device files.
/root/ — The home directory of root, the superuser.


Q) How many times below program will print hello?

main()
	{ 
		fork();
		fork();
		fork();
		printf("hello");
	}
  1. 3
  2. 6
  3. 8
  4. 9

Answer: 3
Total Number of Processes = 2^n where n is number of fork system calls. So here n = 3.

Number of processes = 2^3 = 8 or 23=8.


Q) Process which terminates before the parent process exits is known as

  1. Orphan
  2. Zombie
  3. Child
  4. None of the above

Answer: 2
Zombie process. Whereas An orphan process is a computer process whose parent process has finished or terminated, though it remains running itself.


Q) What is maximum filename size in Linux in bytes?

  1. 32
  2. 64
  3. 128
  4. 255

Answer: 4
Linux has a maximum filename length of 255 characters for most filesystems (including EXT4), and a maximum path of 4096 characters


Related Posts