The term complexity is a measure of the effort expended by t
The term \"complexity\" is a measure of the effort expended by the computer in performing a computation. What is the value of Int after control exits the following loop? aomeInt = 273; while {aomeInt > 500} aomeInt - aomeInt - 3; 270 273 497 500 none of the above-this is an infinity loop What is the output of the following code fragment? n = 1; while (n
Solution
Answer:
4 . True, complexity is not the efforts it is the measure of time a particular process takes and the measure of space an algorithm occupies.
5. E) None of the above - loop will go infinite. Variable is initialized but it is not incremented in anywhere in the loop.
6. b) 1 2 3 4
n is initialized to 1 and goes to the condition n < 5 , the process repeats untill n > 5 ,,,loop ends.
9. break ;
