You are on page 1of 3
UO ‘ SNCtion(0,10) = 5 25 Question : We have a set of continuous even numbers. For a function to return the Sum of these numbers what is the opti mal input required © The total count of the numbers © Allthe numbers © The start number © The start number and the total count of the numbers Question : We would like to return the first 10 vowels appearing in a sentence. Which of the following functions will give us the output © For each character in the sentence, if it is vowel then add to output array. Return the first 10 elements of the output array © ©) For each character in the sentence, if itis vowel then add to output array Return the array when its length is 10 © Both (a) and (b) will give the required output © Both (a) and (b) will not give the required output Question We have an array of continuous and unsorted numbers from 0 tor we don't know n. Which of the following will give us (he laut element in the array Mo... us OD CBO Question : function (i,j) { Do while (i 10) if GY >x) Display "y" O if (x > 10 AND y > 10) then Display "y" © if («> 10 ORy > x) then Display 'y" © if «> 10 AND x> y) then Display “y" © if (> 10ANDy> x) then Display 'y"

You might also like