Question: python programming 1. (30 points, each 5 points) Multiple choice or True/False questions: 1) range (5) is: a) 0,1,2,3,4,5 b) 1,2,3,4,5 c) 0, 1, 2,

 python programming 1. (30 points, each 5 points) Multiple choice or

python programming

1. (30 points, each 5 points) Multiple choice or True/False questions: 1) range (5) is: a) 0,1,2,3,4,5 b) 1,2,3,4,5 c) 0, 1, 2, 3, 4 d) 1, 2, 3,4 Answer: 2) range 6, 0, -2) is a) 6,4,2 b) 6, 4, 2,0 c) 6, 4, 2, 0, -2 d) -6, -4,-2, 0, -2 Answer: 3) Executing a break statement in while or for loop exits the loop immediately a) True b) False Answer: 4) Executing a continue statement in while or for loop skips the remainder of the loop's suite, and go to the top of the loop and continue with the next iteration (if any) a) True b) False Answer: 5) Executing an else statement in a for loop specifies a block of code to be executed when the loop is finished: for i in range(m): print(1) else: print("Done") a) True b) False Answer: times: 6) The following loop is executed a) a b) a +1 int x = a c) a-1 while x

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!