Wednesday, March 25, 2020

Operating systems questions set 1

Operating systems TRUE / FALSE questions for competitive exams



Operating Systems Quiz with Answers - 1

1. Threads within the same process can share data with one another by passing pointers to objects on their stacks.
(a) TRUE                                                   (b) FALSE
Answer: TRUE. Threads in the same process share an address space and can communicate via shared-memory (reading and writing to shared addresses). Thus, objects allocated on the stack for one thread have addresses that can be forwarded to other threads as pointers. [source: UCB]

2. A user-level process cannot modify its own page table entries.
(a) TRUE                                                   (b) FALSE
Answer: TRUE. If a user-level process was allowed to modify its own page table entries, then it could access physical memory being used by other processes or the OS kernel. Kernel mode is required to modify page table entries. [source: UCB]

3. Immediately after a process has been forked, the same variable in both the parent and the child will have the same virtual memory address but different physical memory addresses.
(a) TRUE                                                   (b) FALSE
Answer: FALSE. Initially, the child and parent have the same physical memory mapped into their address spaces. The page tables for this memory are marked as read-only so that a copy-on-write process will create distinct physical copies only for pages that differ between parent and child. [source: UCB]

4. “Hyper-threading” refers to the situation in which a modern operating system allows thousands of threads to access the same address space.
(a) TRUE                                                   (b) FALSE
Answer: FALSE. Hyper-threading refers to the functionality (usually on x86 processors) that allows multiple physical threads (with distinct registers, program counters, etc) to share the functional units in a single pipeline. [source: UCB]

5. The scheduler is the part of an Operating System that determines the priority of each process.
(a) TRUE                                                   (b) FALSE
Answer: FALSE. The scheduler schedules processes based on user-specified priorities. [source: UCB]

***********


 

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