Cs604 Final Term Solved MCQs With Reference
Cs604 Final Term Solved MCQs With Reference
Variable
Fixed P/41
Long ter m
Short te rm
Swa p space
Sh ar e d li br ar ie s a nd ke r ne l mo du l e s a re s to re d i n _ __ _ _ _ _ __ _ _ _ _ d ir e cto r y.
/bin
/de v
/boot
/lib P/23
Is
Cs
Top P/64
Cd
True
3 Google
Dispatchi ng
Swapping
Tracki ng
_ _ __ _ _ _ _ __ sche d ule r se lects the pr oc ess fro m the jo b pool and put the m in m ain
me mor y.
Short te rm
Medium term
Swapper
a) True
b) False
2 . Th e O pe r a ti n g sy st e m is a la ye r o f s oft wa re b e t w e e n _ _ __ _ _ _ _ _ a nd
_ _ __ _ _ _ _ __ _ .
c) D o s , W i nd o ws
4. T h e mai n c h a r ac t e r is tic o f a R e al t i me s y s te m is
a) Eff ic ie nc y
a) Kernel
b) Shell P/13
c) Signal
d) API
6. I /O in st ru ct io ns a re Pri vi le ge d I nst r uc t io n s.
a) True P/8
b) False
7. In L in ux d ir e c t o ry st r uc t ur e , t he re is _ _ _ _ _ _ _ __ _ _ root d i re ct ory .
a) 1 P/22
b) 2
c) 3
d) 4
b) /boot
c) /li b
d) /sbin P/24
9. r m a nd r m kd ir co m m and s ar e u s e d t o _ _ __ _ _ _ __ _ _ _ _ d ir e ct or y .
a) Create
b) Move
c) Remo ve
d) Modify
a) file1 to file 2.
b) f ile 2 to file 1
c) th is c o mm and w il l no t wo r k f o r m o vi n g f i le s
d) N o ne of t h e o p t io n is c o rr e ct .
11. Ta king th e CPU from one proce ss and g iving th e CPU to a not he r process is
termed as
b) Dispatching
c) Swapping
d) Tracking
a) Long term
b) Short term
c) Medium term
d) Swap space
13 . A P r oc e s s A th at h as fi n is h e d wo r ki n g, a s w e ll a s its pa re nt pr o c e s s ha s al so
fi nis h e d its e x e cu t io n . I n t h i s st at e t h e pro c e s s A w ill be c alle d as _ _ _ _ _ __ _ _
proces s.
a) Child
b) Thread
c) Zombie
d) Fork
a) var iabl e
b) Fix ed
15 . I n _ _ __ _ _ _ _ c o m m un ic a t io n t h e pro c e ss w h ic h w a n ts t o c o m mu nic a te w it h t h e
oth e r pr o ce ss mu st e xpl ic it ly na me t h e re c i pi e n t and th e s e nde r.
a) Direct P/43
b) Indirect
c) Au t o m at ic
d) Self
a) does
b) do es not
17. T he r etur ned cod e t o th e ch ild proce ss afte r successful for k syste m call
exec ution is
a) 1
b) 2
c) 3
d) 0
a) 1
b) -1
c) 2
d) 0
a) 1
b) 2
c) 3 Google
d) 4
a) Mouse
c) Light pe n
d) Jo ystick
0 P/52
The part of the program where the shared memory is accessed is called -----------
Buffer
Critical section
Semaphore
None
T
F Google
Spinlock P/111
Critical Section
Monitor
Critical Region
Open () Google
Read ()
Write ()
Close ()
Pipe P/49
FIFO
None
Named Fifo
ps P/63
top
who
ls
fg P/65
bg
jobs
kill
You can use the ------------- command to display the status of suspended and
background processes
fg
bg P/65
jobs
kill
<Ctrl-A>
<Ctrl-C> P/66
<Ctrl-Z>
None of the given options
Multi tasking
Interactive
All of these
Multi user
Progress
Bounded Waiting
Mutual Exclusion
Critical Region
User interface
Hardware
Kernel
None of the given options
directory includes essential system boot files including the kernel image.
Select correct option:
/bin
/boot
/dev
/etc
Kernel threads are supported directly by the operating system. The kernel
performs the scheduling, creation, and management in ------ command display
the status of a process.
Select correct option:
ls ps
gcc
cat
Ls P/25
cs
mv
/bin
/dev
/boot
/etc P/23
ls
cp P/27
mv
mkdir
/bin
/boot P/23
/dev
/etc
System call
Interrupt
Trap
Signal
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.
Select correct option:
Pipe
Read
Write
Open
man
wan
desc
help
Same
Different
Taking the CPU from one process and giving the CPU to another process is
termed as
1. Context switching
2. Dispatching
3. Swapping
4. Tracking
The hardware mechanism that enables a device to notify CPU is called an -------
------
Interrupt
Signal
Trap
Process
You can display the contents (names of files and directories) of a directory in
UNIX/Linux directory structure with the --------------- command.
ls
ls
none of the given options
fork
wait
exec
exit
Symmetric
Asymmetric
Both symmetric and asymmetric
None of the given options
nice P/91
cmd
cat
grep
Priority P/91
Weight
Time
Scheduling
You can use the ---------command in UNIX to create a directory.
rmdir
mkdir
cp
gcc
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 of the given options
preemptive
non-preemptive
both preemptive and non- preemptive
none of the given options
Preemptive only
non-preemptive only
preemptive or non-preemptive.
None of the given options
1024 bytes
10242 bytes (may be this)
10243 bytes
1000000 bytes
DOS
Windows
UNIX
None of the given options
Files that start with a -------- in UNIX/Linux directory structure are known as
hidden files.
. (dot)
# ( hash )
/ (slash)
~ (tilt)
The creating process is called a--------------- process while the new processes are
called the -------------- of that process
Bounded
Unbounded
Both Unbounded & bounded
None of the given options