DSQ Paper Technical - C & C++
DSQ PAPER Techanical paper Questions 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...