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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

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

Post 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 27 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
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply