You are on page 1of 12
(yamcat org é Bes kunar Se a) CEE "VOOM O125 quesors Sehesed Passage Wat wil be te output of he folowing pseuto-cose statemens? Drectons: Choose the covet neuer: Intoger a= 486, b,¢,d=10 A pseudocodeis used Assume that when wo datatypes are rocessedtireugh an operator, he ansner mena he same data {ype asthe input datatypes. Assune that al data-ypeshave enough rangetoazcenmocste any number. ve arent catetyeas are ported on the eeu assunes the mre expressive eat-ype © #10 © 4108 ana oan Comes fa Ang ts Test Pk OF DeANeN-Googe come = OT 1 fos amet aepongnnden sietatecet Zon scan sete Passage Watis ine by the argurant of uncon? Drectons: Choose the erect ansiver ‘The varabes passed tt when scaled > The vou tems on execution © ret ype es anersaprngme Wamcat = a esa: Tar ae ep ich rated This npn wih on hereto: Choos fe caret emer @amcat cai eB (© nul opener Ey amet spngmnesin sole ace vyamcat oS Bia Passage:n an implementation ofa inked Ist, each node contains data anc Dwectons: Choose te cotect anwar ‘address, Which ofthe following could the adress fs possibly contain? > Aesress ofnext node in sequence © ts on acres © Acres of iat nose © cress of et node 1B tps: /ameaasphingminandoTesxpotnad=t vyamcat Skee clase rocket ( private: Integer height, weight public: Statement 1 function input ita int) { height =: weight » ) function main () ( rocket rockets, recket2 ) What can ws infer trom this code? COMO ZS qesons Oars * Directons: choose the correct answer A peeuco-code which Is = to that of C++ and set-explanatory. An accessile member functo data member for an objec are accessed by the statement cobjectname unetionnare or objeciname dataremnbername respectively. anroutes ora rocket, © recketis class win rockatt and rockat2 6 ts stbutes. height and woight are objects of tre class rocket. © ‘rockets clase wih rocket, rocket helght and weight as ts ettbutes, © rackets a clase win ookatt, rosket height and weight as ts objects. np /ameat2aspiringminds n/coTestohp2 made @wamcat Test fore arcom 108) en ax (SEGRE! 704 Paseage:Shas wise program in C++ and passes ton to Park, Panka Directions: Choose the correct answer does some indentation in some statements of the code. What wil this lead to? © Faster Execution > Lower memory requirement 2 Correction of errors Better readability iatennaramee cr CSS 1 ftps /ameat2aspiringminds n/coTestahp2 made @amcat Test fore arcom 108) & BBevin kuna (SEGRE! Directions: Fllin the blank Question: Each buckat in a Hash Table is the head of © AHeap AStack ‘An aray © AQueve © ALinked List 801 CSS Bhs meat asinrindsivdo shy node Gameat See = Ceo no Passage:A destructor may be invoked in which of the following situations? Directions: Choose the correct answer (© When the objects created (© When the object is assigned value 0. © Only at the end of the code © When the scope of the object is over. MODULE EXIT ~ f TESTEXIT + Wamcat 5 crepes PesageA aia cnet us Peet hemes Bo ee ee tp mening ole po oyamca — a cate gears ered ‘Passage: Himanshu want to wrt a program to print the larger ofthe two Daetons: Choose the corect answer Inputed numer He writs the folowing cod Int number, number 2 Input rumen, number 2 122) Statement 4 pent number! ese pint umber end if Filin the 27 hn tatement 1 © numbert > rumoer2 © number? > number © number? equals numbert © umbart <= number2 hips//ameat2aspingminesi/doTestohpimode: oyamcat = Nittoreaeom ob 0 & Bee OEE OS Passage: Stisht! writes the code fora function that computes the factorial of Directions: Choose the correct answer the inputted number n function factrilin) { Inn equals 1) return else = MISSING STATEMENT ~ end ) © return factorian-t) © retum ntactorian) Flin the missing statement. © returns) return rfactorial(n-1) MODULE EXIT ~ ff TESTEXIT 1B iipe//ameat2aepringmindsinvdoTestpistmade=t wamcat eit fro com 1081 & Bocas e:Shrishti writes the code fora function that computes the factorial of Directions: Choose the correct answer the inputted number n. {unetion fectoral(n) « itn equals 1) retum 1 else ~MISSING STATEMENT — end ? © return factorialin-1) return n*Yactorian) Fillin the missing statement. remnant) © return n*factorial(n-1) Coss TESTEXIT « | £8 hntosy/ameat2aspringmindsin/doTestphp?modi vyamcat & Bese kumar Passage:Shalini wants to program to print the largest number out of three Inputted numbers. She writes the following program: Int numbert, number 2, number3, temp: input numbert, number2, numbers: It (qumbert=number2) temp = numbert else temp fend it It (22) / Statement 4 temp = numbers fend if print temp wumber2 Fill in the 2? in Statement 1 Directions: Choose the correct answer umber3 > number? © number3 > temp © numbers < temp © numbers > numbert ESS tps: amet asprin nest ppm oyamcat Terenas 3 Bei ue Passage:A sort, which uses the binary tree concept euch tat any number in reetions: Choose the correct anewer ‘he tree larger than all the numbers n the subres below ft scaled © ‘selection Sot © Insertion Sor D Heap Sort © auick sort

You might also like