CS604 Quiz No.1 Dated DEC 04 2012
CS604 Quiz No.1 Dated DEC 04 2012
The process id returned to the child process after successful fork system call execution is
_____________.
0
1
2
3
___________ is a piece of code in a cooperating process in which the process may updates
shared data (variable, file, database, etc.).
Critical analysis
Critical section
Critical path
Critical code
Round Robin algorithm is similar to ____________ scheduling but preemption is added to switch
between processes.
Shortest job first
Shortest Remaining Time First
First Come First Server
None of these
A process is said to be in critical section if it executes code that manipulates shared data
True
False
When process opens its first file explicitly it will get descriptor number ______
1
2
3
4
A parent process calling_______ system call will be suspended until children process terminates
wait
Fork
Exit
Exec
_____ scheduling algorithm is sometimes called shortest remaining time first scheduling
algorithm.
Non-Preemptive SJF
Priority Scheduling
Preemptive Shortest Job First
FCFS
A solution to the critical section problem must satisfy the following requirements
Progress
Mutual exclusion
Bounded Waiting
Race Condition
In Unix/ Linux, by default the standard output file is attached to the ___________
File
Screen
Printer
Scanner
_____________ is the basis of queuing theory which is branch of mathematics used to analyze
systems involving queues and servers.
Little’s Formula
Deterministic modeling
Queuing Theory
Queuing Analysis
_________ is the smallest rectangle enclosing the portion of a window or client area affected by
recent drawing operations
Invalid Rectangle
Accumulated Bounding Rectangle
Accumulated Client Rect
All of the given options
On which machines the scheduler can move individual threads to different processors to
“balance” the CPU load.
Miniprocessor
Multiprocessor
Doubleprocessor
None of given options
The window ______ is the color or pattern used to fill the client area before a window begins
drawing
Caption
Color palette
Background
Foreground
If a window owns child Windows, and we destroy owner Window then _____________.
Only owner window will be destroyed
Only its owned window will be destroyed
Both owner and owned Windows will be destroyed
The application will be crashed
______________ is used to request the OS by the process to take an I/O or initiating child
process.
System Call
Interrupt
Trap
Singal
A parent process calling __________ system call will be suspended until children process
terminates. ht
wait
fork
exit
exec
If your processor does not have two slots empty in Per Process File Descriptor Table, then your
_________ system call will fail.
pipe
read
write
open
__________ directory includes essential system boot files including the kernel image.
/bin
/dev
/boot
/etc
First _______ entries in Per Process File Descriptor Table are used as soon as the process is
created.
1
2
3
4
An absolute pathname starts with the root directory (/) and a relative pathname starts with your
home directory.
True
False
Mach, MacOS X Server, QNX, OS/2 and Windows NT are examples of OS Based on ______.
Layered
Micro Kernal
Virtual Machine
None of The Given
In Layered Approach of OS, the Layer highest Layer is User Interface layer.
True
False
An operating system is a control program that manages the execution of user programs to
prevent errors and improper use of a computer.
True
False
The bottom-up view is that operating system is a resource manager who manages the hardware
and software resources in the computer system.
True
False
In Top-down OS, user simply give a Command and reset is done by the OS.
True
False
The Top-down view is that it is a program that acts as an intermediary between a user of a
computer and the computer hardware, and makes the computer system convenient to use.
True
False
Operating System provides services such as Managing Primary and Secondary Storage, Processes
and Allowing user to manage his/her files and directories.
True
False
The Purpose of Operating System is to generate Executable Programs and to _______ them.
Regenetrate
Execute
Store
Remove
Users are the People, machines or computers that uses the Hardware resources.
True
False
Application Programs are methods that enable the use of Hardware resources to solve the
user's Problem.
True
False
Which of the Following is not an Operating System.
Linux
Unix
Windows Xp
Datebase
__________ scheduler selects the process from the job pool and put them in main memory.
Select correct option:
Long term
Short term
Medium term
Swapper
Taking the CPU from one process and giving the CPU to another process is termed as
Select correct option:
Context Switching
Dispatching
Swapping
Tracking
A solution to the critical section problem must satisfy the following requirements except
Select correct option:
Progress
Mutual Exclusion
Bounded Waiting
Race Condition
In Unix/ Linux, by default the standard input file is attached to the ___________
Select correct option:
Mouse
Keyboard
Light pen
Joystick
___________ is a piece of code in a cooperating process in which the process may updates
shared data (variable, file, database, etc.).
Select correct option:
Critical Analysis
Critical Section
Critical path
Critical code
The procedure “The time at which the process finished working MINUS the arrival time of the
process MINUS CPU burst for that process” will help calculate the _________.
Select correct option:
on-preemptive Shortest Job First scheduling.
Preemptive Shortest Job First scheduling.
FCFS
RR Scheduling