Explore topic-wise InterviewSolutions in .

This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.

101.

A fork system call will fail if ______________(a) the previously executed statement is also a fork call(b) the limit on the maximum number of processes in the system would be executed(c) the limit on the minimum number of processes that can be under execution by a single user would be executed(d) all of the mentionedI got this question in my homework.The doubt is from The Fork and exec System Calls topic in chapter The Linux System of Operating System

Answer»

The CORRECT CHOICE is (b) the limit on the maximum NUMBER of PROCESSES in the system would be executed

The EXPLANATION: None.

102.

Which of the following calls never returns an error?(a) getpid(b) fork(c) ioctl(d) openI have been asked this question in an interview.My enquiry is from The Fork and exec System Calls in portion The Linux System of Operating System

Answer»

The CORRECT CHOICE is (a) getpid

The EXPLANATION is: NONE.

103.

Which of the following system calls transforms executable binary file into a process?(a) fork(b) exec(c) ioctl(d) longjmpI had been asked this question during an internship interview.The above asked question is from The Fork and exec System Calls topic in chapter The Linux System of Operating System

Answer»

The CORRECT CHOICE is (B) exec

For EXPLANATION: NONE.

104.

Which of the following system calls does not return control to the calling point, on termination?(a) fork(b) exec(c) ioctl(d) longjmpThe question was asked in examination.My question comes from The Fork and exec System Calls topic in section The Linux System of Operating System

Answer»

The correct answer is (B) exec

To EXPLAIN I WOULD say: None.

105.

In the Many to Many models when a thread performs a blocking system call ___________(a) other threads are strictly prohibited from running(b) other threads are allowed to run(c) other threads only from other processes are allowed to run(d) none of the mentionedThis question was posed to me in unit test.Enquiry is from Multi Threading Models in chapter The Linux System of Operating System

Answer»

Correct OPTION is (B) other THREADS are allowed to run

The best explanation: None.

106.

In the Many to Many model true concurrency cannot be gained because ___________(a) the kernel can schedule only one thread at a time(b) there are too many threads to handle(c) it is hard to map threads with each other(d) none of the mentionedI have been asked this question in an interview.The question is from Multi Threading Models topic in chapter The Linux System of Operating System

Answer»

The correct ANSWER is (a) the kernel can schedule only one thread at a time

Best EXPLANATION: NONE.

107.

When is the Many to One model at an advantage?(a) When the program does not need multithreading(b) When the program has to be multi-threaded(c) When there is a single processor(d) None of the mentionedThe question was posed to me during an interview.This question is from Multi Threading Models topic in portion The Linux System of Operating System

Answer» RIGHT ANSWER is (a) When the program does not need multithreading

Best EXPLANATION: None.
108.

Which of the following is the drawback of the One to One Model?(a) increased concurrency provided by this model(b) decreased concurrency provided by this model(c) creating so many threads at once can crash the system(d) creating a user thread requires creating the corresponding kernel threadI have been asked this question during an online exam.I need to ask this question from Multi Threading Models in chapter The Linux System of Operating System

Answer»

Right OPTION is (d) creating a USER THREAD requires creating the corresponding kernel thread

To explain I would say: NONE.

109.

In the One to One model when a thread makes a blocking system call ___________(a) other threads are strictly prohibited from running(b) other threads are allowed to run(c) other threads only from other processes are allowed to run(d) none of the mentionedI had been asked this question in an international level competition.My question comes from Multi Threading Models topic in portion The Linux System of Operating System

Answer»

Right OPTION is (b) other THREADS are allowed to run

To explain: NONE.

110.

The One to One model allows ___________(a) increased concurrency(b) decreased concurrency(c) increased or decreased concurrency(d) concurrency equivalent to other modelsThis question was posed to me in semester exam.My question is based upon Multi Threading Models in chapter The Linux System of Operating System

Answer» CORRECT ANSWER is (a) INCREASED concurrency

Best EXPLANATION: NONE.
111.

In the Many to One model, multiple threads are unable to run in parallel on multiprocessors because of ___________(a) only one thread can access the kernel at a time(b) many user threads have access to just one kernel thread(c) there is only one kernel thread(d) none of the mentionedThis question was addressed to me in a job interview.This question is from Multi Threading Models in portion The Linux System of Operating System

Answer»

The correct ANSWER is (a) only ONE thread can access the kernel at a time

To EXPLAIN: NONE.

112.

In the Many to One model, if a thread makes a blocking system call ___________(a) the entire process will be blocked(b) a part of the process will stay blocked, with the rest running(c) the entire process will run(d) none of the mentionedThis question was addressed to me in an online interview.Origin of the question is Multi Threading Models in chapter The Linux System of Operating System

Answer» RIGHT ANSWER is (a) the ENTIRE process will be blocked

To EXPLAIN: None.
113.

The model in which one user-level thread is mapped to many kernel level threads is called ___________(a) Many to One model(b) One to Many model(c) Many to Many model(d) One to One modelThe question was posed to me by my school teacher while I was bunking the class.My question is taken from Multi Threading Models in division The Linux System of Operating System

Answer»

The CORRECT ANSWER is (b) One to MANY model

The explanation: NONE.

114.

The model in which one kernel thread is mapped to many user-level threads is called ___________(a) Many to One model(b) One to Many model(c) Many to Many model(d) One to One modelI had been asked this question in quiz.This question is from Multi Threading Models topic in section The Linux System of Operating System

Answer»

The correct choice is (a) MANY to ONE model

Easiest explanation - NONE.

115.

Which of the following is FALSE?(a) Context switch time is longer for kernel level threads than for user level threads(b) User level threads do not need any hardware support(c) Related kernel level threads can be scheduled on different processors in a multiprocessor system(d) Blocking one kernel level thread blocks all other related threadsThe question was posed to me by my school teacher while I was bunking the class.Origin of the question is User and Kernel Threads in section The Linux System of Operating System

Answer» RIGHT option is (d) Blocking one kernel LEVEL THREAD blocks all other RELATED threads

Easiest explanation - None.
116.

If a kernel thread performs a blocking system call, ____________(a) the kernel can schedule another thread in the application for execution(b) the kernel cannot schedule another thread in the same application for execution(c) the kernel must schedule another thread of a different application for execution(d) the kernel must schedule another thread of the same application on a different processorThe question was posed to me during an online exam.Query is from User and Kernel Threads topic in portion The Linux System of Operating System

Answer»

Correct answer is (a) the kernel can SCHEDULE ANOTHER thread in the application for execution

To explain I would say: NONE.

117.

Because the kernel thread management is done by the Operating System itself ___________(a) kernel threads are faster to create than user threads(b) kernel threads are slower to create than user threads(c) kernel threads are easier to manage as well as create then user threads(d) none of the mentionedThe question was asked during an interview.This intriguing question comes from User and Kernel Threads in chapter The Linux System of Operating System

Answer»

Right ANSWER is (B) KERNEL THREADS are slower to create than user threads

The best explanation: None.

118.

If the kernel is single threaded, then any user level thread performing a blocking system call will ___________(a) cause the entire process to run along with the other threads(b) cause the thread to block with the other threads running(c) cause the entire process to block even if the other threads are available to run(d) none of the mentionedThis question was addressed to me during an interview.I'm obligated to ask this question of User and Kernel Threads in division The Linux System of Operating System

Answer»

The CORRECT OPTION is (c) CAUSE the entire PROCESS to block EVEN if the other threads are available to run

Explanation: None.

119.

The kernel is _______ of user threads.(a) a part of(b) the creator of(c) unaware of(d) aware ofI have been asked this question during an interview for a job.My doubt is from User and Kernel Threads in division The Linux System of Operating System

Answer» RIGHT ANSWER is (C) UNAWARE of

Explanation: NONE.
120.

Multithreading on a multi – CPU machine ___________(a) decreases concurrency(b) increases concurrency(c) doesn’t affect the concurrency(d) can increase or decrease the concurrencyThis question was addressed to me in quiz.This question is from User and Kernel Threads topic in portion The Linux System of Operating System

Answer» RIGHT CHOICE is (B) increases concurrency

The best I can explain: NONE.
121.

Resource sharing helps ___________(a) share the memory and resources of the process to which the threads belong(b) an application have several different threads of activity all within the same address space(c) reduce the address space that a process could potentially use(d) all of the mentionedI have been asked this question in examination.This is a very interesting question from User and Kernel Threads in section The Linux System of Operating System

Answer» CORRECT ANSWER is (d) all of the mentioned

The EXPLANATION: NONE.
122.

Multithreading an interactive program will increase responsiveness to the user by ___________(a) continuing to run even if a part of it is blocked(b) waiting for one part to finish before the other begins(c) asking the user to decide the order of multithreading(d) none of the mentionedI had been asked this question in examination.I need to ask this question from User and Kernel Threads in section The Linux System of Operating System

Answer»

The correct CHOICE is (a) CONTINUING to RUN even if a part of it is blocked

Explanation: NONE.

123.

A process having multiple threads of control implies ___________(a) it can do more than one task at a time(b) it can do only one task at a time, but much faster(c) it has to use only one thread per process(d) none of the mentionedThis question was addressed to me by my school principal while I was bunking the class.I'm obligated to ask this question of User and Kernel Threads in portion The Linux System of Operating System

Answer» RIGHT option is (a) it can do more than ONE task at a time

The BEST EXPLANATION: None.
124.

A heavy weight process ___________(a) has multiple threads of execution(b) has a single thread of execution(c) can have multiple or a single thread for execution(d) none of the mentionedI had been asked this question in my homework.My doubt stems from User and Kernel Threads topic in division The Linux System of Operating System

Answer»

The CORRECT OPTION is (B) has a single thread of execution

Explanation: None.

125.

A thread shares its resources(like data section, code section, open files, signals) with ___________(a) other process similar to the one that the thread belongs to(b) other threads that belong to similar processes(c) other threads that belong to the same process(d) all of the mentionedI got this question in an online quiz.Query is from User and Kernel Threads topic in section The Linux System of Operating System

Answer»

The CORRECT answer is (C) other threads that BELONG to the same process

Easy EXPLANATION - None.

126.

A thread is also called ___________(a) Light Weight Process(LWP)(b) Heavy Weight Process(HWP)(c) Process(d) None of the mentionedThe question was asked in an interview for job.My question is taken from User and Kernel Threads topic in section The Linux System of Operating System

Answer» RIGHT choice is (a) LIGHT WEIGHT Process(LWP)

Easiest explanation - NONE.
127.

Thread synchronization is required because ___________(a) all threads of a process share the same address space(b) all threads of a process share the same global variables(c) all threads of a process can share the same files(d) all of the mentionedThe question was posed to me in semester exam.This key question is from Threads topic in chapter The Linux System of Operating System

Answer» RIGHT CHOICE is (d) all of the mentioned

The BEST EXPLANATION: NONE.
128.

The register context and stacks of a thread are deallocated when the thread?(a) terminates(b) blocks(c) unblocks(d) spawnsI had been asked this question in an internship interview.Enquiry is from Threads topic in portion The Linux System of Operating System

Answer» RIGHT CHOICE is (a) terminates

The EXPLANATION is: NONE.
129.

Which one of the following is not a valid state of a thread?(a) running(b) parsing(c) ready(d) blockedI got this question during an interview.This intriguing question comes from Threads in division The Linux System of Operating System

Answer»

The CORRECT CHOICE is (B) parsing

Explanation: NONE.

130.

Termination of the process terminates ___________(a) first thread of the process(b) first two threads of the process(c) all threads within the process(d) no thread within the processThis question was posed to me in a national level competition.This interesting question is from Threads in chapter The Linux System of Operating System

Answer»

Right choice is (C) all THREADS WITHIN the process

Easy explanation - NONE.

131.

The jacketing technique is used to ___________(a) convert a blocking system call into non blocking system call(b) create a new thread(c) communicate between threads(d) terminate a threadI have been asked this question during an internship interview.My question is based upon Threads in division The Linux System of Operating System

Answer»

Right CHOICE is (a) convert a blocking system CALL into NON blocking system call

Best explanation: NONE.

132.

When the event for which a thread is blocked occurs?(a) thread moves to the ready queue(b) thread remains blocked(c) thread completes(d) a new thread is providedThis question was posed to me by my school teacher while I was bunking the class.This interesting question is from Threads topic in section The Linux System of Operating System

Answer» RIGHT choice is (a) thread MOVES to the READY queue

The explanation is: NONE.
133.

The time required to create a new thread in an existing process is ___________(a) greater than the time required to create a new process(b) less than the time required to create a new process(c) equal to the time required to create a new process(d) none of the mentionedI got this question in an interview.This is a very interesting question from Threads in chapter The Linux System of Operating System

Answer»

Right CHOICE is (b) LESS than the time required to CREATE a new process

Easy EXPLANATION - None.

134.

If one thread opens a file with read privileges then ___________(a) other threads in the another process can also read from that file(b) other threads in the same process can also read from that file(c) any other thread can not read from that file(d) all of the mentionedThe question was asked in semester exam.The above asked question is from Threads topic in section The Linux System of Operating System

Answer» RIGHT ANSWER is (b) other threads in the same PROCESS can also READ from that file

The best explanation: None.
135.

A process can be ___________(a) single threaded(b) multithreaded(c) both single threaded and multithreaded(d) none of the mentionedThe question was asked in my homework.My question is from Threads topic in section The Linux System of Operating System

Answer»

The CORRECT CHOICE is (C) both single threaded and multithreaded

Explanation: NONE.

136.

Which one of the following is not shared by threads?(a) program counter(b) stack(c) both program counter and stack(d) none of the mentionedI had been asked this question during an interview.This interesting question is from Threads in portion The Linux System of Operating System

Answer» CORRECT answer is (C) both PROGRAM counter and stack

To explain I WOULD say: NONE.
137.

Which one of the following is not a linux distribution?(a) debian(b) gentoo(c) open SUSE(d) multicsThe question was asked during an interview for a job.My question is based upon Linux in division The Linux System of Operating System

Answer»

The CORRECT OPTION is (d) multics

Explanation: NONE.

138.

What is Linux?(a) single user, single tasking(b) single user, multitasking(c) multi user, single tasking(d) multi user, multitaskingI got this question in semester exam.I need to ask this question from Linux topic in division The Linux System of Operating System

Answer»

The CORRECT answer is (d) multi USER, multitasking

The EXPLANATION is: NONE.

139.

Standard set of functions through which interacts with kernel is defined by ___________(a) system libraries(b) kernel code(c) compilers(d) utility programsI have been asked this question in semester exam.My enquiry is from Linux in division The Linux System of Operating System

Answer»

The CORRECT OPTION is (a) SYSTEM libraries

For EXPLANATION: NONE.

140.

Which desktop environment is not used in any linux distribution?(a) gnome(b) kde(c) unity(d) none of the mentionedThe question was asked by my school teacher while I was bunking the class.This interesting question is from Linux in division The Linux System of Operating System

Answer» CORRECT OPTION is (d) NONE of the mentioned

To EXPLAIN: None.
141.

The first process launched by the linux kernel is ___________(a) init process(b) zombie process(c) batch process(d) boot processI have been asked this question in a job interview.This key question is from Linux topic in section The Linux System of Operating System

Answer»

Correct CHOICE is (a) INIT process

The BEST explanation: NONE.

142.

Which one of the following bootloader is not used by linux?(a) GRUB(b) LILO(c) NTLDR(d) None of the mentionedI have been asked this question in unit test.My question is from Linux topic in division The Linux System of Operating System

Answer» RIGHT CHOICE is (C) NTLDR

To EXPLAIN: NONE.
143.

Which binary format is supported by linux?(a) a.out(b) elf(c) both a.out and ELF(d) none of the mentionedThe question was asked during an interview.The query is from Linux in section The Linux System of Operating System

Answer» CORRECT OPTION is (C) both a.out and ELF

For EXPLANATION: NONE.
144.

Which one of the following linux file system does not support journaling feature?(a) ext2(b) ext3(c) ext4(d) none of the mentionedI have been asked this question in semester exam.The origin of the question is Linux topic in division The Linux System of Operating System

Answer» RIGHT CHOICE is (a) ext2

To EXPLAIN: NONE.
145.

The first linux kernel which supports the SMP hardware?(a) linux 0.1(b) linux 1.0(c) linux 1.2(d) linux 2.0I got this question by my college director while I was bunking the class.Question is from Linux in division The Linux System of Operating System

Answer» CORRECT CHOICE is (d) LINUX 2.0

Explanation: NONE.
146.

Linux uses a time-sharing algorithm ___________(a) to pair preemptive scheduling between multiple processes(b) for tasks where absolute priorities are more important than fairness(c) all of the mentioned(d) none of the mentionedI got this question by my school teacher while I was bunking the class.The query is from Linux topic in section The Linux System of Operating System

Answer» CORRECT OPTION is (a) to pair PREEMPTIVE scheduling between multiple processes

The best I can explain: NONE.