Monday, March 30, 2020

Operating systems true or false questions set 8

Operating systems TRUE / FALSE questions for competitive exams with answers justified

Operating Systems Quiz with Answers - 8

1. Compulsory misses in a cache can be reduced with prefetching.
(a) TRUE                                                   (b) FALSE
Answer: TRUE. If the data is prefetched, it will already be in memory, so when that data is accessed the first time, there will not be a compulsory miss. [source: UCB]

2. A process in user mode cannot execute certain privileged hardware instructions.
(a) TRUE                                                   (b) FALSE
Answer: TRUE. The hardware allows privileged instruction to be executed only in kernel mode. If an attempt to execute a privileged instruction in user mode, the hardware does not execute the instruction but rather treat it as illegal and traps it to the operating system. [source: IITB]

3. Non-volatile Ram (NVRAM) can improve the durability of a file system that uses delayed writes.
(a) TRUE                                                   (b) FALSE
Answer: TRUE. Data that has been buffered for delayed writes can be stored in NVRAM. If a power failure occurs before the data is written out to disk, the data can be recovered from the NVRAM. [source: UCB]

4. A context switch can occur only after processing a timer interrupt, but not after any other system call or interrupt.
(a) TRUE                                                   (b) FALSE
Answer: FALSE. It can occur after timer interrupt, wait system call, process termination and I/O interrupt. [source: IITB]

5. Context-switching between threads of the same process requires flushing the TLB or tracking an ASID in the TLB.
(a) TRUE                                                   (b) FALSE
Answer: FALSE. Threads are part of the same address space so they have the same address translations as one another. [source: Wisconsin]



OS Interview questions with answers

solved Interview questions in operating systems

GATE questions in operating systems

TRUE/FALSE Interview questions in OS

No comments:

Post a Comment

Featured Content

Multiple choice questions in Natural Language Processing Home

MCQ in Natural Language Processing, Quiz questions with answers in NLP, Top interview questions in NLP with answers Multiple Choice Que...

All time most popular contents

data recovery