Provided by www.YuvaJobs.com - DSQ Technical - C & C++ DSQ PAPER Techanical paperQuestions 1 -5 are reference to the followig psedo code{input m,n,zTEST:if ((m+n)/3>5)z=z+1 else z =z-1printf m,n,z{(m-m+1;n=n-3)if (m+n+2)>14 then goto testprint m,n,zend}1. what is the final output of the if the input is 2,14,12 (m,n,z)a)1,8,4 b)1,4,8 c)4,8,1 d)8,4,2ans=C.2. what is the final output if the input is 1,18,2? (m,n,z)ans) 5,6,2 i.e ans =c.3. How many times is TEST execute ed if the input is 2,14,1?ans) twice ans=c.4) How many times the TEST exected if the input is 1,18,2?ans)four times 5) what are the values taken by Z when input being 8,24,1?a)only 5 b)only 6 c)neither 5 or 6 d)both 5 and 6ans)D.6) the function f(x) is defined as followsif x=0 then f(x) =1if x>0 then if ((x>10)then f(x) =x-10 else f(x) =x+1))if x<0 then if (x**2 <100) then f(x) =f(-x+1) else f(x) =f(-(x+1)) 6) the above of f(2) +f(-3) isans=8.7) the value of f(8)+f(9) isans=208) the value of f(1)+f(2)+f(3).............+f(10) isans=659) the value of f(-10)+f(-9)+f(-8) is a) 33 b)25 c)-27 d)2711. 1997 haeadecimal is a)7cb b)7cd c)7cf d)7ca ans-c12. the remainder when 9FA (hexa) is divided by 8 is added to the 12(to base ten) to get x.then x has the binary opertion ans=111013. the remainder when 1221 (in hexa) is diveded by 17(decimal) in (hexa)isans=014. The binary number 100010011 will the hexa representationans=11315. The binary number 10011001 will the octal representationans=46316 Find the odd man out16 a) Intel b)motorola c)nec d)Ibmans =nec17. a)BIt b)byte c)nibble d)fieldans= field18 a)Tree b)Root c)Log d)leafans=log19. a)ROM b)PROM c)EPROM d)EEPROMans=ROM20. a)MOVE b)DEL c)COPY d)RENans=DEL21. What,s the output of the following programmain(){int z=3;printf("%d %d ",z,main());}a)prints a value 3 b)prints junk value c)error message d)infinite loop22) main() {int i=3,j=5;while (i--,J--){printf("%d %d".i,j);}}The loop will be executeda)3 times b)5times c)8times d)infinite times23) main(){int i=3,j=5If(i--,j--)printf("%d %d ",i,j);}The output of the program for (i,J)is a)3,5 b)3,4 c)2,4 d)2,5ans=B24) main(){int i=3printf ("%d %d %d ",++i,i-,i+=5);}The the out put of the program isa)8,8,8 b)4,3,8 c)3,2,7 d)4,4,9ans=B25) main(){int times =5;int i=3;int j=4;int k=34;i=j+k;while(times --){i=timesj=timesk=times}printf("%d %d %d " ,i,j,k)}THe output of the praogram is (i,j,k)a)19,9,35 b)38,42,80 c)43,47,85 d)15,14,41 ans=C26) main(){int num =32765;while (num++);printf(" %d ",num)}what"s the out put ofthe programa)prints all the number above 32765 including the number 32765b)prints all the number above 32765 excluding the number 32765ans=B.27) main(){float k=3.4156printf("%f %f ",float(k),c(k))}The output of the program a) 3.4156 ,3.4156 b)4,5 c)3,4 d)3.45 3.40ans=C.28) main(){int bounce =4;printf ("total number of bounce =%d",bounce ++);}The out put of the program isans=D (stoP)29) main(){int number =25;char name =,A,printf("The addition of the name and the number is %o "name +_number)}the output of the program is a)compiler errorb)run time errorans= A30)31) ODBC meansans= open data base connectivity32) ASCII stands forans= american standard for information interchange 33) 34) flops stands for ans)floating point operation per second35) by superconductivityans)36) PERT stands forProgram evalution and review techniq37) IMS is aans) data base system38) HTML is aans) Hyper text markup language 39) The default backend of visual basic isans)sybase40) Client server is based on ans) distribution processing44) computer viruses can spread from one system to anther by means ofa) infected disks b)links to a networkc)downloaded program from a bulletin boardd)all of the programans)D45) A front end processor is usually used inans=multi processing.46) A radio active material of mass 16gms loses in 10 years due toradiation.How many more years will take for the material to attain amass of of 1gm ?ans=80 years47) A block of ice floats on water in a beaker as the melts the waterlevel n the beaker will remain the sameans=Remains same.48) if va,vn,vs are velocities of sound in a air ,water ,and steel thenans)vs>vn>va49) in usual computer arthimetic the value of the integer expression22/5*2+8*2/6ans= 8.50) an operting system is aa)file manager b)memory managerc)i/o manager d)all of the aboveans=D.1.How many liters of water must be added to 30 liters of alcohol to make asolution thatis 25%ans:1202.How much is 3/7 larger than 20 percent of 2ans;1/353.xyz=120,then which of the following cannot be a value of yans:04.a number of subsets of a set s is 128, then s hasans:75. xsqrt(0.09)=3 , then x equalsans:6.perimeter of rectangle is s and the other sideis x, then the other sideans:(s-2x)/2 7.solution of system of equations y-z=0,x+8y=4,3x+4y=7z isans:x=1,y=1,z=115. f(x,y) =x**2 -y**2 then the value of f(4,(f(1,2) isans =7.16. if the radius of the circle is incresed by 6% then its area incresedby ans=36%17. the average of seven numbers is 2.5 then their productasn=17.518. the minimum of (2x+1)**2 + (x+2) is at x =ans = (-4/5)19. the probability of getting at least in a single through of threecoins isans=7/8.20. atrain covers the distance D beteween two cities in hhours arriving2 hours late.what rate would permit to train to arrive on schdule? ans= (D/H-2)21. in a single throw of dice ,the chance of throwing a total of 3 isans) 1/216.22. a triangle of sides 3,4,5 then its----isans:623. Which of the following is next smaller invalue than--- one halfans:2/524. if f(x)=1/x then f(f(f(x))) equalsans:1/x25. if f(x)=1/x**2 , then f(f(f(x)))ans:1/x26.if 8x+4y=6 and 4x+5y=7, x+y equl\als ans:127. find the next number in the series 1,2,5,10,17,26ans:3728,.sqrt(0.16)+cubic root(0.027) equalsans:0.729.if a,b>0 and a+b=2 then the max value of ab is ans:130. p and q are positiveintegers with their average 5, find how manydifferent values can p takeans:931. if 0<x<1 which of the following is the largestans:1/x33. If x,y,z are three consecutive natural numbers, which of the followingnumbers should be x+y+z ans:2/334. two persons run a race of 100m. the winner won by (110/11)m and onesecond in time. find the speed of lsoer in metans:9.0935. in a group of 15,7 can speak spanish, 8 can speak french and 3 canspeak neither,. how much of the group can speak both french and spanishans:1/536. which of the following intefgers is the square of an integer for every integerans:a**2+2n+137. which of the following has the largest numberical valueans:0.2/0.00000138. ifn is odd which of the following statements is trueans: 3n+1 is even39. which of the following is the primeans:80   Provided by www.YuvaJobs.com - DSQ Technical - C & C++