
Python Summer Internship Quiz-8
Authored by Gnaneshwar Reddy
Professional Development
Professional Development
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a looping statement in Python?
A) for
B) while
C) loop
D) do-while
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many times will the following for loop iterate?
for i in range(5):
print(i)
A) 5 times
B) 4 times
C) Infinite times
D) 0 times
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code?
i = 1
while i < 5:
print(i)
i += 2
A) 1 2 3 4
B) 1 3
C) 1 2 4
D) 1 3 5 7
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement is used to terminate the current loop iteration and move to the next iteration in Python?
A) break
B) continue
C) pass
D) exit
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code?
for i in range(3):
for j in range(2):
print(i, j)
A) 0 0 1 0 2 0
B) 0 1 1 2 2 3
C) 0 0 0 1 1 0 1 1 2 0 2 1
D) 0 0 0 1 1 0 1 1 2 0 2 1
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the range(5) function represent in Python?
A) A list containing numbers from 0 to 4
B) A list containing numbers from 1 to 5
C) A generator function
D) An infinite loop
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements is true about the while loop in Python?
A) It executes a block of code a specified number of times.
B) It continues to execute a block of code as long as a condition is true.
C) It is used only for iterating through sequences.
D) It cannot be terminated manually.
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
BP 1 On Site Bristol Apprenticeship Quiz
Quiz
•
Professional Development
10 questions
SI Units
Quiz
•
Professional Development
12 questions
Perform Online Collaboration A
Quiz
•
Professional Development
15 questions
Marketing and Advertising
Quiz
•
Professional Development
12 questions
Accident Investigation
Quiz
•
Professional Development
15 questions
Quiz TNH Bandung
Quiz
•
Professional Development
10 questions
Payjoy
Quiz
•
Professional Development
10 questions
Bimtek Literasi dan Numerasi
Quiz
•
Professional Development
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade