Quiznetik
Operating System (OS) | Set 6
1. A block device transfers
A. bytes one by one
B. block of bytes as a unit
C. with unpredictable response times
D. none of the mentioned
Correct : B. block of bytes as a unit
2. What is a dedicated device?
A. opposite to a sharable device
B. same as a sharable device
C. can be used concurrently by several processes
D. none of the mentioned
Correct : A. opposite to a sharable device
3. A keyboard is an example of a device that is accessed through a interface.
A. block stream
B. set of blocks
C. character stream
D. none of the mentioned
Correct : C. character stream
4. In polling
A. busy – wait cycles wait for i/o from device
B. interrupt handler receives interrupts
C. interrupt-request line is triggered by i/o device
D. all of the mentioned
Correct : A. busy – wait cycles wait for i/o from device
5. A non blocking system call
A. halts the execution of the application for an extended time
B. does not halt the execution of the application
C. does not block the interrupts
D. none of the mentioned
Correct : B. does not halt the execution of the application
6. An asynchronous call
A. returns immediately, without waiting for the i/o to complete
B. does not return immediately and waits for the i/o to complete
C. consumes a lot of time
D. is too slow
Correct : A. returns immediately, without waiting for the i/o to complete
7. Buffering is done to
A. cope with device speed mismatch
B. cope with device transfer size mismatch
C. maintain copy semantics
D. all of the mentioned
Correct : D. all of the mentioned
8. Caching is spooling.
A. same as
B. not the same as
C. all of the mentioned
D. none of the mentioned
Correct : B. not the same as
9. Caching
A. holds a copy of the data
B. is fast memory
C. holds the only copy of the data
D. holds output for a device
Correct : A. holds a copy of the data
10. Spooling
A. holds a copy of the data
B. is fast memory
C. holds the only copy of the data
D. holds output for a device
Correct : C. holds the only copy of the data
11. The keeps state information about the use of I/O components.
A. cpu
B. os
C. kernel
D. shell
Correct : C. kernel
12. The kernel data structures include
A. process table
B. open file table
C. close file table
D. all of the mentioned
Correct : B. open file table
13. If the number of cycles spent busy – waiting is not excessive, then
A. interrupt driven i/o is more efficient than programmed i/o
B. programmed i/o is more efficient than interrupt driven i/o
C. both programmed and interrupt driven i/o are equally efficient
D. none of the mentioned
Correct : B. programmed i/o is more efficient than interrupt driven i/o
14. A is a full duplex connection between a device driver and a user level process.
A. bus
B. i/o operation
C. stream
D. flow
Correct : C. stream
15. The first linux kernel which supports the SMP hardware?
A. linux 0.1
B. linux 1.0
C. linux 1.2
D. linux 2.0
Correct : D. linux 2.0
16. Which one of the following linux file system does not support journaling feature?
A. ext2
B. ext3
C. ext4
D. none of the mentioned
Correct : A. ext2
17. Which binary format is supported by linux?
A. a.out
B. elf
C. both a.out and elf
D. none of the mentioned
Correct : C. both a.out and elf
18. Which one of the following bootloader is not used by linux?
A. grub
B. lilo
C. ntldr
D. none of the mentioned
Correct : C. ntldr
19. The first process launched by the linux kernel is
A. init process
B. zombie process
C. batch process
D. boot process
Correct : A. init process
20. Which desktop environment is not used in any linux distribution?
A. gnome
B. kde
C. unity
D. none of the mentioned
Correct : D. none of the mentioned
21. Standard set of functions through which interacts with kernel is defined by
A. system libraries
B. kernel code
C. compilers
D. utility programs
Correct : A. system libraries
22. What is Linux?
A. single user, single tasking
B. single user, multitasking
C. multi user, single tasking
D. multi user, multitasking
Correct : D. multi user, multitasking
23. Which one of the following is not a linux distribution?
A. debian
B. gentoo
C. open suse
D. multics
Correct : D. multics
24. 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 mentioned
Correct : C. both program counter and stack
25. A process can be
A. single threaded
B. multithreaded
C. both single threaded and multithreaded
D. none of the mentioned
Correct : C. both single threaded and multithreaded
26. 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 mentioned
Correct : B. other threads in the same process can also read from that file
27. 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 mentioned
Correct : B. less than the time required to create a new process
28. 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 provided
Correct : A. thread moves to the ready queue
29. 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 thread
Correct : A. convert a blocking system call into non blocking system call
30. 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 process
Correct : C. all threads within the process
31. Which one of the following is not a valid state of a thread?
A. running
B. parsing
C. ready
D. blocked
Correct : B. parsing
32. The register context and stacks of a thread are deallocated when the thread?
A. terminates
B. blocks
C. unblocks
D. spawns
Correct : A. terminates
33. 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 mentioned
Correct : D. all of the mentioned
34. A thread is also called
A. light weight process(lwp)
B. heavy weight process(hwp)
C. process
D. none of the mentioned
Correct : A. light weight process(lwp)
35. 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 mentioned
Correct : C. other threads that belong to the same process
36. 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 mentioned
Correct : D. all of the mentioned
37. Multithreading on a multi – CPU machine
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 mentioned
Correct : B. has a single thread of execution
38. 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 mentioned
Correct : A. it can do more than one task at a time
39. The kernel is of user threads.
A. a part of
B. the creator of
C. unaware of
D. aware of
Correct : C. unaware of
40. 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 mentioned
Correct : B. kernel threads are slower to create than user threads
41. 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 processor
Correct : A. the kernel can schedule another thread in the application for execution
42. 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 threads
Correct : D. blocking one kernel level thread blocks all other related threads
43. 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 model
Correct : A. many to one model
44. 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 model
Correct : B. one to many model
45. 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 mentioned
Correct : A. the entire process will be blocked
46. 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 mentioned
Correct : A. only one thread can access the kernel at a time
47. The One to One model allows
A. increased concurrency
B. decreased concurrency
C. increased or decreased concurrency
D. concurrency equivalent to other models
Correct : A. increased concurrency
48. 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 thread
Correct : D. creating a user thread requires creating the corresponding kernel thread
49. 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 mentioned
Correct : A. when the program does not need multithreading
50. In the Many to Many model true concurrency cannot be gained because
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 mentioned
Correct : B. other threads are allowed to run
51. Which of the following system calls does not return control to the calling point, on termination?
A. fork
B. exec
C. ioctl
D. longjmp
Correct : B. exec
52. Which of the following system calls transforms executable binary file into a process?
A. fork
B. exec
C. ioctl
D. longjmp
Correct : B. exec
53. Which of the following calls never returns an error?
A. getpid
B. fork
C. ioctl
D. open
Correct : A. getpid
54. 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 mentioned
Correct : B. the limit on the maximum number of processes in the system would be executed
55. If a thread invokes the exec system call
A. only the exec executes as a separate process
B. the program specified in the parameter to exec will replace the entire process
C. the exec is ignored as it is invoked by a thread
D. none of the mentioned
Correct : B. the program specified in the parameter to exec will replace the entire process
56. If exec is called immediately after forking
A. the program specified in the parameter to exec will replace the entire process
B. all the threads will be duplicated
C. all the threads may be duplicated
D. none of the mentioned
Correct : A. the program specified in the parameter to exec will replace the entire process
57. If a process does not call exec after forking
A. the program specified in the parameter to exec will replace the entire process
B. all the threads should be duplicated
C. all the threads should not be duplicated
D. none of the mentioned
Correct : B. all the threads should be duplicated
58. What is Thread cancellation?
A. the task of destroying the thread once its work is done
B. the task of removing a thread once its work is done
C. the task of terminating a thread before it has completed
D. none of the mentioned
Correct : C. the task of terminating a thread before it has completed
59. When a web page is loading, and the user presses a button on the browser to stop loading the page?
A. the thread loading the page continues with the loading
B. the thread loading the page does not stop but continues with another task
C. the thread loading the page is paused
D. the thread loading the page is cancelled
Correct : D. the thread loading the page is cancelled
60. When one thread immediately terminates the target thread, it is called
A. asynchronous cancellation
B. systematic cancellation
C. sudden termination
D. deferred cancellation
Correct : A. asynchronous cancellation
61. When the target thread periodically checks if it should terminate and terminates itself in an orderly manner, it is called?
A. asynchronous cancellation
B. systematic cancellation
C. sudden termination
D. deferred cancellation
Correct : D. deferred cancellation
62. Cancelling a thread asynchronously
A. frees all the resources properly
B. may not free each resource
C. spoils the process execution
D. none of the mentioned
Correct : B. may not free each resource
63. Cancellation point is the point where
A. the thread can be cancelled – safely or otherwise doesn’t matter
B. the thread can be cancelled safely
C. the whole process can be cancelled safely
D. none of the mentioned
Correct : B. the thread can be cancelled safely
64. If multiple threads are concurrently searching through a database and one thread returns the result then the remaining threads must be
A. continued
B. cancelled
C. protected
D. none of the mentioned
Correct : B. cancelled
65. Signals that occur at the same time, are presented to the process
A. one at a time, in a particular order
B. one at a time, in no particular order
C. all at a time
D. none of the mentioned
Correct : B. one at a time, in no particular order
66. Which of the following is not TRUE?
A. processes may send each other signals
B. kernel may send signals internally
C. a field is updated in the signal table when the signal is sent
D. each signal is maintained by a single bit
Correct : C. a field is updated in the signal table when the signal is sent
67. Signals of a given type
A. are queued
B. are all sent as one
C. cannot be queued
D. none of the mentioned
Correct : B. are all sent as one
68. The three ways in which a process responds to a signal are
A. ignoring the signal
B. handling the signal
C. performing some default action
D. all of the mentioned
Correct : D. all of the mentioned
69. Signals are identified by
A. signal identifiers
B. signal handlers
C. signal actions
D. none of the mentioned
Correct : A. signal identifiers
70. When a process blocks the receipt of certain signals?
A. the signals are delivered
B. the signals are not delivered
C. the signals are received until they are unblocked
D. the signals are received by the process once they are delivered
Correct : A. the signals are delivered
71. The maintains pending and blocked bit vectors in the context of each process.
A. cpu
B. memory
C. process
D. kernel
Correct : D. kernel
72. In UNIX, the set of masked signals can be set or cleared using the function.
A. sigmask
B. sigmaskproc
C. sigprocmask
D. sigproc
Correct : C. sigprocmask
73. The usefulness of signals as a general inter process communication mechanism is limited because
A. they do not work between processes
B. they are user generated
C. they cannot carry information directly
D. none of the mentioned
Correct : C. they cannot carry information directly
74. The usual effect of abnormal termination of a program is
A. core dump file generation
B. system crash
C. program switch
D. signal destruction
Correct : A. core dump file generation
75. In most cases, if a process is sent a signal while it is executing a system call
A. the system call will continue execution and the signal will be ignored completely
B. the system call is interrupted by the signal, and the signal handler comes in
C. the signal has no effect until the system call completes
D. none of the mentioned
Correct : C. the signal has no effect until the system call completes
76. A process can never be sure that a signal it has sent
A. has which identifier
B. has not been lost
C. has been sent
D. all of the mentioned
Correct : B. has not been lost
77. In UNIX, the system call is used to send a signal.
A. sig
B. send
C. kill
D. sigsend
Correct : C. kill
78. Thread pools are useful when
A. when we need to limit the number of threads running in the application at the same time
B. when we need to limit the number of threads running in the application as a whole
C. when we need to arrange the ordering of threads
D. none of the mentioned
Correct : A. when we need to limit the number of threads running in the application at the same time
79. Instead of starting a new thread for every task to execute concurrently, the task can be passed to a
A. process
B. thread pool
C. thread queue
D. none of the mentioned
Correct : B. thread pool
80. Each connection arriving at multi threaded servers via network is generally
A. is directly put into the blocking queue
B. is wrapped as a task and passed on to a thread pool
C. is kept in a normal queue and then sent to the blocking queue from where it is dequeued
D. none of the mentioned
Correct : B. is wrapped as a task and passed on to a thread pool
81. What is the idea behind thread pools?
A. a number of threads are created at process startup and placed in a pool where they sit and wait for work
B. when a process begins, a pool of threads is chosen from the many existing and each thread is allotted equal amount of work
C. all threads in a pool distribute the task equally among themselves
D. none of the mentioned
Correct : A. a number of threads are created at process startup and placed in a pool where they sit and wait for work
82. If the thread pool contains no available thread
A. the server runs a new process
B. the server goes to another thread pool
C. the server demands for a new pool creation
D. the server waits until one becomes free
Correct : D. the server waits until one becomes free
83. Thread pools help in
A. servicing multiple requests using one thread
B. servicing a single request using multiple threads from the pool
C. faster servicing of requests with an existing thread rather than waiting to create a new thread
D. none of the mentioned
Correct : C. faster servicing of requests with an existing thread rather than waiting to create a new thread
84. The number of the threads in the pool can be decided on factors such as
A. number of cpus in the system
B. amount of physical memory
C. expected number of concurrent client requests
D. all of the mentioned
Correct : D. all of the mentioned
85. The swaps processes in and out of the memory.
A. Memory Manager
B. CPU
C. CPU Manager
D. User
Correct : A. Memory Manager
86. The address generated by the CPU is referred to as
A. Physical Address
B. Logical Address
C. Neither Physical nor Logical
D. None of the mentioned
Correct : B. Logical Address
87. Operating System maintains the page table for
A. each process
B. each thread
C. each instruction
D. each address
Correct : A. each process
88. What is operating system?
A. collection of programs that manages hardware
B. system service provider to the
C. link to interface the hardware and
D. all of the mentioned
Correct : D. all of the mentioned
89. In a time-sharing operating system, when the time slot given to a process is completed, the process goes from the running state to the:
A. blocked state
B. ready state
C. suspended state
D. terminated state
Correct : B. ready state
90. In virtual memory, which is not a page replacement algorithm ?
A. FIFO
B. BFS
C. LRU
D. Optimal
Correct : B. BFS
91. Thrashing the CPU utilization.
A. increases
B. keep constant
C. decreases
D. None of the mentioned
Correct : C. decreases
92. Mutual exclusion can be provided by the
A. mutex locks
B. binary semaphores
C. both mutex locks and binary
D. none of the mentioned
Correct : C. both mutex locks and binary
93. A parent process calling system call will be suspended until children processes terminate.
A. wait
B. fork
C. exit
D. exec
Correct : A. wait
94. The child process completes execution, but the parent keeps executing, then the child process is known as
A. Orphan
B. Zombie
C. Body
D. Dead
Correct : B. Zombie
95. When the process issues an I/O request
A. It is placed in an I/O queue
B. It is placed in a waiting queue
C. It is placed in the ready queue
D. It is placed in the Job queue
Correct : A. It is placed in an I/O queue
96. Which one of the following is the deadlock avoidance algorithm?
A. banker’s algorithm
B. elevator algorithm
C. karn’s algorithm
D. none of the mentioned
Correct : A. banker’s algorithm
97. File type can be represented by
A. file name
B. file extension
C. file identifier
D. none of the mentioned
Correct : B. file extension
98. Which of the following are the two parts of the file name?
A. name & identifier
B. identifier & type
C. extension & name
D. type & extension
Correct : C. extension & name
99. Which of the following are forms of malicious attack?
A. Theft of information
B. Modification of data
C. Wiping of information
D. All of the mentioned
Correct : D. All of the mentioned
100. From the following, which is not a common file permission?
A. Write
B. Execute
C. Stop
D. Read
Correct : C. Stop