0% found this document useful (0 votes)
5 views

OS-MidtermQuest

The document consists of a series of multiple-choice questions related to operating systems, covering topics such as process management, memory management, I/O devices, and scheduling algorithms. Each question presents a set of options, asking the reader to identify the incorrect statement or fill in the blanks with the correct terms. The questions assess knowledge on various aspects of operating systems and their functionalities.

Uploaded by

cikif83366
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

OS-MidtermQuest

The document consists of a series of multiple-choice questions related to operating systems, covering topics such as process management, memory management, I/O devices, and scheduling algorithms. Each question presents a set of options, asking the reader to identify the incorrect statement or fill in the blanks with the correct terms. The questions assess knowledge on various aspects of operating systems and their functionalities.

Uploaded by

cikif83366
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

1) Which of the following expression is wrong ?

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

2) Which of the following expression is wrong about address space of processes?


A) Each address space contains scheduling parameters Lesson-3
B) Each address space contains the executable program Slide 3-4
C) Each address space contains the program’s data
D) Each address space contains a stack area
E) Each address space contains process table

3) Which of the following parameters is wrong fort he system that implements threads in both kernel
and space(hybrid implementation)?

A) Kernel manages only the kernel-level threads and schedules them


B) There exists a run-time system to manage user space threads
C) Thread scheduling in the user-level managed by the kernel
D) Run-time system manages a thread table for each process
E) Kernel does not interest userlevel threading

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 .

Fill in the above blank with correct expression.

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

12) Which of the followings is not a direct task of operating systems?


A) Database Management
B) Inter-process communication
C) Security
D) Networking
E) File-Management
13) Which of the followings is wrong for I/O devices?
A) Speaker is an output device
B) Monitor is an output device
C) Scanner isboth input and output device
D) Keyboard is an input device
E) Hard disc is both input an output device

14) Which of the followings storage devices capacity is the highest?

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

17) Which of the following operating system is a server operating system?

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?

A) Editors runs in user mode


B) Interpreters run in user mode
C) Compilers run in kernel mode
D) Operating systems are system software
E) Database management systems run in user mode

20) Which of the following expression is wrong for system calls?

A) System calls are highly machine dependent


B) Windows operating system do not have system calls
C) There is almost a 1 to 1 relationship between the system calls and the library procedures in
UNİX
D) The system calls vary from operating system to operating system
E) We can’t see the system call of Windows

21) Which of the following registers contains the condition code bits and the CPU priority?

A) Program Status Word


B) Memory Address Register
C) Program Counter
D) Stack Pointer
E) Address Register

22) Which of the following is wrong for first-generation computers?

A) Operating system was unknown


B) All programming was done in absolute machine language
C) Programming language were unknown
D) Transistors were used first in this generation
E) Punch cards were used first in this generation

23) Which of the following data is not stored in the process table?

A) Stack Address / A) Process State (AYNI SORUNUN FARKLI ŞIKLI HALİ)


B) Process ID / B) Used CPU Time
C) Size of Cache / C) Brand of CPU
D) Open files / D) Open Files
E) Stack pointer / E) Program Counter

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

26) int semaphore empty=0

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

27) Which of Windows 32 API corresponds to fork system call in UNIX?

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

29) Which of the following expression is true for threads?

A) Multi-threading provides multiple threads to run in the same process


B) Each sibling thread has a different address space in the memory
C) Single CPU can run multiple threads at he same time
D) Sibling threads compete fort he resources
E) Sibling threads have the same program counter value

You might also like