Page 1 of 1

QUESTION 24 What does the following code print on the screen: i=1 sum=0 while i<=4: sum=sum+1 i=i+1 print (sum) a. Nothi

Posted: Fri Jul 08, 2022 7:27 am
by answerhappygod
Question 24 What Does The Following Code Print On The Screen I 1 Sum 0 While I 4 Sum Sum 1 I I 1 Print Sum A Nothi 1
Question 24 What Does The Following Code Print On The Screen I 1 Sum 0 While I 4 Sum Sum 1 I I 1 Print Sum A Nothi 1 (23.22 KiB) Viewed 28 times
QUESTION 24 What does the following code print on the screen: i=1 sum=0 while i<=4: sum=sum+1 i=i+1 print (sum) a. Nothing is printed on the screen. The while loop is infinite b. 10 O c. 1 O d. 4 QUESTION 25 What does R represent in the following code: x=[1,7,2,3,4,0] R=x[0] for i in range(1, len(x)): if x<R: R=x a. The maximum value in the list O b. Nothing special c. The minimum value in the list d. The average value in the list