Menu Navigation

  • Cell: +92(308)611-2254

Study Mid Term Quiz-1 CS614 Data Warehouse Online

In client-server applications, which of the following are used to pass data between a server process and client processes?
FIFOs
Message queues
BSD sockets
Pipes
Often used for storage of large applications packages.
/tmp
/root
/opt
/mnt
The integer value of _______________ semaphores can not be greater than 1.
Counting
Binary
Mutex
Bounded buffer
The manual pages can be read in Linux using _______________ command.
man
wan
desc
help
A time interval when a process uses I/O devices only is called _______________.
CPU burst
I/O burst
Scheduling
Context switching
In direct communication, link is associated with exactly _______________ pair(s) of communicating processes.
Four
Two
One
Three
Utilities used for system administration (halt, ifconfig, fdisk, etc.) are stored in _______________ directory.
/dev
/boot
/lib
/sbin
Time from submission to completion of process is called_______________.
Response Time
Throughput
Waiting Time
Turnaround Time:
While executing the statement c++/c-- in Producer-Consumer problem, at back end certain number of instructions are executed, if interleaving of statements happen, it create race condition. Tell number of instructions that require “no interleaving” while executing c++/c--?
3
1
2
0
When process opens its first file explicitly it will get descriptor number _______________
1
2
3
4
What do we name to an address that is loaded into the memory-address register of the memory?
Logical address
Physical address
Binary addresses
None of the given options
Operating system enables the user to use the Hardware Resources.
TRUE
FALSE
In Unix/ Linux, by default the standard input file is attached to the _______________
Mouse
Keyboard
Light pen
Joystick
All threads within a process share the _______________ address space.
Same
Different
Both of the above
None of the given options
_______________holds the smallest legal physical memory address for a process.
Base Register
Limit register
Both of the above options
None of these
_______________ 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
In _______________, user does not get to interact with his/her jobs and jobs having similar needs are executed in groups at the same time, one after the other.
Batch systems
Multi programmed systems
Single-user system
Time-sharing systems
Command-line interpreter is often known as the_______________.
register
shell
kernel
timer
Time interval when the I/O Devices are accessed is known as _______________.
CPU Burst
IO Burst
Time Slice
None of Above
Each process is represented in the operating system by:
Process control block
Process state
CPU Scheduling information
Program counter
A system call_______________.
Allows a program to request a kernel service
Is a technique to protect I/O devices and other system resources
Is an entry point into the kernel code
All of the these
_______________ integer shows the highest priority of a process in CPU scheduling.
Small
Large
Both of these
All of the given options
_______________algorithm is used for solving n-process critical section problem.
Bankers
Bakery
Babbles
None of the given
A computer system can be divided roughly into four components:
The software, the operating system, the application programs and the users
The hardware, the operating system, the application programs and the users
The hardware, the operating system, the application programs and the emails
The hardware, the database system, the application programs and the users
The priority of a process can be changed using _______________ command.
nice
cmd
cat
grep
Shared libraries and kernel modules are stored in _______________director.
/bin
/dev
/boot
/lib
Using _______________system, we can create a new process in Linux.
fork
exec
wait
exit
In _______________ model, many user-level threads are supported per kernel thread.
One-to-one
Many –to-one
Many-to-many
One-to-many
Use of semaphore create a problem of busy waiting, this wastes CPU cycles that some other process may be able to use productively. This type of semaphore is also called _______________.
Semaphore S
Spinlock
Locking Semaphore
Mutex
In Layered approach of OS, Lowest Layer is known as _______________.
Software Layer
Hardware Layer
Lower Level Layer
None of The Given
_______________ are used by shell commands to pass data from one shell pipeline to another, without creating temporary files.
Pipes
Message queues
BSD sockets
FIFOs
Progress and Bounded Waiting are some of the characteristics to solve the critical section problems.
TRUE
FALSE
You can use the_______________ command in UNIX to create a directory.
rmdir
mkdir
cp
gcc
The address generated by the CPU, after any indexing or other addressing-mode arithmetic, is called a_______________ address, and the address it gets translated to by the MMU is called a_______________ address.
Virtual, physical
Hexadecimal, Binary
Valid, invalid
Physical, Virtual
Which of the following is NOT a Hardware Resource?
CPU
OS
I/O Devices
Memory
_______________ provides basic computing resources.
Application programs
Operating System
Hardware
Users
The execution of critical sections must NOT be mutually exclusive.
TRUE
FALSE
Kernel is responsible for scheduling the user level threads.
TRUE
FALSE
The _______________ requires that once a writer is ready, that writer performs its write as soon as possible, if a writer waiting to access the object, no new readers may start reading.
first readers-writers problem
second readers-writers problem
third readers-writers problem
fourth readers-writers problem
The interface between the user and operating system is known as:
Command-line interpreter (shell)
Protection system
Networking
File management
The priorities of processes in _______________ Group remain fixed whereas the priorities of processes in the _______________ Group are recalculated every second.
Kernel, Kernel
User, Kernel
User, User
Kernel, User
In a Multilevel Queue, the foreground queue has_______________ scheduling algorithm and background queue has_______________ scheduling algorithm
First Come First Serve, Round-Robin
Round-Robin, First Come First Serve
Round-Robin, Round-Robin
First Come First Serve, First Come First Serve
Database, Complier, Video games are examples of _______________.
Hardware
Application
Operating System
Users
The scheduling criteria include:
CPU utilization
Throughput
Turnaround time
All of these
Which of the following is used to show the end of file in unix?
Ctrl+D
Ctrl+A
Ctrl+O
Ctrl+E
_______________ is an integer variable accessible through wait and signal which are atomic operations.
Semaphore
Mutex
Busy waiting
Signal
The critical section problem can be solved by the following except:
Software based solution
Firmware based solution
Operating system based solution
Hardware based solution
The time it takes for the dispatcher to stop one process and start another running is known as the_______________.
Dispatch latency
Scheduling
Context switching
None
The priorities of processes in the _______________Group remain fixed whereas the priorities of processes in the _______________Group are recalculated every second.
Kernel, Kernel
User, Kernel
User, User
Kernel, User
In _______________addressing, the recipient is not required to name the sender.
Symmetric
Asymmetric
Both symmetric and asymmetric
None of the given options


Final Term Quiz Tests

Lecture-wise Quiz Tests