3 3 votes Consider the following pseudocode for a function $\verb|process(n)| :$def process(n): count = 0 i = n while i > 1: j = 1 while j < n: count += 1 j = j * 2 i = i // 2 return countDetermine the exact number of times the $\verb|count += 1|$ statement is executed when $n=1024$. Programming in Python goclasses python-&-dsa goclasses-da-dpp goclasses-da-dpp-day-99 goclasses-python-&-dsa-practice-questions numerical-answers + – GO Classes 252 views answer comment Share Follow Print 0 reply Please log in or register to add a comment.
1 1 vote Answer:- 100 Outer Loop with go i=1024,512,256,128,64,32,16,8,4,2,1 Inner Loop will go j= 1,2,4,8,16,32,64,128,256,512,1024 As both the loop will go 10 times so Count= 10*10=100 ALPHATRION answered Feb 8 ALPHATRION comment Share Follow 0 reply Please log in or register to add a comment.