TCS Prep
TCS Prep
gial–7thAugust
t
Day1Sl
ot1
Quant
s
Quest
ion1:
Asum ofRs7500amount
stoRs9075at10%p.ainacer
tai
ntime,whenthei
nter
estis
ngannual
compoundi l
y.Whati
stheamounti
n(Rs)oft
hesum atthesamesum atthesamer
atef
or
t
hoftheearl
i
ert
ime.
a.9412
b.9438
c.9680
d.9580
Answer
:
9438
Question2:
Theav erageweightofsomest udentsi
nclassis62kg.I
f8studentsofaver
agewei ght55kgl
eave
theclassand13st udentsofaverageweight65kgj oi
nstheclass,thentheaverageweightof
remainingstudent
si nthecl
assis63.9kg.Thenumberofst
udentsinthecl
assini
ti
all
ywas?
a.45
b.55
c.40
d.50
Answer
:
45
Quest
ion3:
Rameshcancompleteaworkin20days.Mohanis66.67%aseffi
cientasRamesh.Mohanand
Rameshworktoget
her.Rameshl
eavesaft
erworki
ngf orsomedays.Theremai
ningworki
sdoneby
Mohanin10days.Aft
erhowmanyday sdi
dRameshl eavethework?
a)10days
b)6.5day
s
c)8.5day
s
d)8day
s
Answer:
8days
Quest ion4:
Whenanumberxi sdivi
dedby9,
ther
emainderi
s6.Whenthesamenumberi
sdi
vi
dedby21,
the
remai nderi
s
12.Ift hexl
iesbetween250and450,
thenwhati
sthesum ofal
lpossi
ble
valuesofx.a.1107
b.855
c.1044
d.666
Answer :
855
Quest i
on5:
Abagcont ai
nsx+5y el
l
owbal ls,2x+1blueball
sandsomer edball
s.I
ftwobal
lsar
edrawnoneaf
ter
anotherfr
om thebagwithoutreplacement,t
hentheprobabi
li
tyofget
ti
ngaredandbl
ueball
is⅙.
Thet ot
albal
l
si nt
hebagi s4(x+2).Findthenumberofredball
s.
a.8
b.4
c.6
d.5
Answer
:
5
Questi
on6:
Thetaxichar
gesinacit
yconsistofafi
xedcharget
ogetherwit
hthefi
xedchar
gefort
hedistance
tr
avell
edinki
lometer
s.Whenaper sontrav
els72km hepays1107.Hepay
sRs.898fort
ravell
ing55
km.Whatwi l
lhehavetopayfortr
avell
i
ng45km?
a.Rs.826
b.Rs.740
c.Rs.693
d.Rs.738
Answer:
Rs.738
Quest
ion7:
Ccancompletet
hewor
kal
onei
n60days.AandBtake40%and75%moreti
methanC.Thewor
k
wasst
artedbyAandB,
andCworkedwi
thAonever
ythi
rdday,
Inhowmanydayt
heworkwil
lbe
compl
eted.
a.
b.
c.
d.
Answer
:
Questi
on8:
AandBst ar
tfr
om thesamepointandcoverequaldi
stances.Atravel
sbycarandcov
ersthe
di
stancei
n3hour swit
haspeedof50km/ h.TheBt r
avelsbybuswhi chstopsf
or10minsaft
er
cover
ing10kms.Inhowmucht i
mewi l
lthebusreachthedestinati
onift
hespeedoft
hebusis40%
l
essthanthespeedofthecar
?
a.6h40mi n
b.7h
c.7h30mi n
d.7h20mi n
Answer
:
7h20minut
es
Quest
ion9:
Asum whenlentattherat
eof1.5%p.a.
simpleint
erestforxyearsamount
edto17,600.
Whenthe
samesum wasl entatt
herat
eof18%p. a.TheSimpleinter
estfor(
x+2.
5)year
s,i
tamountedf
or
24,
320.Thevalueofxandthesum,respecti
vel
yare
a.2. 5and12500
b.2. 5and12800
c.2and12500
d.3.5and12800
Answer
:
2.
5and12800
Question10
Rajsoldhisbatatx%pr
ofi
taft
ergi
vi
ngadiscountofx%.
Themar kedpr i
cewasRs.2,
400mor
ethant
he
costprice.Andt
hesel
li
ngpri
cewasRs.900mor ethant
hecostprice.Fi
ndtheval
ueof4x
.
a.
100
b.50
c.40
d.200
Answer
:
100
Quest
ion11:
AandBstart
edabusiness,
wherethei
nvest
mentofAwas40%ofthetot
ali
nvest
ment.Bi
nvest
ed
hi
ssumfor4months.Theprof
itr
ecei
vedbyAwasthoft
hetot
alpr
ofit
.Fi
ndtheperi
odoft
imeof
i
nvest
mentofA
a.6months
b.4months
c.8months
d.12months
Answer
:
8months
Quest
ion12:
Whati
stherati
ooftot
almalest
udent
sstudy
ingmanagementi
ninst
it
uteBandDt
othet
otal
numberofst
udent
sstudyi
ngengi
neer
ingini
nst
it
uteAandE?
Di
sci
pli
ne Rat
ioofmal
etof
emal
est
udent
s
Management 5:
3
Engi
neer
ing 2:
3
Sci
ence 7:
11
Ar
ts 3:
2
Comput
erSci
ence 10:
11
Commer
ce 8:
7
a.3:
5
b.4:
7
c.8:
9
d.5:
8
Answer
:
5:
8
Questi
on13:
Thetot
al numberofstudentsstudyi
ngSciencei
ninsti
tutesAandDisappr
oxi
matel
ywhat
per
centagemor ethanthetotalnumberofmalestudentsstudy
ingi
ncommercei
ninst
it
utesB,
Cand
E?(correctt
oonedeci malpoint)
Di
sci
pli
ne Rat
ioofmal
etof
emal
est
udent
s
Management 5:
3
Engi
neer
ing 2:
3
Sci
ence 7:
11
Ar
ts 3:
2
Comput
erSci
ence 10:
11
Commer
ce 8:
7
a.42.
8%
b.54.
7%
c.35.
4%
d.48.
6%
Answer
:
54.
7%
Quest
ion14:
Thetot
al numberofmalestudent
sstudy
ingcomputersci
enceinal
lfi
veinst
it
utesi
swhatper
centage
morethant henumberoff
emal est
udent
sstudyi
ngengineer
ingi
ninst
it
utesA,C,DandE(cor
rectto
onedecimal pl
ace)
?
Di
sci
pli
ne Rat
ioofmal
etof
emal
est
udent
s
Management 5:
3
Engi
neer
ing 2:
3
Sci
ence 7:
11
Ar
ts 3:
2
Comput
erSci
ence 10:
11
Commer
ce 8:
7
a.13.
3%
b.14.
6%
c.16.
2%
d.15.
4%
Answer
:
15.
4%
Ver
bal
Quest
ion1:
Sel
ecttheopt
iont
hatgi
vest
hemostappr
opr
iat
emeani
ngoft
heunder
li
nedwor
d
Thepr
ophet
icqual
i
tiesoft
hesoot
hsay
er’
sspeechesear
nedt
hem agr
eatposi
ti
oni
ntheRoman
empi
re
a.Speculati
v
e
b.Pr
eventi
ve
c.Punit
ive
d.Predi
cti
ve
AnswerP
redi
cti
ve
Questi
on3
Whichoft
hef
oll
owi
ngwi
l
lsubst
ant
iat
ethedoubt
srai
sedi
nthel
astsent
ence?
a.Empir
icalevi
dencesuggest
ingthatmindful
nessmaynegat i
vel
yaf fectt
henatur
eof
thi
nki
ngb.Researchconfi
rmingmi ndf
ulnessboosti
ngourmood, performance,
and
heal
thalongtheway
c.Mindf
ulnessmeditat
orshavingsimi
larphysi
calandmentalhealt
ht hannon-
d.Mediareport
sclai
mingdramat i
cchangesinbrai
nstr
uctureandf uncti
onduetomindf
ulness
Answer-A
Questi
on4:
Whichoft
hefol
l
owi
ngst
atement
sist
ruebasedont
hepassage:
Sentencesofapar
agrapharegiv
enbelowinjumbledor
der
.Ar
ranget
hesent
encesi
nthecor
rect
ordertof
orm ameani
ngfulandcoher
entpar
agraph.
Theef
1. for
toft
alki
ngi
naf
orei
gnl
anguageal
somakespeopl
eref
lectmor
eonwhatt
heyar
esay
ing
mor erationaldecisionswhil
e
andtake
2.Any onewhol i
vesorwor ksinanon- Engli
shspeakingcountr
ybenefi
tshugel
yfrom almost
anyfami li
ari
ty
wi t
hits
3.Be y
ondt heindiv
idualbenefi
ts,21st-centur
yglobalrel
ati
onsandeconomicsvital
l
yneedpeopl e
functi
onf luently
whocan
4.Wi t
ht heglobal r
iseinEngli
sh,manynat i
ve-
Engl
ishspeakersquest
iontheneedtolearnafor
eign
l
anguage, butthereareseveralgoodr easonstodoso.
a)2,
4,1,3
b)3,
2,1,4
c)2,
1,3,4
d)4,2,1,3
Answer
:D
Quest
ion5:
I
nthefol
lowi
ngpassage,
somewor dshavebeendel
eted.Readt
hepassagecar
eful
lyandsel
ectt
he
most
appropr
iat
eopti
ontofi
lli
neachblank
A-Oneki ndofbott
leneckdeserv
esspeci
alat
tent
ion:t
hesupply-si
depr
obl
ems,
suchasscar
ce
met alsandl
andconstrai
nts,
that
thr
eat
ento thegr
een-energy
boom.
a)-
Lowb) -
Slow
c)-
d)-Blow
Answer
:Sl
ow
Questi
on6:
I
nthefoll
owi
ngpassage,
somewor dshavebeendel
eted.Readt
hepassagecar
eful
lyandsel
ectt
he
mostappr
opr
iat
eopti
ontofi
lli
neachblank
Ast hewor l
deconomywakesbackup, shor t
ageandpr i
cespi kesareaf f
ect i
ngev erythingf r
om the
Taiwanesechi pstot hecostofaFr enchbr eakfast.Oneki ndofbot t
leneckdeser vesspeci al
supplyof
suppl y-
sideproblem, suchasscar cemet alsandl andconst raints,t
hatthreatent o t hegr een-
boom.Farf rom beingt ransi
tory,t
hesebot tl
enecksr i
skbecomi ngar ecurringf eatur eofthewor ld
economy foryearst ocomebecauset heshifttoaener gysystem isstil
lonlyi nitsinf ancy.
Gov ernmentmust respondt othesemar ketsignals, facil
it
ati
ngahugepr i
v ate-sect orinvestment
increasescapacity.Iftheydonot, theyst andl i
tt
lechanceofkeepi ngt heirpr omisest o
boom ov erthenextdecadet hat
zero' .Andt herehasbeenadr amat icshiftintheat ti
tudeofbusi ness.I nv estorsare
fir
mschanget ackspur redbythenewr ealit
yt hatcleant echnologiesaremor e compet iti
ve.
B-I
nvest
orsar
edemandi
ngt
hatf
ir
mschanget
ackspur
redbyt
henewr
eal
i
tyt
hatcl
eant
echnol
ogi
es
ar
emor
e
a)-
Profi
tb)
-Cost
c)-
d)-
Money
B-cost
Questi
on7:
-Inthefol
lowingpassage,somewor dshavebeendel
eted.Readt
hepassagecar
eful
lyandsel
ect
themostappropri
ateopti
ont of
il
lineachbl
ank
Ast hewor l
deconomywakesbackup, shor t
ageandpr i
cespi kesareaf f
ect i
ngev erythingf r
om the
Taiwanesechi pstot hecostofaFr enchbr eakfast.Oneki ndofbot t
leneckdeser vesspeci al
supplyof
suppl y-
sideproblem, suchasscar cemet alsandl andconst raints,t
hatthreatent o t hegr een-
boom.Farf rom beingt ransi
tory,t
hesebot tl
enecksr i
skbecomi ngar ecurringf eatur eofthewor ld
economy foryearst ocomebecauset heshifttoaener gysystem isstil
lonlyi nitsinf ancy.
Gov ernmentmust respondt othesemar ketsignals, facil
it
ati
ngahugepr i
v ate-sect orinvestment
increasescapacity.Iftheydonot, theyst andl i
tt
lechanceofkeepi ngt heirpr omisest o
boom ov erthenextdecadet hat
zero' .Andt herehasbeenadr amat icshiftintheat ti
tudeofbusi ness.I nv estorsare
fir
mschanget ackspur redbythenewr ealit
yt hatcleant echnologiesaremor e compet iti
ve.
becauset
heshi
ftt
oa(
cleaner
) ener
gysy
stem i
sst
il
lonl
yini
tsi
nfancy
a.Neater
b.Cl
eaner
c.Deeper
d.Ri
cher
Answer-cl
eaner
Questi
on8
-Inthefol
lowingpassage,somewor dshavebeendel
eted.Readt
hepassagecar
eful
lyandsel
ect
themostappropri
ateopti
ont of
il
lineachbl
ank
Asthewor l
deconomywakesbackup, short
ageandpricespi
kesareaff
ecti
ngever
ythingfrom t
he
Taiwanesechipst
othecostofaFrenchbreakfast
.Onekindofbot
tl
eneckdeser
vesspecial
suppl
yof
questi
onistakenfr
om suppl
y-si
deproblem,suchasscarcemetal
sandlandconst
raints,
that
thegreen-
ener
gyboom.Farf
rom bei
ngt
ransi
tor
y,t
hesebot
tl
enecksr
iskbecomi
ngar
ecur
ri
ngf
eat
ure
ofthe
worl
deconomyf ory earstocomebecauset heshif
ttoaenergysystem issti
llonl
yinits
i
nfancy.
Governmentmustr espondtothesemarketsignals,faci
l
itati
ngahugepr iv
at e-
sector
i
nvestmentboom ov erthe
nextdecadethati
ncr easescapaci
ty.I
ftheydonot, t
heyst andli
tt
lechanceofkeepi ngtheir
'
net-
zero' .Andt herehasbeenadr amati
cshiftintheatti
tudeofbusiness.Investors
t
hatfir
mschanget ackspur redbythenewr eal
it
ythatcleantechnologiesar
emorecompet i
tiv
e.
I
ftheydonot
,theyst
andl
i
ttl
echanceofkeepi
ngt
hei
rpr
omi
sest
oreach‘
net
-zer
o’
Opt
ions
a.Emissi
ons
b.
Remissi
ons
c.
d.Di
scharges
Answer
:Remi
ssi
ons
Quest
ion9-
Thef
oll
owi
ngpar
agr
aphcont
ainsf
oursent
ences,
thr
eeofwhi
char
egr
ammat
ical
l
yincor
rectand
onl
yonei
scor
rect
.Fr
om t
hegi
venopt
ions,
sel
ectt
hesent
encet
hati
sgr
ammat
ical
l
ycor
rect
.
Pr
oduct
shav
eli
mit
edl
i
fe,
notonl
yfort
heconsumer
'sv
iewpoi
nt,
butal
soasf
arast
hepr
oduceri
s
concer
ned.Forexampl
e,apar
ti
cul
armodel
ofcarmi
ghtl
astf
ivey
ear
sbef
orepr
oduct
ioni
sst
opped
andi
t’
srepl
acedbyacompl
etel
ynewmodel
.Newi
nvent
ionsandt
echnol
ogyhasmademanypr
oduct
s
obsol
ete.Fashi
oncanbeanot
her
Opt
ions
a.Product
shav
eli
mit
edl
i
fe,
notonl
yfort
heconsumer
'sv
iewpoi
nt,
butal
soasf
arast
he
pr
oducer
isconcer
ned.
b.Forexampl
e,apar
ti
cul
armodel
ofcarmi
ghtl
astf
ivey
ear
sbef
orepr
oduct
ioni
s
st
oppedandi
t’
srepl
acedbyacompl
etel
ynewmodel
.
c.Newi
nvent
ionsandt
echnol
ogyhasmademanypr
oduct
sobsol
ete.
d.Fashi
oncanbeanot
hermaj
ori
nfl
uenceont
hel
i
vesofapr
oduct
.
Answer
:
Newi
nvent
ionsandt
echnol
ogyhasmademanypr
oduct
sobsol
ete.
Quest
ion10:
Sel
ectthemostappr
opr
iat
eAnt
ony
m oft
hegi
venwor
d:
Compassi
onat
e
Opt
ions
a.
Peerl
ess
b.Vi
rul
ent
c.Anti
pologi
nisi
t
d.Ruthl
ess
Answer:
Ruthl
es
s
Quest
ion11:
Fort
hef oursentence(1to4)paragr
aphbel
ow,sentences1and4ar
egi
ven.Fr
om P,
Q,RandS.
Sel
ecttheappropri
atesentencef
or2and3respecti
vely.
1.Thetotal
i
tari
anregi
mesestabl
ishedint
he1920’sand1930’
3grossl
yvi
olat
edhumanr
ight
sin
t
heirownterr
it
ori
es
2.
3.
4.Thiswasrefl
ectedi
ntheChart
eroftheUNsignedon26june1945
P.Theideasofelaborationandprot
ecti
onofhumanr ight
shav
ebeengr adual
l
ytransfor
medint
o
wri
tt
enlawsQ: Dur
ingt heSecondworldwar,ther
ewasmassiveabuseofhumanl i
feanddi
gnit
y
R:Howev er
,thecharterdoesnotestabl
ishanyspeci
fi
cmechanism ofimpl
ementati
on
S:I
tbecamecl earthatinter
nati
onal
instrumentswer
eneededtocodifyandpr
otecthumanri
ghts
Opt
ions
a.PQ
b.PR
c.QS
d.
QP
Answer
:P
Q
Quest
ion12:
Sel
ectthemostappr
opr
iat
eopt
iont
hatcansubst
it
utet
heunder
li
nedwor
dsi
nthegi
vensent
ence.
Tocreat
eatrul
ysuccessf
ulmov i
ethedi
rect
or,
thewr
it
ers,
act
ors,
andt
heci
nemat
ogr
apher
s,
mustworkt
ogetherwi
thotherpeopl
ecl
osely
.
Opt
ions
a.Fel i
citat
e
b.Cor roborat
e c.
Collaborate
d.Facil
it
ate
Answer
:Col
l
abor
at
e
Quest
ion13:
Readthepassagebel
owandanswert
hequest
iont
hatf
oll
ows:
Offer
ingchil
drenachoi cefaci
li
tatescooperati
onandusual l
yavoi
dsawaroft hewill
s.Of t
enatthis
age,youngchildr
enwi ll
say“ No”tosomet hingparentsimposeont hem,si
mplytoexertt heir
i
ndependence.Thi sstubbornnessi sn’
tnecessari
lybad.Insteadi
t’
sasignofchil
dren’
sdev el
opi
ng
i
ndivi
duali
ty.Ifchildr
enar egi
ventwochoi ces,suchasbr eadorwheatfl
akesforbreakfast,ever
yone'
s
needscanbemet .Thechi l
dgetshealthytoeatbreakfast,
cansay“No”tooneoft hem, andtherei
sn’t
abattleofbreakfast.
Whi
choft
hest
atement
sbel
owcanbei
nfer
redf
rom t
hepassage?
a.Choi
cest
obeof
fer
edt
ochi
l
drenshoul
dbesel
ect
edby
par
ent
s
b.Chil
drenshoul
deatonlybreadorwheatflakedfor
breakf
ast
c.Therearesi
tuat
ionswherechil
drenshoul
dhav eabsolut
ely
nosayd.Whenchil
drenNotosomet hi
ng, anewchoiceshould
begi
ven.
Answer
:
Whenchil
drenNot
osomet
hing,
anewchoi
ceshoul
dbegi
ven
Quest
ion14:
Readthepassageandanswert
hequest
ionst
hatf
oll
ow:
Answer:
I
teluci
datest
hehar
mful
eff
ect
sofmi
ndf
ulnessasat
echni
queofescapi
ngt
het
yrannyofone’
spast
.
Codi
ng
Quest
ion1
Gi
venanar r
ayArr
[]ofNint
egersandaposi
ti
vei
ntegerK.Thet
aski
stocy
cli
cal
l
yrot
atet
hear
ray
cl
ockwisebyK.
Note:Keepthef
ir
stofthear
rayunal
ter
ed.
Example1:
5---
ValueofN
{10,20,30,40,
50}-
--
ElementofAr
r[
]
2 ValueofK
Out
put:
4050102030
Example2:
4 Val ueof N
{10,
20,30,40} El
ementof
Arr
[]
1 ValueofK
Out
put:
40102030
Sol
uti
oninC++:
#i
ncl
ude<bi
ts/
stdc++.
h>usi
ngnamespace
st
d;
v
ect
or<i
nt>r
otat
e(i
ntnums[
],
intn,
intk)
{i
f(k>n)
k=k%n;
v
ect
or<i
nt>ans(
n);
f
or(inti=0;i<k;
i++)
{ans[
i]=nums[n-k+
i
];
}
i
ntindex=0;
f
or( i
nti=k; i<n;
i++)
{ans[
i]=
nums[index++]
;
}
r
eturnans;
}
i
ntmain()
{
i
ntArr
ay[]={1,2,3,4,
5};
i
ntN=sizeof(Ar
ray)/
si
zeof
(Array
[0]
);i
ntK=2;
v
ect or
<int
>ans=r ot
ate(
Arr
ay,
N,K)
;
f
or( i
nti=0;i<N;++i){
cout<<ans[
i]<<''
;
}
}
//AnotherApproachi
n
C++
#incl
ude<bi
ts/st
dc++.
h>
usingnamespacestd;
i
ntmai
n()
{
i
ntN;
ci
n>>N;
v
ect
or<i
nt>Ar
r(N)
;
for(i
nti
=0;i
<N;
i++)
cin>>Ar
r[
i]
;
i
ntK;
ci
n>>K;
K=K%N;//(
ifK>=N)
K=(N-
K);
rev
erse(
Arr.
begi
n()
,
Arr
.begi
n()
+K);
rev
erse(
Arr.
begi
n()
+K,Arr.
end()
);
rev
erse(
Arr.
begi
n()
,Ar
r.end()
);
for
(i
nti=0;i
<N;i
++)
cout<<Ar
r[
i]
<<""
;
r
etur
n0;
}
Sol
uti
oni
nJav
a:
i
mpor tjav a.
util
.*;
publ
iccl ass
Main
{
st
atici nt[
]rotat
e(i
ntnums[
],
intn,
intk){
i
f(k>n)
k=k%n;
i
nt[
]ans=newi
nt[
n];
f
or(inti=0;i<k;
i++)
{ans[
i]=nums[n-k+
i
];
}
i
ntindex=0;
f
or(inti=k;i<n;i
++){ans[
i]
=nums[index
++];
}
r
eturnans;
}
publ
icst
ati
cvoi
dmain(
Str
ing[]ar
gs)
{i
ntArr
ay[
]={1,
2,3,4,
5} ;
i
ntN=5;
i
ntK=2;
i
nt[]ans=r ot
ate(Ar
ray,N,
K)
; for(i
nti=0; i
<N; ++i){
System.out.
pri
ntl
n(ans[i
])
;
}
}
}
Questi
on2
Gi
v ent
wonon-
negati
veintegersn1andn2,wheren1<n2.Thetaskist
ofindthet
otal
numberof
i
nteger
sint
herange[n1,n2](
bothi
nclusi
ve)whi
chhavenor epeat
eddigi
ts.
Forexample:
Supposen1=11andn2=15.
Thereisthenumber11,
whi
chhasr
epeat
eddi
git
s,but12,
13,
14and15hav
enor
epeat
eddi
git
s.So,
theoutputi
s4.
Example1:
I
nout:
11--
-Vlaueof
n115--val
ueof
n2
Out
put
:
4
Example2:
I
nput:
101--v
alueof
n1200--val
ue
ofn2
Output
:
72
Sol
uti
oninC++:
#i
ncl
ude<bi
ts/
stdc++.
h>usi
ngnamespace
st
d;
i
ntf
ind(
intn1,
intn2){
i
ntcount=0;
f
or(inti
=n1;i<=n2;
i++)
{i
ntnum =i
;
v
ector<bool
>visi
ted;
v
isi
ted.assi
gn(
10,fal
se)
;
whil
e(num >0){
i
f(vi
sit
ed[num %10]==
t
rue)break;
v
isi
ted[num %10]=
t
rue;num /=10;
}
i
f(num ==0)
count
++;
}
r
etur
ncount
;
}
i
ntmai n(
)
{
i
ntn1=101,n2=200;
cout<<fi
nd(
n1,
n2)
;
}
//Anot
herApproachin
C++:
#incl
ude<bi
ts/
stdc++.
h>
usingnamespacestd;
i
ntf i
nd(i
ntn1,i
ntn2)
{intcount=0;
for(i
nti=n1;i<=n2;
i++)
{intnum =i
;
str
ings=t o_stri
ng(num);
set<i
nt>unique(s.
begin(
),
s.
end( )
);i
f(s.si
ze()==
unique.
size()
){
count++;
}
}
r
etur
ncount
;
}
i
ntmai
n()
{
i
ntn1=101,n2=200;
cout<<f
ind(
n1,
n2)
;
}
Soluti
oni nJava:
i
mpor tjav a.
uti
l.
*;
publiccl ass
Main
{
statici ntf
ind(i
ntn1,i
ntn2)
{intcount=0;
for( inti=n1; i<=n2;i
++)
{intnum =i ;
bool
ean[
]vi
si
ted=new
bool
ean[10];whi
l
e(num >0){
i
f(vi
sit
ed[num %10]==tr
ue)
br
eak;
vi
sit
ed[num %10]=
t
rue;num /=10;
}
i
f(num ==0)
count
++;
}
r
etur
ncount
;
}
publ
icst
aticv
oidmain(St
ring[
]ar
gs)
{i
ntn1=101,n2=200;
Sy
stem.out
.pr
int
ln(
fi
nd(n1,n2)
);
}
}
Day1Sl
ot2
Quant
s
Question1:
Theav erageof19numbersi
s42.Theaverageoft
hefi
rst6numbersis38.5andthatofthelast14
number sis
45.5.I
fthesixthnumberi
sexcl
udedthenwhatist
heaverageoft
heremainingnumbers?(Correctt
o1
decimalplace)
a.40.8
b.41.2
c.40.4
d.41.6
Answer :
40.4
Question2:
Acer t
ainsum wasi nv est
edat20%p.
afor2year
ssucht
hatthei
nter
estwascompoundedhalf
-
yearl
yfort hefi
rstyearandcompoundedyear
lyf
ort
henexty
eart
het ot
ali
nter
estear
nedonthesum
wasRs10, 170,thenthesum (i
nRs.)was:
a.24,500
b.22,500
c.25,
000
d.24,000
Answer:
22,
500
Quest
ion3:
Thenumbers4121,4793,
and6464l
eav
ether
emai
nderxi
neachcasewhendi
vi
dedbyt
hegr
eat
est
numbery.Theval
ueof(2y-x)i
s:
a.352
b.432
c.426
d.336
Answer
:
352
Quest i
on4:
Adividedmoneybetween2sonsBandC.Theamountofmoneyr ecei
vedbyBaft
er13year
sis
equal t
otheamountreceiv
edbyCin15yearsatt
herat
eof4%p.acompoundint
erest
.The
di
fferencebet
weentheirshar
esi
sRs.102.Fi
ndtheamount(
inRs)int
otal
?
a.2602
b.1250
c.2702
d.1352
Answer:
2602
Question5:
Thenumberofway sofchoosing(
x+8)ball
soutof36bal
l
sisequal
tochoosi
ngxbal
l
soutof36
bal
ls.Findthenumberofwaysofchoosi
ng(n+5)bal
l
soutof25bal
ls.
a.1, 69,
900
b.1, 77,
100
c.1, 74,
100
d.1, 70,
000
Answer:
1,77,
100
Quest i
on6:
Af racti
onbecomes2/ 3,i
f1i saddedtoitsnumerat
orand2isaddedtoitsdenominat
or.I
f2i
s
subtractedfr
om t
henumer at
orand5i saddedtoit
sdenomi
nat
or,t
hefr
acti
onbecomes1/ 4.I
f3i
s
addedt othenumerat
orand1i ssubt
ract
edfrom t
hedenomi
nat
or,
thent
hefract
ionbecomes:
a.4/3
b.3/4
c.6/5
d.5/7
Answer
:
4/3
Quest
ion7:
Ashopkeeperboughtal
ampatRs.1,
200andther
ati
oofi
tscostpr
iceandmarkedpr
icewas3:5.I
t
wassoldaft
ertwosuccessi
vedi
scount
sof30%and18%andincur
redalossorpr
ofi
tofx%.Fi
ndx?
A.4⅔pr of
it
B.4⅓l oss
C.4⅔l oss
D.4⅓pr ofit
Answer
:
4⅓ l
oss
Quest i
on8:
Bi s¼t imesmor
ethantheageofA.5y earsago,t
hesum oft heagesofBandCwas50y ear
s.The
averageageofAandBatpr esenti
s22.
5y ears.Af
ter6years,theageofDwil
lbe⅕ ti
mesmor e
thanC’sageatpr
esent
.Findtherati
oofthesum ofpresentagesofBandCt othatofAandD.
a.5:
9
b.20:27
c.10:27
d.15:14
Answer
:
15:
14
Question9:
Arunbor rowedacer t
ainsum attherat
eof8%forthef
irstthr
eeyear
s,att
herateofp.
af orthenext
4y ear
sandatt herat
eof15%f ortheperi
odbeyond7years.I
fhepl
aysatotal
simplei
nterestofRs.
8,
015att heendof year
s,thesum (i
nRs.
)was:
a.6,500
b.7,000
c.7,200
d.7,500
Answer:
7000
Question10:
AandBar ecomingfrom opposi
tedi
rect
ions.Astar
tsat10a.m.towardsB.Bstar
tsat11a.m.
towardsA. ThespeedsofAandBar e40km/ hand50km/ h,
respect
ivel
y.Atwhatt
imewil
ltheymeet
eachot her,i
fAandBar e100kmapart?
a.12: 00p.m.
b.11: 50a.m.
c.10: 40a.m.
d.11: 40a.m.
Answer
:
11:
40am
Quest
ion11:
15menand20boyscancompl
eteawor ki
n15day
s.20menand35boy
scancompl
etet
hesame
wor
kin10day
s.Det
erminet
heef
fici
encyofboy
swit
hrespectt
omen
a.
1:1.
5
b.1:
2
c.
1.5:
1
d.2:
1
Answer
:
1:2
Studythegiveninf
ormationandanswert hequestions.
Inacompanyt hereare1300empl oy
ees.Thecompanyhasf i
v edepart
ment sHR,
Finance,Mar
keti
ng,Administr
ati
onandManuf actur
ing.Outoft het
otalfemaleemployeesi
nthe
company32%wor kintheHRdepar t
ment ,20%worki ntheFi
nancedepar tment,18%workint
he
mar ket
ingdepar
tmentandt heremaini
ng180f emaleempl oyeesworkint headmini
str
ati
on
department.
Therearenof emaleemployeesinthemanuf act
uringdepartment.
Outofthet
ot al
maleemployeesinthecompany,15%worki
ntheHRdepartment
,27%wor ki
nthe
market
ingdepartment,
25%wor kintheFi
nancedepar
tment
,20%workintheadmini
str
ati
on
depar
tment,andtheremai
ningmal eempl
oyeesworkint
hemanufact
uri
ngdepart
ment
Questi
on12:.
Whatistheaver
agenumberofemploy
ees(mal
eandfemal
e)whowor
kint
he
Market
ing,
Fi
nanceandAdmini
str
ati
ondepar
tment
s?
a.301
b.304
c.308
d.312
Answer
:
304
Questi
on13:
Thetotalnumberofmal eempl oy
eeswor ki
ngintheHR andfinancedepar
tment
si swhat
per
centage ofthe t
otalnumber of female empl
oyees wor
king in HR,market
ing and
Admini
strat
iondepar
tment
(near
esttoanint
eger)
?
a.54%
b.56%
c.60%
d.58%
Answer
:
60%
Questi
on14:
Ift
henumberoff emaleemploy
eesinHRdepar t
menti
ncr
easesby25%,thenumberoffemal
e
employeesi
nt hef i
nancedepar
tmentincreasesby15% and 48 f
emaleempl
oyeesleav
ethe
administ
rat
iondepartment
,andthenthetotalnumberoff
emaleemploy
eesint
hecompanywill
i
ncreaseby
a.15
b.18
c.16
d.12
Answer
:
18
Quest
ion15:
Ifmal
eempl oyeesfrom t
hemar ket
ingdepart
mentaretransfer
redtothemanuf actur
ingdepart
ment
and20femal eemployeesfrom t
headmi ni
str
ati
ondepartmentaretr
ansfer
redtot heHRdepar t
ment,
thent
hetotalnumberofempl oyeesinthemarketi
ngdepartmentiswhatpercentagelessthanthe
numberofempl oyeesintheadmini
strat
iondepart
ment?
a.
b.
c.
d.
Answer
:
Ver
bal
Quest
ion1.Sel
ectt
heopt
iont
hatgi
vest
hemostappr
opr
iat
emeani
ngoft
heunder
li
nedwor
d.
Theaf
for
dancest
hatsoci
almedi
ahav
einor
gani
sat
ional
cont
ext
scanbeunder
mined.
Opt
ions
a.Liabi
li
ties
b.Features
c.Qualit
ies
d.Possibili
ti
es
Answer
:Itcanbebot
hfeat
uresandqual
i
ties
Quest
ion2.Thefol
lowi
ngparagraphcont
ainsfoursentences,t
hreeofwhichar
egrammat
ical
l
y
i
ncorr
ectandonlyoneiscor
rect
.From t
hegivenoptions,sel
ectthesent
encewhichi
s
gr
ammat i
call
ycorr
ect.
WhenJamset j
iTatastartedat r
adingfi
rmfrom 1868, fewcouldhav epredict
edthathewouldone
daybecal
ledtheFatherofTr adingFir
m.Borni nNav sari
,Gujr
at,JamsetjimovedtoBombay ,now
mumbai,i
nt heageoffour t
eenandj oi
nedhisfatherstradingfi
rm.Fift
eeny earshebranchedouton
hi
sownandbui ltareputati
ononacqui ri
ngandt ur
ningar oundsickmill
s.Jamset j
ial
soputinplace
pi
oneer
inglabourpracti
ces,longbeforeanylabourlawscamei ntoexi
stence.
Opt
ions
a.Fifteenyearshebr anchedoutonhi sownandbui l
tar eput
ati
ononacquir
ingandt urning
aroundsickmil
ls.
b.Jamset j
ial
soputinpl acepioneeri
nglabourpr
actices,l
ongbefor
eanylabourlawscame
i
ntoexist
ence.
c. Bor ni
nNav sar
i,Gujrat,Jamsetj
imov edtoBombay ,nowmumbai ,i
ntheageoff ourteen
andjoi
nedhisfatherst r
adingf
ir
m.
d.WhenJamset jiTatast ar
tedatradi
ngf i
rmfrom 1868,fewcouldhavepr
edict
edt hathe
wouldonedaybecal ledtheFatherofTradi
ngFi
rm.
Answer
:
Fi
ft
eeny
ear
shebr
anchedoutonhi
sownandbui
l
tar
eput
ati
ononacqui
ri
ngandt
urni
ngar
ound
sickmil
ls.Wrongsent
ences-
putint
o
placeAtthe
age
In1868
Quest
ion3)Forthefoursentences(1to4)Par
agr
aphbel
ow,
sent
ences1and4ar
egi
ven.Fr
om
P,
Q,RandSselecttheoptionscaref
ull
y.
1.I
nter
nat
ionalandinternalconf
li
ctsf
orcepeopl
et ol
eavetheir
homes.2.
3.
4.UNHCRisresponsibleforsuperv
isi
ngint
ernat
ional
provi
sionsforpr
otect
ionofr
efugees.
P.
Probl
emsr
elat
ingt
oref
ugeemov
ement
sar
eof
tenaggr
avat
edbydr
ought
,fami
neandanar
chy
.
Q.Al
thoughr
efugeel
awi snotdi
rect
lyappl
i
cabl
etoi
nter
nal
l
ydi
spl
acedpeopl
e.UNHCR
pr
ovi
desassi
stancet
othem.
R.Pr
event
ivest
rat
egi
esmustbeev
olv
edt
oav
ertandr
esol
ver
efugeef
lowsandi
nter
nal
displ
acement
.
S.Peopl
ewhomov ewit
hint
hei
rowncount
ryar
ecal
l
edi
nter
nal
l
ydi
spl
acedper
sonswhi
l
ethosewho
l
eavearecal
l
ed(
missi
ng)
a)RQ
b)SP
c)SQ
d)PQ
Answer:
C
SQ
Quest
ion4.Readt
hepassagebel
owandanswert
hequest
iont
hatf
oll
ows:
IntheyearssincetheColdWarandcol l
apseoftheSovi
etUnion,t
hetwocountri
eshav eworkedto
setbesidetheirdi
ff
erences,
buttensi
onstil
lsi
mmer sbeneat
hthesurf
ace.Russi
awasst il
lviewed
bymanyAmer icansasremote,myster
ious,
andevendangerous.Si
mil
arl
y,theRussianshar
bour
bothadmi r
ati
onandcont emptforAmer i
ca’
seconomicprowessandsuperpowerstatus.
Whi
choft
hest
atement
sbel
owcanbei
nfer
redf
rom t
hepassage?
a)Russi
aandAmericadonottrusteachother.
b)Thecoll
apseoft
heSovietUnionhasmadet hetwocount r
iesenemi
es.
c)Russi
aandAmericahaveworkedoutt hei
rdiff
erences.
d)Russi
anshateAmeri
cansmor ethanAmer icanshateRussians.
Answer-A
Russi
aandAmer
icadonott
rusteachot
her
Questi
on5)Sent
encesofaparagr
aphar
egi
venbel
owi
naj
umbl
edor
der
.Ar
ranget
he
sent
encesi
ncorrector
dert
oform-
a)3,
2,
4,1
b)2,
1,3,
4
c)3,
1,
4,2
d)2,
4,3,
1
Answer
D
2,4,
3,
1
Quest
ion6.Sel
ectt
heappr
opr
iat
eopt
iont
hatsubst
it
utest
heunder
li
nedwor
dint
hegi
vensent
ence.
Wheneverwet al
kaboutaschool,
teacher
s,st
udent
s,andthei
rparent
saredescr
ibedasthei
rmost
i
mportantgroupofpeoplewhoareinvol
vedwit
htheorgani
zat
ion.haver
esponsi
bil
it
iest
owardsand
hav
eani nt
erestini
tssuccess.
Opt
ions
a.Stakehol
der
s
b.Upholder
s
c.Beholder
s
d.Placehol
der
s
Answer-
st
akehol
der
s
Uphol
der-Anupholderofapar
ticul
artradi
ti
onorsy
stem i
ssomeonewhobel
iev
esst
rongl
yini
t
andwil
lsuppor
titwhenitist
hreatened.
Behol
der-aper
sonwhoseesorobser
vessomeoneorsomet
hing.
Pl
acehol
der-per
sonort
hingt
hatoccupi
est
heposi
ti
onorpl
aceofanot
herper
sonort
hing
Quest i
on7.NoEcosy stem mor eimpor tanti nmi tigati
ngt heef f
ect sofcl i
mat echanget hantropical
rainforest .AndSout h-EastAsi aishomet ot hewor l
d’sthird-bi
ggestpat chofi t,behi ndt heAmazon
andCongobasi ns.Ev enthoughhumansr eleasecar bonf rom thesef orestst hroughl oggi ng,cl
ear-
fell
ingf oragr icultureandot herdisruptions, somear esov astandf ecundt hatt hegr owt hoft he
plant swi thint hem absor bsev enmor ef r
om t heat mospher e.TheCongobasi n, f
ori nstance, l
ocksup
600m t onnesofcar bonay earmor ethani treleases, accordingtot heWor ldResour cesI nsti
tute
(WRI ),ani nt ernational NGOt hatisequi val
entt oaboutat hirdofemi ssionsf rom al lAmer i
can
transpor t.TheAmazon, too, r
emai nsanetabsor ber(thoughf oury earsofmassi vef ir
esandcl eari
ng
forcat tlehav ebr oughti ttoat ipping-point).Incont rast,suchist heext entofcl earingf orplantati
ons
i
nSout h- EastAsi a’srainforests,whi chrunf rom My anmart oIndonesi a,thatov erthepast20y ears
theyhav et ur nedf rom agr owi ngcar bonsi nkt oasi gni f
icantsour ceofemi ssions—near ly500m
tonnesay ear.Indonesi aandMal aysia,homet ot hebi ggestexpensesofpr i
stinef orest, havelost
mor ethanat hirdofi tthiscent ury.Cambodi a, LaosandMy anmar ,rel
at iv
enewcomer sto
def orestat ion,aremaki ngupf orlostt i
me.
Whi
chofthef oll
owi ngstatementsisNOTTRUEaspert hepassage?
A.Cli
matechangesmi tigat
etheeffectsoftropi
calr
ainforest
s.
B.Ourplanetr equir
esmor ecarbonsinksthansourcesofcar bonemissi
on.
C.Emissionsf rom al
l Amer i
cancountri
esexceed500m t onnesofcarbonayear.
D.Thewor l
disnotagai nstagri
cultur
eperse, butagainstdefor
estat
ionatl
arge.
Answer
:Opt
ionC
Quest
ion8.Sel
ectt
hemostappr
opr
iat
eANTONYM oft
hegi
venwor
d.
Er
rat
ic
A.Inv
ariant
B.Concurrent
C.Sporadic
D.Consisten
tAnswer
:
Opt
ionD
Codi
ng
Quest
ion1:
Gi
venanar
rayAr
r[]ofNint
egernumber
s.Thet
aski
stor
ewr
it
ethear
raybyput
ti
ngal
lmul
ti
pli
ersat
t
heendoft
hegiv
enar r
ay.
Note:Theor
derofthenumber
swhichar
enotthemult
ipl
ierof10shoul
dremai
nunalt
ered,
and
si
milar
lyt
heorderoft
henumberswhi
charet
hemult
ipl
ierof10shouldr
emainunal
ter
ed.
Forexample:
SupposeN=9andAr r[
]={
10,12,5,
40,30,7,
5,9,10}
Youhavetopushal
lthemul
ti
pleof10attheendofthear
rayAr
r[
].
Hencetheout
puti
s:12575910403010
Sol
uti
oninC++
#i
ncl
ude<bi
ts/
stdc++.
h>usi
ngnamespace
st
d;
i
ntmai
n()
{
i
ntN;
ci
n>>N;
v
ect
or<i
nt>Ar
r(N)
;
for(i
nti
=0;i
<N;
i++)
cin>>Ar
r[
i]
;
v
ect
or<i
nt>A1,
A2;
f
or(i
nti =0;i
<N; i
++)
{
i
f(Arr[i
]%10==0)
A2.push_back(Ar
r[
i]
);
el
seA1.
push_
back(
Arr
[i
])
;
}
for
(i
nti=0;i
<A1.
size(
);i
++)
Arr
[i
]=A1[i
];
i
ntk=A1.
size(
);
for
(i
nti=0;i<A2.
size(
);i
++)
Arr
[k++]=A2[i
];
for
(i
nti=0;i
<N;i
++)
cout<<Ar
r[
i]
<<""
;
r
etur
n0;
}
Quest
ion2:
Giv
enanarrayAr
r[]ofNinteger
sandaposit
ivei
ntegerK.Thetaskist
oDiv
idet
hearr
ayi
ntotwo
subar
rayfr
om ri
ghtaft
ertheKthposi
ti
onandsli
detheleftsubarr
ayofKel
ementst
otheend.
Exampl e1:
5---
ValueofN
{10,20,30,40,
50}-
--El
ementofAr
r[
]
2 ValueofK
Out
put:
3040501020
Example2:
4 Val ueof N
{10,
20,30,40} El
ementof
Arr
[]
1 ValueofK
Out
put:
20304010
Sol
uti
oninC++:
#i
ncl
ude<bi
ts/
stdc++.
h>usi
ngnamespace
st
d;
i
ntmai
n()
{
i
ntN;
ci
n>>N;
v
ect
or<i
nt>Ar
r(N)
;
for(i
nti
=0;i
<N;
i++)
cin>>Ar
r[
i]
;
i
ntK;
ci
n>>K;
queue<i
nt>que;
for
(i
nti
=0;i
<N;i
++)
que.
push(
Arr
[i
])
;
whil
e(K-
-)
{
i
ntx=que.
fr
ont
();
que.
pop()
;
que.
push(
x);
}
whi
le(
!que.
empt y(
)){cout
<<que.f
ront(
)<<"";
que.pop()
;
}
r
etur
n0;
}
Day1Sl
ot3
Quant
s
Questi
on1:
25numberswererecordedandtheiraveragewascal
culat
edas50. 6.Lat
er,
itwasfoundthatt
hree
numbers29,35and72wer ewronglytakenas92,53,and27,respecti
vel
yandonenumberwas
i
nadvert
entl
ylef
toutfr
om beingrecorded.Whati
sthecorrectaverageofal
lthenumbers?
a.50.5
b.49.5
c.48.7
d.48.2
Answer
:
49.
5
Quest
ion2:
Asum ofr s.Xwasl
entat10%p.a.For4years,
int
erestcompoundedannual
ly.I
fthedi
ffer
ence
bet
weent hecompoundint
erestf
orthefour
thyearandthethi
rdyeari
srs.847,thenwhati
stheval
ue
ofx?
a.53,
000
b.70,
000
c.77,
000
d.66,
000
Answer
:
77,
000
Quest
ion3:
Thevalueof
is:
a.12.2
b.9.6
c.14.6
d.11.2
Answer
:
9.6
Quest i
on4:
Inanexami nat
ion,50%passedinMathsand75%passedinEngl
i
shand20%passedinbot
h
subjects.
Findthedi f
fer
encebet
weenthenumberofstudent
swhopassedonl
yinEngl
i
shtothosewho
passedi nmat hs,i
f270student
spassedinbot
hthesubject
s.
a.180
b.120
c.210
d.150
Answer
:
210
Questi
on5:
Abagcontai
nsx+2bl
ackbal
l
s,x+5r
edbal
l
sandx+8whi
tebal
l
s.Thepr
obabi
l
ityofget
ti
ngabal
ck
bal
lis
.Whati
sthepr
obabi
l
ityofget
ti
ngt
hreebal
l
sofdi
ff
erentcol
our
s,whent
hreebal
l
s
ar
edr
awn?a.
b.
c.
d.
Answer
:
Quest i
on6:
Thecostof5pensand7not ebooksi srs.224.I
fthecostofapenincr
easesbyrs.2andthecostof
anot ebookreducesbyr
s.3,
thent hecostof3pensand4not ebooksi
srs.124.Whatist
heorigi
nal
cost( i
nrs.
)of4pensand3not ebooks?
a.144
b.121
c.122
d.127
Answer
:
122
Quest
ion7:
Anart
icl
eissoldat15%prof
itbygi
vi
ngadi
scountof17.
2%.Themar
kedpr
iceoft
hear
ti
cl
eisRs.5000.
Det
erminethecostpri
ce.
a.Rs.5,
095
b.Rs.36,000
c.Rs.3,600
d.Rs.6,995
Answer
:
Rs.3,
600
Quest i
on8:
AandBi nvestedinther
ati
o4:5.Aleftaf
ter9mont hsandBincreasedhisinv
est
mentby20%.C
j
oinedwi thani nv
estmentof33.
33%oft hepresentinv
est
mentofB.Theannual prof
itwasRs.
42,
000.Fi ndthepercent
agediff
erencebetweenAandB’ spr
ofittothatofA.
a.25%
b.175%
c.50%
d.75%
Answer
:
175%
Question9:
Theamountobt ai
nedbySumitbyi
nv esti
ngasum ofRs.10,
920for3yearsattherat
eof10%p.a
simpleint
erestisequal
totheamountobt ai
nedbyRaghavbyinv
esti
ngacer t
ainsum (i
nRs.
)for5
yearsattherateof8%p.asimplei
nterest.Whati
s85%ofthesum (i
nRs.)invest
edbyRaghav?
a.8519
b.8619
c.8591
d.8692
Answer:
8619
Quest
ion10:
Amanwal ksar
oundasquar
egardenofperi
meter8km ataspeedof2km/
h,3km/
h,4km/
hand5
km/honeachsideoft
hesquar
egarden.Cal
cul
atetheaver
agespeed.
a.3.112km/h
b.2.912km/h
c.3.312km/h
d.3.212km/h
Answer:
3.
112km/
h
Questi
on11:
Raj
eshcancompl et
eajobin18day
s.Rohiti
s50%mor
eski
l
ledt
hanRaj
esh.Fi
ndt
het
otal
timet
aken
todothesamej obwhent
heybothworktogether
.
a.7.2days
b.7.4days
c.7.10days
d.7days
Answer:
7.2days
Di
rect
ionsf
orquest
ionnumber12-
15:
St
udyt
hegi
veni
nfor
mat
ionandanswert
hequest
ionst
hatf
oll
ows:
Thereare800playersi
nast
adium whoarepart
ici
pati
ngin4sports-A,
B,CandD( onepersoni
none
sportonl
y).Therat
ioofmal
etofemaleplay
ersi
s9:7.Therati
oofmal eplay
erswhoar e
part
ici
pati
nginsportAtoot
hermaleplay
erswhoar epar
ti
cipat
inginothert
hreesport
sis4:5.
12%ofthemalepl
ayerswhoar enotparti
ci
pati
ngi nA,ar
epartici
pati
nginspor
tD.Ther emaini
ng
malepl
ayer
sareparti
cipatingi
nsportsBandCi nt herat
io5:
6.
48%ofthefemal
eplayer sarepart
ici
pat
inginsportAand22f emal epl
ayer
sareparti
cipat
ingin
spor
tB.Theremai
ningf emaleplayer
sareparti
cipati
nginsportCandDi ntherat
io7:
9.
Quest
ion12:
Whatistherati
oofthenumberofmal
epl
ayer
spar
ti
cipat
ingi
nspor
tCt
othenumberoff
emal
epl
ayer
s
par
ti
cipati
nginspor
tD?
a.4:
3
b.10:9
c.3:
2
d.7:5
Answer
:
4:3
Questi
on13:
Approxi
matelywhatpercent
ageofthetot
alnumberofpl
ayer
spar
ti
cipat
ingi
nspor
tDi
sequal
tot
he
numberoffemaleplayerspl
ayi
ngsportC?(
corr
ectt
oonedecimal
place)
a.59. 6%
b.57. 6%
c.57. 9%
d.58. 3%
Answer
:
59.
6%
Question14:
Thenumberoffemaleplay
erspart
ici
pati
nginsport
sAandBtogetheriswhatpercent
agemore
thanthenumberofmaleplay
erspart
ici
pati
nginsport
sBandDtogether(cor
recttoonedeci
mal
place)
?
a.31. 8%
b.46. 2%
c.31.2%
d.48. 4%
Answer :
46.
2%
Question15:
Theav eragenumber(perspor
t)ofmal
epl
ayerspart
ici
pati
nginspor
tsA,BandCi
swhat
per
cent agelesst
hanthenumberoffemal
eplayer
sparti
cipat
ingi
nspor
tsCandDtoget
her(
cor
rect
toonedeci malpl
ace)
?
a.12. 5%
b.10. 0%
c.12. 0%
d.9.5%
Answer
:
12.
5%
Ver
bal
Quest
ion1:
Sel
ecttheopt
iont
hatgi
vest
hebestappr
opr
iat
emeani
ngoft
heunder
li
nedwor
d.
Theki
tcheni scompactbuthasev er
ythi
ngone
needs.a.Smallbutwellorganized
b.Spaciousandwel l
or ganized
c.Smal landVery
d.Spaciousbutdisorganized
Answer:
Small
butor
gani
zed
Quest
ion4:
Readthepassagebel
owandanswert
hequest
ionst
hatf
oll
ows:
Geneal
ogyisfun.Justapieceoffurni
tur
eorapi ct
uretakesonmuchmor eint
eresti
fyouknowi t
s
hi
stor
y,sodoesanindiv
idualbecomemuchmor erealoncetheancest
ral
elementsthatshapedhi
m
ar
eknown.Ani n-
depthfamilyhist
oryi
sat apest
ryofallt
hosetowhom weoweourexi stence.
Whi
choft heStatementscanbei nf
erredfrom t
hepassage?
a.Genealogicalresear
chcanbr i
ngmeani ngandlif
etoaper son’
shist
ory.
b.Toknowaper sonwel l,
onemustknowt hefamil
yhistor
yandt heeventsi
nhis/
her
li
fe.
c. Knowingt hegenealogyofaper sonmakestheperson
d.Findingoutaboutourancestorsi smoreint
erest
ingthanresearchi
ngthehi
stor
yofobj
ect
s.
Answer
:
C-Knowingt
hegeneal
ogyofaper
sonmakest
heper
sonmor
ereal
.
Question5:
Sentencesofapar
agrapharegi
venbelowinaj
umbledor
der
.Ar
ranget
hesent
encesi
ntocor
rect
ordertofor
mameaningful
andcoherentpar
agr
aph.
1.Thiscal lsforacont i
nuous,in-
sit
usewer agewat erquali
tymoni tor
ingsy stemswi thouthuman
interv
ent ioninfactor
ieswhichwi llprovider eal-t
imedat aandt rackt he
2.Thesour ceofpol l
uti
onwasuncl ear,butt hepandemi c-r
elatedi ndustri
al l
ockdownpr ov i
ded
aonce- in-
a-l
ifeti
meoppor tunit
yt ogettothesour ceoft he
3.Thedr amat i
cfalli
nriverpoll
uti
ondur i
ngt helockdownpoi ntedt oindustri
al poll
utant
sas
theprincipal
culpri
t, eventhoughal lthei
ndustriesmeantt obef itt
edwi thtreatmentpl ant s
4.Inspiteofv asti
nvestmentineffort stocl eant her i
verwatersinI ndia,t
hef i
ndingin2017‘ not
asingledr opofr i
verGangahasbeencl eanedsof ar
.”
a.4132
b.3142
c.4231
d.3421
Answer
:
4231
Quest
ion6:
Sel
ectthemostappropri
ateopti
onthatcansubst
it
utet
heunder
li
nedwor
d.
Napht
ha,acheapf uelext
ract
edf r
om crudeoi
l,i
saddedt
opetrolt
omakethequal
i
tyof
petr
olpoorer
.a.
vi
ti
ate
b.obli
ter
ate
c.
adult
erat
ed.
Miti
gate
Answer
:
C-Adul
trat
e
Question7:
Sel
ectt hemostappr
opr
iat
eAnt
ony
mfort
hegi
venwor
dbel
ow.
Auspicious
a.Felicit
ous
b.
Omi nous
c.
Pompous
d.Vi cious
Answer:
Ominous
Readt
hegi
venpassageandanswert
hequest
ionst
hatf
oll
ow:
Questi
on8:
Sel
ecttheti
tleforthepassage:
a.Howaut hor
sgetpaidroyal
tiesi
ninst
all
mentsinthepubli
shing
indust
ry.b.Howr oyal
ti
eswor kagai
nstauthor
sinthepubl
ishing
i
ndust
ry.
c.Howauthorpaymentwor
ksinthet
radi
ti
onalpubl
ishi
ngi
ndustr
y.
d.Howpubli
shersDrawacont
ractwi
thauthor
sinthepubl
ishi
ngi
ndust
ry.
Answer
:
C-Howaut
horpay
mentwor
ksi
nthet
radi
ti
onal
publ
i
shi
ngi
ndust
ry.
Quest
ion9:
Readthegi
venpassageandanswert
hequest
ionst
hatf
oll
ow:
Whotakesthemostsi
gni
fi
cantr
iski
nthepubl
i
shi
ng
i
ndustry?
a.TheAut
hor
b.The
c.The
Publi
sherd.
TheAgent
Answer
:
C-ThePubl
i
sher
Quest
ion10:
Readthegi
venpassageandanswert
hequest
ionst
hatf
oll
ow:
Typicallywhenanauthorsignsapubl i
shingcont r
act,sheorheragentnegot i
atesanadv anceagainst
Whenabook‘ hassoldfor’somanydol l
ars,thi
samounti stheadv anceandnotaf l
at
royalt
ies.
advancei soft
enpaidinthreeinst
allments.Whent hemanuscr ipti
saccept edbythepublisher,
and
whent hebookispubli
shed.Somepubl i
sher smaybreakdownt hesepayment sevenmor e.Oncet he
booki spubli
shed,
author
smakeaper centageofsalesf oreachbooksold,whicharetheirroyal
ti
es.
Howev ert
heyareessenti
all
yearni
ngmoneyt heyhavealreadybeenpaid.Oncethebookhasmade
theaut hort
heamountofr oyal
tiestheywer eadvanced,theybegintoearnadditi
onalroyalt
ies;t
hisis
of
tencal
l
ed‘
ear
ningout
’.I
fthebooknev
er
makesanadvanceback,
theaut
hordoesnothavet
opayt
heoveragebackt
othepubl
i
sher
,except
i
nci
rcumst
anceswheretheyhav
eviol
ated/
ter
minat
edt
hecont
ract.
Whendoes‘
ear
ningout
’ becomeoper ati
onal?
a.Whenaut
horsvi
olatethei
r
b.Whenroyal
ti
essurpasstheadv ancepai
d
c.Whenbooksgetsoldinbookstoresoronli
ne
d.Whenauthor
sreceiveaflatpr
ice,notanadvance
Answer
:
B-Whenroy
alt
iessur
passt
headv
ancepai
d
Quest
ion11:
Readthegi
venpassageandanswert
hequest
ionst
hatf
oll
ow:
Whi
chmy t
hdoest hepassagesetoutt oexplode
a.Authorsgetpaidinful
lwhenpubl i
shersaccepttheir
Manuscript
sb.Aut horswri
te,agentsel
lsmanuscripts,
publ
ishersearn
c.Authorsarewealthyastheyearnhigh
d.Authorsneedanagentt ogettheirworkspubli
shed.
Answer:
C-Authorsar
eweal
thyast
heyear
nhi
ghr
oyal
ti
es
Questi
on12:
I
nthefoll
owi
ngpassagesomewordshavebeendel
eted.Readt
hepassagecar
eful
l
yandsel
ectt
he
mostappr
opr
iat
eopti
ontofi
ll
ineachbl
ank
Whogov ernsacountry’sai
rspace?Andwhatl awsprotectai
rl
ine’s(1) toflyoveraforeign
country
?Fort heanswer sgobackt otreati
esthatsetupt hei
nternational
(2)_af t
erthesecondwor l
d
war.Avi
ationandshippingwereexcl udedfr
omt hese thefir
stbecausepost-warBr i
tai
n
thoughtthatcompet i
ti
onfrom
Amer i
canai rl
inesonroutestoit
s(3) woulddriveLondin-basedonesoutof
resul
ti
ngChi cagoconv enti
onof1994- --whichsetuptheI nt
ernationalCivi
lAviati
onOrganizati
on(I
CAO)
,
whichwoul dbecomet heUni tedNat i
onsbodyf orai
rtransport-
--gav ecountr
ies
Soverei
gnt y’
ov ert
heskiesabov etheirter
ri
tori
es.
Sel
ectt
hemostappr opr
iat
eopt
iont
ofi
l
lint
hebl
ank
number3? a.
Set
tl
ements
b.Societ
ies
c.Gr
oups
d.Coloni
es
Answer:
Col
onies
Quest
ion13:
I
nthefoll
owingpassagesomewordshavebeendel
eted.Readt
hepassagecar
eful
lyandsel
ect
t
hemost appr
opri
ateopti
ontof
il
lineachbl
ank
Whogov ernsacountry’sai
rspace?Andwhatl awsprotectai
rl
ine’s(1) toflyoveraforeign
country
?Fort heanswer sgobackt otreati
esthatsetupt hei
nternational
(2)_af t
erthesecondwor l
d
war.Avi
ationandshippingwereexcl udedfr
omt hese thefir
stbecausepost-warBr i
tai
n
thoughtthatcompet i
ti
onfrom
Amer i
canai rl
inesonroutestoit
s(3) woulddriveLondin-basedonesoutof
resul
ti
ngChi cagoconv enti
onof1994- --whichsetuptheI nt
ernationalCivi
lAviati
onOrganizati
on(I
CAO)
,
whichwoul dbecomet heUni tedNat i
onsbodyf orai
rtransport-
--gav ecountr
ies
Soverei
gnt y’
ov ert
heskiesabov etheirter
ri
tori
es.
Sel
ectt
hemostappr
opr
iat
eopt
iont
ofi
l
lint
hebl
anknumber4?
a.
Excepti
onal
b.Executi
ve
c.Incl
usive
d.Exclusi
ve
Answer:
Excl
usi
ve
Quest
ion14:
I
nthefol
l
owingpassagesomewordshavebeendel
eted.Readt
hepassagecar
eful
l
yandsel
ectt
he
most
appropr
iat
eopti
ontofi
ll
ineachbl
ank
Sel
ectthemostappropr
iat
eopt
iont
ofi
l
lint
hebl
ank
number2? a.
Tradi
ng
b.Barter
c.Busi ness
d.Commer ce
Answer:
Tradi
ng
Quest
ion15:
I
nthefoll
owingpassagesomewordshavebeendel
eted.Readt
hepassagecar
eful
lyandsel
ect
t
hemost appr
opri
ateopti
ontof
il
lineachbl
ank
Whogov ernsacountry’sai
rspace?Andwhatl awsprotectai
rl
ine’s(1) toflyoveraforeign
country
?Fort heanswer sgobackt otreati
esthatsetupt hei
nternational
(2)_af t
erthesecondwor l
d
war.Avi
ationandshippingwereexcl udedfr
omt hese thefir
stbecausepost-warBr i
tai
n
thoughtthatcompet i
ti
onfrom
Amer i
canai rl
inesonroutestoit
s(3) woulddriveLondin-basedonesoutof
resul
ti
ngChi cagoconv enti
onof1994- --whichsetuptheI nt
ernationalCivi
lAviati
onOrganizati
on(I
CAO)
,
whichwoul dbecomet heUni tedNat i
onsbodyf orai
rtransport-
--gav ecountr
ies
Soverei
gnt y’
ov ert
heskiesabov etheirter
ri
tori
es.
Sel
ectthemostappr
opr
iat
eopt
iont
ofi
l
lint
hebl
anknumber1?
a.Honour
b.Pleasur
e
c.Ri
ght
d.Cl
aim
Answer
:
Ri
ght
Codi
ng
Questi
on1:
Forhi
ringacar ,
at r
avelagencychar gesR1r upeesperhourf
orthefir
stNhour
sandthenR2rupees
perhour.Giventhetot
altimeoft ravelinminut esinX.
Thetaskistof i
ndthetotaltr
avell
ingcosti nr upees.
Note:Whi l
econv er
ti
ngmi nutesintohour s,ceil
ingval
ueshouldbeconsi
der
edasthetot
alnumber
ofhours.Forexample:Ifthetotal t
ravell
i
ngt i
mei s90minut
es,i
.e.1.
5hour
s,i
tmustbeconsi
dered
as2hour s.
Example:
I
nput:
20--r1
4--n
40--r2
300--x
Out
put:
120
Expl
anat
ion:
Totaltravel
l
inghour
s=300/60=5hour s
Rupees20/hour sf
orfi
rst4hours=20*4=80
rupeesRupees40/hour sin5thhour=40*1=40
rupeesHence, t
hetotal
trav
ell
i
ngcost=80+40=
120r upees
Sol
uti
oni
nC++:
#i
ncl
ude<bi
ts/
stdc++.
h>usi
ngnamespace
st
d;
i
ntmai
n()
{i
ntr1;
ci
n>>r1;
i
ntn;
ci
n>>n;
i
ntr2;
ci
n>>r2;
i
ntx;
ci
n>>x;
i
nttot
al=0;
i
nthours=cei
l
(x*1.
0/60)
;
i
f(n>hours){
tot
al+=(hours*r1)
;
}else{
tot
al+=n*r 1;
hours-
=n;
tot
al+=hours*r2;
}
cout<<tot
al;
r
etur
n0;
}
Quest
ion2:
Expl
anat
ion:
Ther
eisabagwi
tht
hreet
ypesofgemst
ones:
Rubyoft
ypeR,
Gar
netofG,
andTopazoft
ypeT.
Wri
teapr
ogr
am t
ofi
ndthetotal
numberofpossi
blearr
angementstomakeaser
iesofgemst
ones
wher
enotwogemst
onesofthesametypear
eadjacenttoeachot
her.
Exampl e1:
I
nput :
1--countofRuby
1--countof
Garnet0--count
ofTopaz
Out
put
:
2
Ar
rangement
sar
eRGandGR.
Exampl e1:
I
nput :
1--countofRuby
1--countof
Garnet1--count
ofTopaz
Out
put
:
6
Sol
uti
oni
nC++:
#incl
ude<bi
ts/
stdc++.
h
>usingnamespacestd;
#defi
nemod
1000000007
i
ntdp[
21]
[21]
[21]
[4]
;
i
ntcount Possi
bleWay s(inta,i
ntb,
intc,
int
pr
ev ){if(
dp[a][
b][c][prev]!
=-1){
ret
urndp[a][
b][c][prev];
}
el
sei f(a==0&&b==0&&c==0)
{dp[a][
b][
c][
prev ]=1;
ret
urndp[a][
b][c][prev];
}
l
ongl ongans=
0;if(pr
ev==0){
if(b!=0)
ans=( ans+countPossi
bleWay
s(a,
b-1,c,
1))%
mod; if(c!=0)
ans=( ans+countPossi
bleWay
s(a,
b,c-1,
2))%mod;
}
elseif(prev==1)
{if(a!=0)
ans=( ans+countPossi
bleWay
s(a-1,
b,c,
0))%
mod; if(c!=0)
ans=( ans+countPossi
bleWay
s(a,
b,c-1,
2))%mod;
}
else{
if(a!=0)
ans=( ans+countPossi
bleWay
s(a-1,
b,c,
0))%
mod; if(b!=0)
ans=( ans+countPossi
bleWay
s(a,
b-1,c,
1))%mod;
}
dp[a][
b][c]
[prev]=ans;
returnans;
}
v
oi dsolve(inta,
intb,i
ntc)
{ memset (dp, - 1,
sizeof(dp));long long
ans=0;
i
f( a!=0)
ans=( ans+countPossi
bleWay
s(a-1,
b,c,
0))%
mod; if(b!=0)
ans=( ans+countPossi
bleWay
s(a,
b-1,c,
1))%
mod; if(c!=0)
ans=( ans+countPossi
bleWay
s(a,
b,c-1,
2))%
mod; cout<<ans;
}
i
ntmai
n()
{i
nta,
b,
c;
ci
n>>a>>b>>c;
sol
ve(
a,b,
c);
r
etur
n0;
}
Day2Sl
ot1
Quant
s
Quest
ion1:
Therati
oofboystogi
rl
sinacl
assis4:5Theav
eragescoreinanEngli
shtestofal
lst
udentsi
s58.
Theaver
agescoreoft
heboysi
nthetesti
s40%mor ethanthatofgi
rl
s.Whatistheav
eragescor
e
ofthegi
rl?
a)48
b)
42
c)46
d)45
Answer
-Comi
ngSoon
Quest
ion2:
Thecompoundi
nter
estonacer tai
nsum at12%p.af
ory ear
sisRs.1765.
40,
whenthei
nterest
i
scompoundedf
ivemonthly.
whatwill
betheamount( i
nRs.)oft
hesamesum at20%p.
af orthe
sameti
me,
whentheint
erestiscompoundedyear
ly?
a.15,
124
b.14,
112
c.14,
215
d.15,
114
Answer
-Comi
ngSoon
Quest
ion3:
I
f t
henwhati
sthev
alueof
a.
3/2
b.3
c.1
d.2
Answer
-Comi
ngSoon
Quest
ion4:
I
nacl assof500student
s,35%aregir
lsandtherestareboys.80%ofgi
rl
sand60%boyspassedin
theexam.Findtheper
cent
ageofdif
ferencebet
weent hegi
rl
sandboy st
hatf
ail
edt
heexam tothe
boyswhof ail
ed.
a.
b.
c.
d.
Answer
-Comi
ngSoon
Quest
ion5:
Aboxcontai
nsxpaperst
icks,
x+3plast
icsti
cksandx-7woodensti
cks.I
ftheprobabi
l
ityofget
ti
ng
onepl
ast
icandonewoodensticki
s32%, thenfi
ndthetot
alnumberofsti
cks.
a.35
b.40
c.15
d.25
Answer
-Comi
ngSoon
Quest
ion7:
Thecostpri
ceofajuicerandagr i
nderisx+320andx-200,r
especti
vel
y.Thej
uiceri
ssol
dat25%
l
ossandthegri
nderi
sat25%pr ofit
.Ift
hesell
ingpr
iceofthejui
ceri
sRs.810lessthant
hegr
inder
,
thenf
indthesum of
theircost
prices.
a.Rs.5,
220
b.Rs.5,
520
c.Rs.5,
420
d.Rs.5,
320
Answer
-Comi
ngSoon
Quest
ion9)Ifcer
tai
nsum amount
stoRs.
6,312in y
ear
sand
amountstoRs.8,
,
040in year
satacer tai
nrat
eper
cent
agep.
asi
mple
i
nter
est.Thesum (i
nRs.)andt
her
ateofi
nterestp.arespect
ively
are?
a.7,200and6%
b.5,
400and
c.4,
800and
d.4,800and9%
Answer
-Comi
ngSoon
Quest
ion10:
Amot orcycl
emov i
ngataspeedof30kmph.I
tisover
takenbyacarataspeedof60kmph.
Consideri
ngsafedi
stancei
s10m bef
oreandaf
tert
heov er
taki
ngvehi
cle.Cal
cul
atet
het
imetakenby
thecarforover
taki
ng.
a.2.4seconds
b.2.
8
c.2.
6
d.2.2seconds
Answer
-Comi
ngSoon
Quest
ion11:
WorkdonebyRameshin8hour si
sequalt
oworkdonebyMohiti
n10hour
sandt hesamework
donebyAnj
ali
in6hour
s.SupposeRameshandMohitcompl
etet
hejobwor
kingt
ogether8hour
sper
dayi
n5
days.Det
ermi
nehowmanyday
swi
l
lber
equi
redi
fMohi
tandAnj
ali
wor
ktoget
herf
ort
hesamej
ob,
if
theywork10hour
sperday
.
a.3.
25
b.3.375
c.3.
625
d.3.5
Answer
-Comi
ngSoon
Di
rect
ionsf
orQuest
ions(
12-
15):
St
udyt
hegr
aphandt
abl
eandanswert
hef
oll
owi
ngquest
ions:
Thegiv
entabl
eshowsthenumberofpeopl
ewhoreadnewspaper
sP,
Q,RandSandt
heper
cent
age
oft
otal
numberofpeopl
ewhoreadnewspaper
sintheseci
ti
es.
Ci
ti
es-
> A B C D E
\
Newspaper
s
P 15 20 28 18 20
Q 40 15 30 30 26
R 20 30 20 20 30
S 25 35 22 32 24
Answer
-Comi
ngSoon
Quest
ion12:
Whati
sthedif
fer
encebetweent
het
otal
numberofpeopl
ewhor
eadnewspaper
sPandSi
nci
tyB
andt
hetot
alnumberofpeopl
ewhor
eadnewspaper
sQandRincit
yD?
A.
1,30,
000
B.
C.
D.
1,35,
000
Answer
-Comi
ngSoon
Quest
ion13:
Whati
stherat
iooft
hetot
alnumberofpeopl
ewhoreadnewspaper
sQandRi
nci
tyCt
othet
otal
numberof
peopl
ewhoreadnewspaper
sPandRi nci
tyE?
a.6:7
b.5:6
c.5:
4
d.2:3
Answer
-Comi
ngSoon
Quest
ion14:
Thetotal
numberofpeoplewhor
eadnewspapersQandRinci
tyDiswhatper
cent
agemor
ethan
thosewhoreadnewspaper
sPandSinci
tyA?(corr
ectt
oonedeci
malpl
ace)
a.12.5%
b.13.2%
c.11.
1%
d.12.8%
Answer
-Comi
ngSoon
Question15:
Theav er
agenumberofpeoplewhoreadnewspapersQandSi
ncit
yBiswhatper
centagei
sless
thantheaveragenumberofpeopl
ewhoreadnewspaper
sQ,RandSinci
tyE?(
cor
recttoone
decimalplace)
a.39.2%
b.38.5%
c.64.
8%
d.35.2%
Answer
-Comi
ngSoon
Ver
bal
Quest
ion1.
Lowert
axeswi
l
lbeani
ncent
ivet
owor
khar
der
a.Motivat
ion
b.Occupation
c.Asset
d.Pri
vi
lege
Answer-
mot
ivat
ionQuest
io
n:
Readt
hepassagebel
owandanswert
hequest
ionst
hatf
oll
ow:
Themaj ormoti
vef orexcuses-makingseemst obetomai nt
ainoursel
f-
esteem, toproj
ectapositi
ve
i
maget oourselvesandt oothers.
Excusesar eal
sooffer
edtoreducestressthatmaybecr eat
edbya
badperformance.Wef eelthatifwecanof f
eranexcuse-especi
all
yagoodonet hatisaccept
edby
thosearoundus-itwil
llessenthenegativ
er eact
ionandthesubsequentstressthataccompaniespoor
perfor
mance.
Whi
choft
hest
atement
sbel
owcanbei
nfer
redf
rom t
hepassage?
a)Excusesareface-
savi
ngdevices.
b)Thehabitofmakingexcusesreducesone’spot
ential
.
c)Wemakeexcuseswhenwear eunderst
ress.
d)Wear eafr
aidofmakingmistakesandbeingcri
ti
cized.
Answer-Opt
ionA
Excusesar
eface-
sav
ingdev
ices.
Quest
ion:
Sel
ectthemostappr
opr
iat
eopt
iont
hatcansubst
it
utet
heunder
li
nedwor
dsi
nthegi
vensent
ence.
Educat
ion,
exper
ienceandr
eferencesaresomeoft
hest
andar
dsonwhi
chaj
udgementi
s
basedwhensel
ecti
ngcandi
datesforjob
a.Paradigm
b.Crit
eri
a
c.Agenda
d.Statut
es
Answer-
cr
it
eri
a
Codi
ng:
Quest
ion1:
Givenasentencecst
r,wri
tt
eni nacamelcase(i
.e.ev
erywordstartswit
hanuppercasel
ett
erand
thereisnospaceorpunct
uationbetweentwoconsecut
ivewords).Thetaski
stoputonespace
afterever
ywordandconverteveryupper
casel
ettert
olowercase.
Example1:
I
nput:
ThisI
sAnAut
omat
ionEr
a
Output
:
t
hisisanAut
omat
ionEr
a--
-Val
ueofcst
r
Output
:
t
hisisanaut
omat
ioner
a
Example2:
I
nput:
HeyYou-
--Val
ueofcst
r
Out
put
:
hey
you
Const
rai
nts:
● Thestri
ngcannotcont
ainspace.
● Sizeofcst
r<=500
I
nputf
ormatfortest
ing:
● Thecandidatehastowri
tethecodetoacceptasi
ngl
est
ri
ngcst
rconsi
sti
ngofonl
y
let
ter
softhealphabetwi
thnospace.
Out
putf
ormatfortest
ing:
● Theoutputshouldbeastr
ingonly
.(Seetheoutputf
ormatinExample1andExampl
e2)
● Addi
ti
onalmessagesintheoutputwil
lresul
tinthef
ail
ureofyourt
estcases.
I
nst
ructi
ons:
● TheSy stem doesnotall
owanyki
ndofhard-
codedi
nputval
ue/
v al
ues.
● Thewr it
tenprogram codebyt
hecandi
dat
ewillbev
eri
fi
edagainstthei
nputwhi
chi
ssuppl
i
ed
f
romthesystem.
Sol
uti
oninC++:
#i
ncl
ude<bi
ts/
stdc++.
h>usi
ngnamespace
st
d;
i
ntmai
n()
{
str
ing
cstr;
ci
n>>cst
r;
st
ri
ngr
es="
";
f
or(
inti
=0;
i<cst
r.
size(
);i
++)
{
i
f('A'<=cst
r[i
]andcst
r[
i]
<='
Z'
)
{
i
f(
i!=0)
r
es+="" ;
r
es+=(
cst
r[
i]+32)
;
}
el
ser
es+=cst
r[
i]
;
cout
<<r
es;
r
etur
n0;
}
Quest i
on2:
Acompanyi sor
ganizingafungamef ori
tsemployees.Nnumberofemployeesar
epart
ici
pati
ngi n
thisgame.Eachempl oyeecanei
thercompetei
nt hegameasani ndi
vi
dualorasapai
rwithanother
empl oyee.Thet
aski
st ofindt
henumberofdiff
erentwaysinwhichNnumberofemployeescanbe
singl
eorcanbepai r
edup.
Condi
ti
on:
● Ifthet
otal
countofempl
oyeesi
sodd,t
henpai
ri
ngisnotal
l
owed.
● Ifthet
otal
countofempl
oyeesi
seven,
thenempl
oyeescanbesi
ngl
eorcanbepai
redup.
I
nst
ruct
ions:
● Eachempl
oyeecanbepai
redonl
yonce.
● Eachempl
oyeecanonl
ycompeteonce
Example1:
I
nput:
3 Numbe rof
empl
oyees
Out
put
:
1
Explanat
ion:
N=3i .e,
OddNumber
[
1],
[2],
[3]
:all
empl
oyeesar
esi
ngl
e.
Example2:
I
nput:
4 Numbe rsof
empl
oyees
Output
:
10
Explanati
on:
N=4i .e,EvenNumber
[
1],
[2],
[3]
,[4]
:al
lempl
oyeesaresi
ngl
e.
[
1],[
2,3],
[
4] :
3and4arepair
edbut1and2ar
esi
ngl
e
[
1,2]
,
[3]
,
[4]
:2and3ar
epai
redbut1and4ar
esi
ngl
e
[
1,3]
,
[2]
,
[4]
:1and3ar
epai
redbut2and4ar
esi
ngl
e
[
1,4]
,
[2]
,
[3]
:1and4ar
epai
redbut2and3ar
esi
ngl
e
[
2,4]
,
[3]
,
[1]
:2and4ar
epai
redbut3and1ar
esi
ngl
e
[
1,2]
,[
3,4]:
pai
rsof1and2,
3and4
[
1,3]
,[
2,4]:
pai
rsof1and3,
2and4
[
1,4]
,[
2,3]:
pai
rsof1and4,
2and3
Not
e:[
2,3]and[
3,4]ar
econsi
der
edt
hesame
Const
rai
nts:
● 1<N<=10
I
nputFor
matf
ort
est
ing:
● TheCandidat
ehastowri
tet
hecodet
oacceptaposi
ti
vei
ntegernumber
repr
esent
ingcount
ofempl
oyees
Out
putFor
matf ort
esti
ng:
● Theoutputshouldbeaposi
ti
veintegeronly
.(Seetheout
putf
ormatinexampl
e).
● Addit
ionalmessagesi
ntheoutputwill
resul
tinthefai
l
ureoft
est
cases.
I
nst
ructi
ons:
● TheSy stem doesnotall
owanyki
ndofhard-
codedi
nputval
ue/
v al
ues.
● Thewr it
tenprogram codebyt
hecandi
dat
ewillbev
eri
fi
edagainstthei
nputwhi
char
e
suppl
i
edf r
om thesy
stem.
Sol
uti
oni
nC++:
#i
ncl
ude<bi
ts/
stdc++.
h>usi
ngnamespace
st
d;
i
ntcount
_way
s(i
nt
N){i
f(
N%2!
=0)
r
etur
nN;
i
ntt
[N+1]
;
f
or(i
nti=0;
i<=N;
i++)
{
i
f(
i<=2)
t
[i
]=i
;
el
set
[i
]=t
[i
-1]+(
i-
1)*
t[i
-2]
;
}
r
etur
nt[
N];
}
i
nt
mai
n()
{
i
ntN;
ci
n>>N;
i
ntres=
count_way
s(N)
;
cout<<r
es;
r
etur
n0;
}