Unix/Lunux MCQ Quiz Hub

Linux Mcqs Questions Set 13

Choose a topic to test your knowledge and improve your Unix/Lunux skills

What is a context switch?





✅ Correct Answer: 1

Pid of init process





✅ Correct Answer: 2

What is the default maximum number of processes that can exist in Linux?





✅ Correct Answer: 1

How do you get parent process identification number?





✅ Correct Answer: 3

Parent process id of a deamon process is





✅ Correct Answer: 4

The process which terminates before the parent process exits becomes





✅ Correct Answer: 1

Return value of fork() system call can be:





✅ Correct Answer: 2

If the fork() system call returns -1, then it means?





✅ Correct Answer: 1

Fork returns _____ to parent process on success





✅ Correct Answer: 2

On x86-32 Linux, at which address the code segment of the program starts?





✅ Correct Answer: 2

On x86-32 Linux, at which address the user stack resides normally?





✅ Correct Answer: 4

A system has 512MB of physical memory. Which among the following is not a suitable virtual memory size for this system architecture?





✅ Correct Answer: 4

LRU stands for





✅ Correct Answer: 2

Mm_struct maintains?





✅ Correct Answer: 4

Which sytem call can be used by a user process to lock a memory so that it cannot be swapped out?





✅ Correct Answer: 2

Among these files which has an ELF format





✅ Correct Answer: 4

What is the use of strace command?





✅ Correct Answer: 1

If one of the thread in multithreaded process is blocked on an I/O, which of the following is true?





✅ Correct Answer: 1

Which one can be a real time schedule policy?





✅ Correct Answer: 1

In Linux kernel-2.6 Real time priority ranges from





✅ Correct Answer: 1

Solaris real time class priority is





✅ Correct Answer: 3

Solaris System class priority is





✅ Correct Answer: 2

Each process has unique





✅ Correct Answer: 1

File descriptor table indexes which kernel structure?





✅ Correct Answer: 1

What is the default number of files open per user process?





✅ Correct Answer: 4

The file system information is stored in





✅ Correct Answer: 2

Switch table is used by





✅ Correct Answer: 1

What is the use of fcntl function?





✅ Correct Answer: 4

Which function can be used instead of the dup2 to duplicate the file descriptor?





✅ Correct Answer: 4

printf() uses which system call





✅ Correct Answer: 3

read() system call on success returns





✅ Correct Answer: 3

Which system call is used to create a hard link?





✅ Correct Answer: 2

namei() is





✅ Correct Answer: 4

dup2(1,0)





✅ Correct Answer: 2

If a signal is received by a process, when will it be processed?





✅ Correct Answer: 2

Which signal is generated when we press control-C?





✅ Correct Answer: 1

Which signal is generated when we press ctrl-Z?





✅ Correct Answer: 2

Which signal is sent when the Child process terminates?





✅ Correct Answer: 4

Which of the following signal cannot be handled or ignored?





✅ Correct Answer: 3

Another signal that cannot be caught is:





✅ Correct Answer: 3

When real interval timer expires which signal is generated?





✅ Correct Answer: 4

Signals are handled using which system call?





✅ Correct Answer: 2

Default action of SIGSEGV is





✅ Correct Answer: 2

The kill system call is used to





✅ Correct Answer: 2

Which is true regarding pipes?





✅ Correct Answer: 1

The persistancy of a FIFO is





✅ Correct Answer: 3

Advantage of FIFO over pipe is





✅ Correct Answer: 2

What mkfifo() creats?





✅ Correct Answer: 3

System V IPC common attributes are





✅ Correct Answer: 4

Which one of the following is not system V IPC ?





✅ Correct Answer: 3