OS-MidtermQuest
OS-MidtermQuest
A) Operating systems hide the details of the hardware from the programmer.
B) Operating systems provide CPU sharing(multiplexing) according to time parameter
C) Operating systems keep track of which process is using which resource
D) Operating systems provide CPU sharing(multiplexing) according to space parameter
E) Operating systems provide an orderly and controlled allocation of computer resources
3) Which of the following parameters is wrong fort he system that implements threads in both kernel
and space(hybrid implementation)?
4) ………………….. is a way of that when process is using a shared variable or file operating system will
prevent other processes to use the same shared variable or file .
A) Race condition
B) Critical region
C) Memory Management
D) Mutual exclusion
E) Process Switching
5) Which of the following Mutual exclusion method does not make busy waiting?
A) None of them
B) Lock Variables
C) TSL Instruction
D) Semaphores
E) Disabling Interrupts
6) The part of the operating system that makes the choice of the process to run next is called the
………. Fill in the blank with true expression.
A) Fetcher
B) Memory Manager
C) Timer
D) I/O Manager
E) Scheduler
7) Which of the following method can provide synchronization?
A) Lock Variables
B) Mutexes
C) TSL Instruction
D) Barriers
E) Disabling Interupts
8) ……………. Bound process spends most of its time waiting for I/O. Fill in the blank with true
expression.
A) Block
B) CPU
C) I/O
D) Compute
E) Memory
9) Which of the following method can provide both mutual exclusion and synchronization?
A) Semaphores
B) Mutexes
C) Sleep and Wake Up
D) Barriers
E) Disabling Interrupts
10) If a process needs 30 quanta time to complete its job how many times should it be switched to
the CPU according to multiple queue scheduling algorithm?
A) 4
B) 1
C) 2
D) 5
E) 3
11) A,B,C and D processes have 5,10,2 and 3 tickets respectively. When a lottery scheduling
algorithms holds a lottery what is the chance of process B to be selected ?
A) %50
B) %10
C) %15
D) %100
E) %25
A) Main Memory
B) Cache
C) Register
D) Hard disk
E) CPU
15) Which of UNUX library procedures corresponds to CreateProcess() function in Windows 32 API ?
A) mkdir()
B) fork()
C) chmod()
D) Exit()
E) Create()
16) Which of the following scheduling algorith cannot be used in batch system ?
A) Priority Scheduling
B) Shortest Remaining Time Next
C) Shortest Job First
D) First Come First Served
E) None of them
A) Windows 98
B) Windows 2000
C) Windows Vista
D) Windows XP
E) Windows 7
18) Which of the following registers contains the memory address of the next instruction to be
fetched to CPU ?
A) Stack
B) Memory Adress Register
C) Program Counter
D) Program Status Word
E) Stack Pointer
19) Which of the following expression is wrong?
21) Which of the following registers contains the condition code bits and the CPU priority?
23) Which of the following data is not stored in the process table?
24) Which of the following operating systems is not a mobile operating system?
A) Android
B) IOS
C) Symbian
D) Windows Mobile
E) Ubuntu
25) Which of the following storage devices speed is the highest?
A) Main memory
B) Cache
C) Register
D) Hard disk
E) External Disk
According to above semaphore what will be the new value of empty after down(&empty) method
A) 4
B) 2
C) 0 and calling process is blocked
D) 1 and one to the waiting process is awakened
E) 3
A) CreateProcess()
B) ExitProcess()
C) TerminateProcess()
D) CreateDirectory()
E) ReadFile()
28) The code block of the program which accesses the shared memory is called the ……..
A) Race condition
B) Blocked code
C) Program counter
D) Critical region
E) Mutual exclusion