Operating Systems Viva
Operating Systems Viva
1. W h a t is a n ope r a t in g sy st e m ?
An operat ing sy st em is a program t hat act s as an int erm ediary
bet ween t he user and t he com put er hardware. The purpose of an OS is
t o prov ide a conv enient env ironm ent in which user can execut e
program s in a convenient and efficient m anner. I t is a resource
allocat or responsible for allocat ing sy st em resources and a cont rol
program which cont rols t he operat ion of t he com put er hardware.
2. W h y pa gin g is u se d?
Paging is solut ion t o ex t ernal fragm ent at ion problem which is t o perm it
t he logical address space of a process t o be noncont iguous, t hus
allowing a process t o be allocat ing phy sical m em ory wherev er t he
lat t er is av ailable.
3. Ex pla in t h e con ce pt of t h e ba t ch e d ope r a t in g sy st e m s?
I n bat ched operat ing sy st em t he users giv es t heir j obs t o t he operat or
who sort s t he program s according t o t heir requirem ent s and ex ecut es
t hem . This is t im e consum ing but m akes t he CPU busy all t he t im e.
4. W h a t is pu r pose of diffe r e n t ope r a t in g sy st e m s?
The m achine purpose workst at ion indiv idual usabilit y &resources
ut ilizat ion m ainfram e opt im ize ut ilizat ion of hardware PC support
com plex gam es, business applicat ion Hand held PCs Easy int erface &
m in. power consum pt ion.
5. W h a t is v ir t u a l m e m or y ?
Virt ual m em ory is hardware t echnique where t he sy st em appears t o
hav e m ore m em ory t hat it act ually does. This is done by t im e- sharing,
t he phy sical m em ory and st orage part s of t he m em ory one disk when
t hey are not act iv ely being used.
6. W h a t is Th rou gh pu t , Tu rn a rou n d t im e , w a itin g t im e a n d Re sponse t im e ?
Th rou gh pu t : num ber of processes t hat com plet e t heir execut ion per t im e unit .
The hardware
The users.
8. W h a t is a Re a l- Tim e Syst e m ?
A real t im e process is a process t hat m ust respond t o t he event swit ch in a cert ain
t im e period. A real t im e operat ing syst em is an operat ing syst em t hat can run real
t im e processes successfully.
Dist ribut ed syst em s work in a net work. They can share t he net work resources,
com m unicat e wit h each ot her.
10. W h a t is SCSI ?
SCSI - Sm all com put er syst em s int erface is a t ype of int erface used for com put er
com ponent s such as hard drives, opt ical drives, scanners and t ape drives. I t is a
com pet ing t echnology t o st andard I DE ( I nt egrat ed Drive Elect ronics) .
11. W h a t is a se ctor ?
13. W h a t is bu sy w a it in g?
The repeat ed execut ion of a loop of code while wait ing for an event t o occur is called
busy wait ing.
Job queue
Ready queue
Device queue
16. W h a t a r e j a va t hr e a ds?
Java is one of t he sm all num ber of languages t hat support at t he language level for
t he creat ion and m anagem ent of t hreads. However, because t hreads are m anaged by
t he j ava virt ual m achine ( JVM) , not by a user-level library or kernel, it is difficult t o
classify Java t hreads as eit her user- or kernel-level.
User t hread
Kernel t hread
18. W h a t is a se m a ph or e ?
I t is a synchronizat ion t ool used t o solve com plex crit ical sect ion problem s. A
sem aphore is an int eger variable t hat , apart from init ializat ion, is accessed only
t hrough t wo st andard at om ic operat ions: Wait and Signal.
19. W h a t is a de a dlock ?
Deadlock is a sit uat ion where a group of processes are all blocked and none of t hem
can becom e unblocked unt il one of t he ot her becom es unblocked. The sim plest
deadlock is t wo processes each of which is wait ing for a m essage from t he ot her.
20. W h a t is ca ch e m e m or y?
Cache m em ory is random access m em ory ( RAM) t hat a com put er m icroprocessor can
access m ore quickly t han it can access regular RAM. As t he m icroprocessor processes
dat a, it looks first in t he cache m em ory and if it finds t he dat a t here (from a previous
reading of dat a) , it does not have t o do t he m ore t im e-consum ing reading of dat a.
21. W h a t is t h r a sh in g?
I t is a phenom enon in virt ual m em ory schem es when t he processor spends m ost of
it s t im e swapping pages, rat her t han execut ing inst ruct ions. This is due t o an
inordinat e num ber of page fault s.
New
Running
Wait ing
Ready
Term inat ed
23. W h a t is a bin a r y se m a ph or e ?
A binary sem aphore is one, which t akes only 0 and 1 as values. They are used t o
im plem ent m ut ual exclusion and synchronize concurrent processes.
24. W h a t is a j ob qu e u e?
25. W h a t is a r e a dy qu e ue ?
The processes t hat are residing in t he m ain m em ory and are ready and wait ing t o
execut e are kept on a list called t he ready queue.
Turnaround t im e is t he int erval bet ween t he subm ission of a j ob and it s com plet ion.
Response t im e is t he int erval bet ween subm ission of a request , and t he first
response t o t hat request .
Net working
28. W h a t is m u t e x ?
Mut ex is a program obj ect t hat allows m ult iple program t hreads t o share t he sam e
resource, such as file access, but not sim ult aneously. When a program is st art ed a
m ut ex is creat ed wot h a unique nam e. Aft er t his st age, any t hread t hat needs t he
resource m ust lock t he m ut ex from ot her t hreads while it is using t he resource. t he
m ut ex is set t o unlock when t he dat a is no longer needed or t he rout ine is finished.
29. W h a t is M a r sh a llin g?
The process of packaging and sending int erface m et hod param et ers across t hread or
process boundaries.
I t is called light weight process t o em phasize t he fact t hat a t hread is like a process
but is m ore efficient and uses fewer resources( n hence “light er” ) and t hey also share
t he address space.
I / O operat ions
Account ing
33. W h a t is a pr ocess?
Rou n d Robin Sch e du lin g- - - > Round Robin scheduling is a scheduling m et hod
where each process get s a sm all quant it y of t im e t o run and t hen it is preem pt ed and
t he next process get s t o run. This is called t im e-sharing and gives t he effect of all t he
processes running at t he sam e t im e
Pr ior it y Sch e du lin g- - - > Priorit y scheduling is a scheduling m et hod where at all
t im es t he highest priorit y process is assigned t he resource.
I n order t o prot ect t he operat ing syst em s and t he syst em program s from t he
m alfunct ioning program s t he t wo m ode operat ions were evolved
Syst e m m ode
Use r m ode .
36. W h a t is a de vice qu e ue ?
A list of processes wait ing for a part icular I / O device is called device queue.
H a r d r e a l- t im e syst e m s required t o com plet e a crit ical t ask wit hin a guarant eed
am ount of t im e.
Soft re a l- t im e com pu t in g requires t hat crit ical processes receive priorit y over less
fort unat e ones.
38. W h a t is st a r va t ion ?
St arvat ion is a resource m anagem ent problem where a process does not get t he
resources it needs for a long t im e because t he resources are being allocat ed t o ot her
processes.
40. W h a t is fr a gm e n ta t ion ?
Fragm ent at ion occurs in a dynam ic m em ory allocat ion syst em when m any of t he free
blocks are t oo sm all t o sat isfy any request .
41. W h a t is con te x t sw it ch in g?
Transferring t he cont rol from one process t o ot her process requires saving t he st at e
of t he old process and loading t he saved st at e for new process. This t ask is known as
cont ext swit ching.
Tim e t aken for swit ching from one process t o ot her is pure over head. Because t he
syst em does no useful work while swit ching. So one of t he solut ions is t o go for
t hreading when ever possible.
Wait ing st at e
M a in m e m or y - only large st orage m edia t hat t he CPU can access direct ly.
Se con da r y stor a ge - ext ension of m ain m em ory t hat provides large nonvolat ile
st orage capacit y.
A sit uat ion, where several processes access and m anipulat e t he sam e dat a
concurrent ly and t he out com e of t he execut ion depends on t he part icular order in
which t he access t akes place, is called race condit ion. To guard against t he race
condit ion we need t o ensure t hat only one process at a t im e can be m anipulat ing t he
sam e dat a. The t echnique we use for t his is called process synchronizat ion.
No preem pt ion
Circular wait
An int erpret er reads one inst ruct ion at a t im e and carries out t he act ions im plied by
t hat inst ruct ion. I t does not perform any t ranslat ion. But a com piler t ranslat es t he
ent ire inst ruct ions.
5 1 . W h a t is t h e diffe r e n ce be t w e e n m icr ok e r n e l a n d m a cr o k e r n e l?
M icr o- Ke r n e l : A m icro- kernel is a m inim al operat ing sy st em t hat
perform s only t he essent ial funct ions of an operat ing sy st em . All ot her
operat ing sy st em funct ions are perform ed by sy st em processes.
M on olit h ic : A m onolit hic operat ing sy st em is one where all operat ing
sy st em code is in a single ex ecut able im age and all operat ing sy st em
code runs in sy st em m ode.
5 2 . W h a t is D RAM ?
Dy nam ic Ram st ores t he dat a in t he form of Capacit ance, and St at ic
RAM st ores t he dat a in Volt ages.
5 3 . W h a t a r e t h e diffe r e n t fu n ct ion s of Sch e du le r ?
Scheduler deals wit h t he problem of deciding which of t he process in
t he ready queue is t o be allocat ed t he CPU. Short Term Schedulers,
Long Term Schedulers
5 4 . W h a t is a t r a p a n d t r a pdoor ?
Trapdoor is a secret undocum ent ed ent ry point int o a program used t o
grant access wit hout norm al m et hods of access aut hent icat ion. A t rap
is a soft ware int errupt , usually t he result of an error condit ion.
5 5 . W h a t a r e loca l a n d globa l pa g e r e pla ce m e n t s?
Local replacem ent m eans t hat an incom ing page is brought in only t o
t he relev ant process' address space. Global replacem ent policy allows
any page fram e from any process t o be replaced. The lat t er is
applicable t o v ariable part it ions m odel only .
56. W h a t is ca ch e - coh er e ncy?
I n a m ult iprocessor syst em t here exist several caches each m ay cont aining a copy of
sam e variable A. Then a change in one cache should im m ediat ely be reflect ed in all
ot her caches t his process of m aint aining t he sam e value of a dat a in all t he caches s
called cache-coherency.
Responsiveness
Resources sharing
Econom y
.
Operating System Interview Question and Answers-2
1 . Ex pla in t h e conce pt of Re e nt r a ncy?
Also called FI FO anom aly. Usually, on increasing t he num ber of fram es allocat ed t o a
process virt ual m em ory, t he process execut ion is fast er, because fewer page fault s
occur. Som et im es, t he reverse happens, i.e., t he execut ion t im e increases even
when m ore fram es are allocat ed t o t he process. This is Belady's Anom aly. This is t rue
for cert ain page reference pat t erns.
3 . W h a t is a bin a r y se m a ph or e ? W ha t is it s u se ?
A binary sem aphore is one, which t akes only 0 and 1 as values. They are used t o
im plem ent m ut ual exclusion and synchronize concurrent processes.
4 . W h a t is t h r a sh in g?
I t is a phenom enon in virt ual m em ory schem es when t he processor spends m ost of
it s t im e swapping pages, rat her t han execut ing inst ruct ions. This is due t o an
inordinat e num ber of page fault s.
Lon g t e r m sche du le r det erm ines which program s are adm it t ed t o t he syst em for
processing. I t cont rols t he degree of m ult iprogram m ing. Once adm it t ed, a j ob
becom es a process.
Sh or t te r m sch e du ler , also know as a dispat cher execut es m ost frequent ly, and
m akes t he finest - grained decision of which process should execut e next . This
scheduler is invoked whenever an event occurs. I t m ay lead t o int errupt ion of one
process by preem pt ion.
7 . W h a t a r e t ur n a rou n d t im e a n d re sponse t im e ?
Turnaround t im e is t he int erval bet ween t he subm ission of a j ob and it s com plet ion.
Response t im e is t he int erval bet ween subm ission of a request , and t he first
response t o t hat request .
8 . W h a t a r e t he t ypica l e le m e n t s of a pr ocess im a ge ?
Use r da t a : Modifiable part of user space. May include program dat a, user st ack
area, and program s t hat m ay be m odified.
Syst e m St ack : Each process has one or m ore LI FO st acks associat ed wit h it . Used
t o st ore param et ers and calling addresses for procedure and syst em calls.
Resident set is t hat port ion of t he process im age t hat is act ually in real- m em ory at a
part icular inst ant . Working set is t hat subset of resident set t hat is act ually needed
for execut ion. ( Relat e t his t o t he variable- window size m et hod for swapping
t echniques.)
1 1 . W h e n is a syste m in sa fe st a t e ?
The set of dispat chable processes is in a safe st at e if t here exist s at least one
t em poral order in which all processes can be run t o com plet ion wit hout result ing in a
deadlock.
1 2 . W h a t is cycle st e a lin g?
We encount er cycle st ealing in t he cont ext of Direct Mem ory Access ( DMA) . Eit her
t he DMA cont roller can use t he dat a bus when t he CPU does not need it , or it m ay
force t he CPU t o t em porarily suspend operat ion. The lat t er t echnique is called cycle
st ealing. Not e t hat cycle st ealing can be done only at specific break point s in an
inst ruct ion cycle.
1 3 . W h a t is m e a n t by a r m - st ick in e ss?
I f one or a few processes have a high access rat e t o dat a on one t rack of a st orage
disk, t hen t hey m ay m onopolize t he device by repeat ed request s t o t hat t rack. This
generally happens wit h m ost com m on device scheduling algorit hm s ( LI FO, SSTF, C-
SCAN, et c) . High- densit y m ult isurface disks are m ore likely t o be affect ed by t his
t han low densit y ones.
1 5 . W h a t is bu sy w a it in g?
The repeat ed execut ion of a loop of code while wait ing for an event t o occur is called
busy- wait ing. The CPU is not engaged in any real product ive act ivit y during t his
period, and t he process does not progress t oward com plet ion.
1 6 . Ex pla in t h e popu la r m u lt ipr oce ssor t h rea d- sch e du lin g st r a t e gies.
1. Loa d Sha r in g: Processes are not assigned t o a part icular processor. A global
queue of t hreads is m aint ained. Each processor, when idle, select s a t hread
from t his queue. Not e t hat load balancing refers t o a schem e where work is
allocat ed t o processors on a m ore perm anent basis.
2. Ga n g Sch e du lin g: A set of relat ed t hreads is scheduled t o run on a set of
processors at t he sam e t im e, on a 1-t o- 1 basis. Closely relat ed t hreads /
processes m ay be scheduled t his way t o reduce synchronizat ion blocking, and
m inim ize process swit ching. Group scheduling predat ed t his st rat egy.
3. D e dica t e d processor a ssign m en t : Provides im plicit scheduling defined by
assignm ent of t hreads t o processors. For t he durat ion of program execut ion,
each program is allocat ed a set of processors equal in num ber t o t he num ber
of t hreads in t he program . Processors are chosen from t he available pool.
4. D yn a m ic sch e du lin g: The num ber of t hread in a program can be alt ered
during t he course of execut ion.
I n m essage passing, it is t he condit ion in which, bot h, t he sender and receiver are
blocked unt il t he m essage is delivered.
1 8 . W h a t is a t r a p a n d t r a pdoor ?
Trapdoor is a secret undocum ent ed ent ry point int o a program used t o grant access
wit hout norm al m et hods of access aut hent icat ion. A t rap is a soft ware int errupt ,
usually t he result of an error condit ion.
Local replacem ent m eans t hat an incom ing page is brought in only t o t he relevant
process address space. Global replacem ent policy allows any page fram e from any
process t o be replaced. The lat t er is applicable t o variable part it ions m odel only.
Free m em ory is m aint ained in linked list s, each of equal sized blocks. Any such block
is of size 2^ k. When som e m em ory is required by a process, t he block size of next
higher order is chosen, and broken int o t wo. Not e t hat t he t wo such pieces differ in
address only in t heir kt h bit . Such pieces are called buddies. When any used block is
freed, t he OS checks t o see if it s buddy is also free. I f so, it is rej oined, and put int o
t he original free- block linked-list .
2 2 . W h a t is t im e - st a m pin g?
I t is a t echnique proposed by Lam port , used t o order event s in a dist ribut ed syst em
wit hout t he use of clocks. This schem e is int ended t o order event s consist ing of t he
t ransm ission of m essages. Each syst em 'i' in t he net work m aint ains a count er Ci.
Every t im e a syst em t ransm it s a m essage, it increm ent s it s count er by 1 and
at t aches t he t im e- st am p Ti t o t he m essage. When a m essage is received, t he
receiving syst em 'j ' set s it s count er Cj t o 1 m ore t han t he m axim um of it s current
value and t he incom ing t im e- st am p Ti. At each sit e, t he ordering of m essages is
det erm ined by t he following rules: For m essages x from sit e i and y from sit e j , x
precedes y if one of t he following condit ions holds....( a) if Ti< Tj or ( b) if Ti= Tj and
i< j .
I f a process in a m onit or signal and no t ask is wait ing on t he condit ion variable, t he
signal is lost . So t his allows easier program design. Whereas in sem aphores, every
operat ion affect s t he value of t he sem aphore, so t he wait and signal operat ions
should be perfect ly balanced in t he program .
2 4 . I n t h e con te x t of m e m or y m a n a ge m e n t, w h a t a r e pla ce m e n t a n d
r e pla ce m e n t a lgor it h m s?
Placem ent algorit hm s det erm ine where in available real-m em ory t o load a program .
Com m on m et hods are first -fit , next - fit , best - fit . Replacem ent algorit hm s are used
when m em ory is full, and one process ( or part of a process) needs t o be swapped out
t o accom m odat e a new program . The replacem ent algorit hm det erm ines which are
t he part it ions t o be swapped out .
For loa d- t im e dyn a m ic lin k in g: Load m odule t o be loaded is read int o m em ory.
Any reference t o a t arget ext ernal m odule causes t hat m odule t o be loaded and t he
references are updat ed t o a relat ive address from t he st art base address of t he
applicat ion m odule.
Wit h ru n - t im e dyn a m ic loa din g: Som e of t he linking is post poned unt il act ual
reference during execut ion. Then t he correct m odule is loaded and linked.
2 6 . W h a t a re de m a n d- pa gin g a n d pr e - pa gin g?
Wit h dem and paging, a page is brought int o m em ory only when a locat ion on t hat
page is act ually referenced during execut ion. Wit h pre- paging, pages ot her t han t he
one dem anded by a page fault are brought in. The select ion of such pages is done
based on com m on access pat t erns, especially for secondary m em ory devices.
Yes.
3 1 . W h a t is SMP?
3 4 . W h a t is a dr a w back of MVT?
3 5 . W h a t is pr oce ss spa w n in g?
When t he OS at t he explicit request of anot her process creat es a process, t his act ion
is called process spawning.
15 j obs.
1. swapping
2. int eract ive user request
3. t im ing
4. parent process request
3 9 . W h a t is pr oce ss m igr a t ion ?
4 0 . W h a t is m u t a n t?
I n Windows NT a m ut ant provides kernel m ode or user m ode m ut ual exclusion wit h
t he not ion of ownership.
4 1 . W h a t is a n idle t h r e a d?
The special t hread a dispat cher will execut e when no ready t hread is found.
4 2 . W h a t is Ft D isk ?
4 3 . W h a t a re t h e possible t h r e a ds a t hr e a d ca n h a ve?
1. Ready
2. St andby
3. Running
4. Wait ing
5. Transit ion
6. Term inat ed
4 4 . W h a t a re r in gs in W in dow s N T?
Windows NT uses prot ect ion m echanism called rings provides by t he process t o
im plem ent separat ion bet ween t he user m ode and kernel m ode.
I n Windows NT, execut ive refers t o t he operat ing syst em code t hat runs in kernel
m ode.
DDks are device driver kit s, which are equivalent t o SDKs for writ ing device drivers.
Windows NT includes DDks.
4 8 . W h a t le ve l of se cu r it y doe s W in dow s N T m e e t s?
C2 level securit y.
BUS t opology
STAR t opology
RI NG t opology
MESS t opology
7. W h a t a r e t he du t ie s of da t a lin k la ye r?
Dat a link layer is responsible for carrying packet s from one hop (com put er or rout er)
t o t he next . The dut ies of dat a link layer include packet izing, adderssing, error
cont rol, flow cont rol, m edium access cont rol.
8. W h a t is vir t u a l ch a nn e l?
Virt ual channel is norm ally a connect ion from one source t o one dest inat ion, alt hough
m ult icast connect ions are also perm it t ed. The ot her nam e for virt ual channel is
virt ual circuit .
9. W h a t is m u lt ica st r ou t in g?
Sending a m essage t o a group is called m ult icast ing, and it s rout ing algorit hm is
called m ult icast rout ing.
10. W h a t is TELN ET ?
TELNET is a client - server applicat ion t hat allows a user t o log on t o a rem ot e
m achine,giving t he user access t o t he rem ot e syst em . TELNET is an abbreviat ion of
t erm inal net work.
I t is t he exchange of dat a bet ween t wo devices via som e form of t ransm ission
m edium such as wire cable. The com m unicat ing syst em m ust be part of a
com m unicat ion syst em m ade up of a com binat ion of hardware and soft ware.The
effect iveness of a dat a com m unicat ion syst em depends on t hree fundam ent al
charact erist ics: delivery, accuracy and t im eliness.
I t is a st rat egy in which services provided by t he net work reside at m ult iple sit es.
I t provides a dedicat ed link bet ween t wo devices. The ent ire capacit y of t he link is
reserved for t ransm ission bet ween t he t wo devices.
The concept of including ext ra inform at ion in t he t ransm ission solely for t he purpose
of com parison. This t echnique is called redundancy.
15. W h a t is su bn e t?
A generic t erm for sect ion of a large net works usually separat ed by a bridge or
rout er.
I n m ult ipoint connect ion m ore t han t wo specific devices share a single link. Here t he
capacit y of t he channel is shared eit her separat ely or t em porally.
I t is t he m ode of com m unicat ion bet ween t wo devices in which flow of dat a is
unidirect ional.
I t is t he m ode of com m unicat ion bet ween t wo devices in which flow of dat a is
bidirect ional but not at t he sam e t im e. ie each st at ion can t ransm it and receive but
not at t he sam e t im e.
19. W h a t is fu ll du ple x ?
I t is t he m ode of com m unicat ion bet ween t wo devices in which flow of dat a is
bidirect ional and it occurs sim ult aneously. Here signals going in eit her direct ion share
t he capacit y of t he link.
20. W h a t is a t opology?
Topology of a net work is defined as t he geom et ric represent at ion of t he relat ionship
of all t he links and linking devices ( node) t o one anot her .
21. W h a t is Ba n dw idt h ?
Every line has an upper lim it and a lower lim it on t he frequency of signals it can
carry. This lim it ed range is called t he bandwidt h.
A com m unicat ions prot ocol used t o connect com put ers t o rem ot e net working services
including I nt ernet service providers.
23. W h a t is sw it ch in g?
Analog signals can have an infinit e num ber of values in a range but digit al signal can
have only a lim it ed num ber of values.
ARP - Address resolut ion prot ocol is used t o associat e t he 32 bit I P address wit h t he
48 bit physical address, used by a host or a rout er t o find t he physical address of
anot her host on it s net work by sending a ARP query packet t hat includes t he I P
address of t he receiver.
RARP - Reverse address resolut ion prot ocol allows a host t o discover it s I nt ernet
address when it knows only it s physical address.
26. W h a t is I CM P?
I CMP is I nt ernet Cont rol Message Prot ocol, a net work layer prot ocol of t he TCP/ I P
suit e used by host s and gat eways t o send not ificat ion of dat agram problem s back t o
t he sender.
29. W h a t is m e sh n e tw or k?
A net work in which t here are m ult iple net work links bet ween com put ers t o provide
m ult iple pat hs for dat a t o t ravel.
31. W h a t is sa m plin g?
I t is an analog t o digit al conversion m et hod which t akes analog signals, sam ples it
and generat es a series of pulse based on t he result s of t he sam pling. I t is not used in
dat a com m unicat ion because t he series of pulses generat ed st ill of any am plit ude. To
m odify it we use pulse code m odulat ion.
I t is a serial m ode of t ransm ission.I n t his m ode of t ransm ission, each byt e is fram ed
wit h a st art bit and a st op bit . There m ay be a variable lengt h gap bet ween each
byt e.
Mult iplexing is of t hree t ypes. Frequency division m ult iplexing and wave division
m ult iplexing is for analog signals and t im e division m ult iplexing is for digit al signals.
36. W h a t M AU?
I n t oken Ring, hub is called Mult ist at ion Access Unit ( MAU) .
37. W h a t do you m e a n by sw it ch in g?
I t is a m et hod in which com m unicat ion devices are connect ed t o one anot her
efficient ly.A swit ch is int erm ediary hardware or soft ware t hat links devices t oget her
t em porarily.
I t is t he regulat ion of sender’s dat a rat e so t hat t he receiver buffer doesn’t becom e
overwhelm ed.i.e. flow cont rol refers t o a set of procedures used t o rest rict t he
am ount of dat a t hat t he sender can send before wait ing for acknowledgem ent .
39. W h a t do you m e a n by Blu e tooth ?
40. W h a t is vir t u a l ch a nn e l?
Virt ual channel is norm ally a connect ion from one source t o one dest inat ion, alt hough
m ult icast connect ions are also perm it t ed. The ot her nam e for virt ual channel is
virt ual circuit .
41. W h a t is m u lt ica st r ou t in g?
Sending a m essage t o a group is called m ult icast ing, and it s rout ing algorit hm is
called m ult icast rout ing.
42. W h a t is M a il Ga t e w a y?
I t is a syst em t hat perform s a prot ocol t ranslat ion bet ween different elect ronic m ail
delivery prot ocols.
The int ernet address ( I P address) is 32bit s t hat uniquely and universally defines a
host or rout er on t he int ernet .
The port ion of t he I P address t hat ident ifies t he net work is called net id. The port ion
of t he I P address t hat ident ifies t he host or rout er on t he net work is called host id.
Subnet t ing divides one large net work int o several sm aller ones. I t adds an
int erm ediat e level of hierarchy in I P addressing.
46. W h a t is Re pe a te r s ?
47. W h a t is Br idge s?
They divide large net work int o sm aller com ponent s.They can relay fram es bet ween
t wo originally separat ed LANs. They provide securit y t hrough part it ioning t raffic.
They operat e on phycal and dat a link layer of OSI m odel.
48. W h a t is Ga t e w a y ?
I t is a prot ocol convert er.A gat eway can accept a packet form at t ed for one prot ocol
and convert it t o a packet form at t ed for anot her prot ocol. I t operat es on all t he
seven layers of OSI m odel.
49. W h a t do you m e a n by pe er ?
Ent it ies com prising t he corresponding layers on different m achines are called peers.
Broadcast syst em allow addressing a packet t o all dest inat ion by using a special code
in address field. when packet is t ransm it t ed it is received and processed by every
m achine on t he net work.
52. W h a t a r e m a j or t ype s of n e t w or k s?
TELNET
FTP
SMTP
SMTP
56. W h a t a r e m a j or t ype s of n e t w or k s?
TELNET
FTP
SMTP
SMTP
Point t o point net work consist of m any connect ions bet ween individual pair of
m achines.large net works are point t o point .Rout ing algorit hm plays an im port ant in
point t o point net work.I t uses st ored ad forword t echnique.I t is a packet swit ching
net work.
TCP
UDP
61. W h a t is URL ?
I t is a st andard for specifying any kind of inform at ion on t he World Wide Web.
62. D e fine UD P ?
I t is unreliable connect ionless prot ocol.I t is used for one- shot ,client - server
t ype,request reply queries and applicat ions in which prom pt delivery is required t han
accuracy.
63. W h a t is W or ld W ide W e b ?
World Wide Web is a reposit ory of inform at ion spread all over t he world and linked
t oget her.I t is a unique com binat ion of flexibilit y,port abilit y,and user-friendly feat ures
.The World Wide Web t oday is a dist ribut ed client - server service,in which a client
using a browser can access a service using a server.The service provided is
dist ribut ed over m any locat ions called web sit es.
I t is t he m ain prot ocol used t o access dat a on t he World Wide Web .t he prot ol
t ransfers dat a in t he form of plain t ext ,hypert ext ,audio,video,and so on. I t is so
called because it s efficiency allows it s use in a hypert ext environm ent where t here
are rapid j um ps from one docum ent t o anot her.
The TCP/ I P prot ocol t hat support s elect ronic m ail on t he int ernet is called Sim ple Mail
Transfer Prot ocol.SMTP provides for m ail exchange bet ween users on t he sam e or
different com put er and support s Sending a single m essage t o one or m ore recipient
Sending m essage t hat include t ext , voice,video,or graphics.Sending m essage t o
users on net work out side t he int ernet .
When a user logs int o a local t im e- sharing syst em ,it is called local login. When a
user want s t o access an applicat ion program or ut ilit y locat ed on a rem ot e
m achine,he or she perform s rem ot e login.
3. D e fin e t e st in g?
Test ing is a process of execut ing a progr am wit h t he int ent of finding
of an error.
4. W h a t is w h it e box t e st in g?
Whit e box t est ing is a t est case design m et hod t hat uses t he cont rol
st ruct ure of t he procedural design t o derive t est cases. I t is ot herwise
called as st r u ct u r a l t e st in g.
5. W h a t is Bla ck box t e st in g?
Black box t est ing is a t est case design m et hod t hat focuses on t he
funct ional requirem ent s of t he soft ware. I t is ot herwise called
as fu n ct ion a l t e st in g.
6. W h a t is ve r ifica t ion a n d va lida t ion ?
Ve r ifica t ion refers t o t he set of act ivit ies t hat ensure t hat soft ware correct ly
im plem ent s a specific funct ion.
Va lida t ion refers t o t he set of act ivit ies t hat ensure t hat t he soft ware t hat has been
built is t raceable t o cust om er requirem ent s.
7. W h a t is de bu ggin g?
Cyclom at ic com plexit y is a soft ware m et ric t hat provides a quant it at ive m easuer of
t he logical com plexit y of a program .
9. W h a t is e r r or t r a ck in g?
Com put er Aided Soft ware Engineering - CASE t ools assist soft ware engineering
m anagers and pract it ioners in evey act ivit y associat ed wit h t he soft ware process.
They aut om at e proj ect m anagem ent act ivit ies m anage all work product s produced
t hroughout t he process and assist t he engineers in t heir analysis, design, coding and
t est work.
11. W h a t is da t a de sign ?
Dat a design t ransform s t he inform at ion dom ain m odel creat ed during analysis int o
t he dat a st ruct ures t hat will be required t o im plem ent t he soft ware.
Coincident al cohension
Logical cohension
Procedural cohension
Dat a coupling
St am p coupling
Com m on coupling
User int erface design creat es an effect ive com m unicat ion m edium bet ween a hum an
and a com put er.
A specificat ion can be a writ t en docum ent , a graphical m odel, a form al m at hem at ical
m odel, a collect ion of usage scenarios, a prot ot ype or any com binat ion of t hese.
A series of st eps involving act ivit ies, const raint s, and resources t hat produce an
int ended out put of som e kind is known as process.
The spiral m odel is an evolut ionary soft ware process m odel t hat couples t he it erat ive
nat ure of prot ot yping wit h t he cont rolled and syst em at ic aspect s of t he wat erfall
lifecycle m odel. I t also has an em phasis on t he use of risk m anagem ent t echniques.
Winwin spiral m odel defines a set of negot iat ion act ivit ies at t he beginning of each
pass around t he spiral. The best negot iat ions st rive for a win- win result .
The various views in syst em engineering hierarchy from t op t o bot t om in order are
World view
Dom ain view
A soft ware requirem ent s definit ion is an abst ract descript ion of t he services which
t he syst em should provide and t he const raint s under which t he syst em m ust operat e.
22. W h a t is SD LC ?
A soft ware cycle deals wit h various part s and phases from planning t o t est ing and
deploying. All t hese act ivit ies are carried out in different ways, as per t he needs.
Each way is known as a Soft ware Developm ent Lifecycle Model ( SDLC) .
Syst em s t hat collect s dat a from sensors for subsequent processing and analysis are
t erm ed as Dat a acquist ion syst em s. Dat a collect ion process and processing processes
m ay have different periods and deadlines.
SCM is t he art of ident ifying, organizing, and cont rolling m odificat ions t o t he soft ware
being built by a program m ing t eam . I t is an um brella act ivit y t hat is applied
t hroughout t he soft ware process.
Adva n t a ges :
Soft ware’s st ruct ure logic can be t est ed.
27. W h a t is m e a n t by loop t e st in g?
Loop t est ing is a whit e box t est ing t echniques t hat focuses exclusively on t he validit y
of loop const ruct s. This t echnique can be applied t o sim ple loops, nest ed loops,
concat enat ed loops and unst ruct ured loops.
28. W h a t is m e a n t by sm ok e t est in g?
Sm oke t est ing is an int egrat ion t est ing approach t hat is com m only used ehen “ shrink
wrapped ” soft ware product s are being developed.
29. W h a t is a lph a a n d be t a t e st s?
Alpha t est is t he t est t hat is conduct ed at t he developer’s sit e by a cust om er. Bet a
t est is t he t est t hat is conduct ed at one or m ore cust om er sit es by t he end-user of
t he soft ware.
30. W h a t is m e a n t by syst e m t e st in g?
Syst em t est ing is act ually a series of different t est s whose prim ary purpose is t o fully
exercise t he com put er based syst em . I t verifies whet her t he syst em elem ent s have
been properly int egrat ed and perform t he allocat ed funct ions.
Brut e force
Back t racking
Spiral m odel
Adapt ive m aint anence is t he m aint enance t o adapt soft ware t o a different operat ing
environm ent . I t involves changing a syst em so t hat it operat es in a different
environm ent from it s init ial im plem ent at ion.
Adva n t a ges:
Sim ulat es act ual syst em usage.
m akes no syst em st ruct ure assum pt ions.
Syst em requirem ent s m ay be eit her funct ional or non- funct ional requirem ent s.
37. W h a t a r e u se r r e qu ir e m en t s?
User requirem ent s should describe funct ional and non-funct ional requirem ent s so
t hat t hey are underst andable by syst em users who don’t have det ailed t echnical
knowledge. User requirem ent s are defined using nat ural language, t ables and
diagram s.
38. W h a t is t e st sce n a r io ?
Test scenario is t he hypot het ical st ory t o t est t he part icular funct ionalit y of an
applicat ion. I t serves as an input t o funct ional t est ing. For t est scenario we need use
case.
Prot ot ype is an init ial version of a soft ware syst em which is used t o dem onst rat e
concept s, t ry out design opt ions and generally t o find out m ore about t he problem
and it s possible solut ions.
4 1 . W h a t is t h e fu n ct ion of t h e u se r m ode l?
The user m odel est ablishes t he profile of end users of t he sy st em .
4 2 . W h a t is sy st e m im a ge ?
The sy st em im age com bines t he out ward m anifest at ion of t he
com put er based sy st em , coupled wit h all support ing inform at ion t hat
describes sy st em synt ax and sem ant ics.
4 3 . w h a t is t r a n sfor m m a ppin g?
Transform m apping is a set of design st eps t hat allows a DFD wit h
t ransform flow charact ersist ics t o be m apped int o a specific
archit ect ural st yle.
4 4 . W h a t is t r a ce bilit y m a t r ix ?
Traceabilit y m at rix is a docum ent in which we m ap t he t est cases wit h
t he requirem ent s. I n general we check whet her t he applicat ion work s
as per requirem ent s or whet her we had cov ered all t he required
funct ionalit y t hrough t est cases.
4 5 . List t h e m e t r ics for spe cify in g n on fu n ct ion a l r e qu ir e m e n t s?
The possible m et rics t hat specify t he non- funct ional requirem ent s are :
Speed
Size
Easy of use
Reliabilit y
Bla ck box t e st in g :
No knowledge of t he int ernal logic of t he syst em is used t o develop t est cases.
Uses validat ion t echniques.
Exam ples include unit t est ing, int egrat ion t est ing, syst em t est ing, accept ance
t est ing.
W h it e box t e st in g :
Knowledge of t he int ernal logic of t he syst em is used t o develop t est cases.
Syst e m En gine e r in g - is concerned wit h all aspect s of com put er based syst em s
developm ent including hardware, soft ware and process engineering.
Syst e m En gine e r in g - are involves in syst em specificat ion archit ect ural design
int ergrat ion and deploym ent .
Linear
Nonlinear
2. W h a t is a lin k e d list ?
A link ed list is a linear collect ion of dat a elem ent s, called nodes, where
t he linear order is giv en by point ers. Each node has t wo part s first part
cont ain t he inform at ion of t he elem ent second part cont ains t he
address of t he nex t node in t he list .
3. W h a t is a qu e u e ?
A queue is an ordered collect ion of it em s from which it em s m ay be
delet ed at one end ( front end) and it em s insert ed at t he ot her end
( rear end) . I t obey s FI FO rule t here is no lim it t o t he num ber of
elem ent s a queue cont ains.
4. W h a t is a spa n n in g Tr e e ?
A spanning t ree is a t ree associat ed wit h a net work . All t he nodes of
t he graph appear on t he t ree once. A m inim um spanning t ree is a
spanning t ree organized so t hat t he t ot al edge weight bet ween nodes
is m inim ized.
5. W h a t is pr e cision ?
Precision refers t he accuracy of t he decim al port ion of a v alue.
Precision is t he num ber of digit s allowed aft er t he decim al point .
6. W h a t a r e t he goa ls of Da t a St ru ct ur e ?
I t m ust rich enough in st ruct ure t o reflect t he act ual relat ionship of dat a in real
world. The st ruct ure should be sim ple enough for efficient processing of dat a.
St a ck
St ack is a dynam ic obj ect whose size is const ant ly changing as it em s are pushed and
popped .
St ack is declared as a st ruct ure cont aining an array t o hold t he elem ent of t he st ack,
and an int eger t o indicat e t he current st ack t op wit hin t he array.
Ar r a y
Array is an ordered collect ion of it em s.
Array is a st at ic obj ect .
Array can be hom e of a st ack i.e. array can be declared large enough for m axim um
size of t he st ack.
8. W h a t is se qu en t ia l se a rch ?
I n sequent ial search each it em in t he array is com pared wit h t he it em being searched
unt il a m at ch occurs. I t is applicable t o a t able organized eit her as an array or as a
linked list .
10. W h a t is a pr ior it y qu e u e?
The priorit y queue is a dat a st ruct ure in which t he int rinsic ordering of t he elem ent s.
Fixed am ount of st orage rem ains allocat ed t o t he dat a st ruct ure even if it cont ains
less elem ent .
No m ore t han fixed am ount of st orage is allocat ed causing overflow.
I n linear list t he next field of t he last node cont ain a null point er, when a next field in
t he last node cont ain a point er back t o t he first node it is called circular list .
Dat a t ype is a collect ion of values and a set of operat ions on t hese values. Abst ract
dat a t ype refer t o t he m at hem at ical concept t hat define t he dat a t ype.
The definit ion which defines an obj ect in t erm s of sim pler cases of it self is called
recursive definit ion.
1 7 . W h a t do y ou m e a n by ov e r flow a n d u n de r flow ?
When new dat a is t o be insert ed int o t he dat a st ruct ure but t here is no
av ailable space i.e.free st orage list is em pt y t his sit uat ion is called
ov erflow.
When we want t o delet e dat a from a dat a st ruct ure t hat is em pt y t his
sit uat ion is called underflow.
1 8 . W h e t h e r Lin k e d List is lin e a r or N on - lin e a r da t a st r u ct u r e ?
According t o Access st rat egies Link ed list is a linear one. According t o
St orage Link ed List is a Non- linear one.
1 9 . W h a t do y ou m e a n by fr e e pool?
Pool is a list consist ing of unused m em ory cells which has it s own
point er.
2 0 . W h a t a r e t h e m e t h ods a v a ila ble in st or in g se qu e n t ia l file s ?
St raight m erging
Polyphase sort