
Python Programming Quiz

Quiz
•
Computers
•
Professional Development
•
Hard
Roshni Mahajan
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will be the output of the following code?
A
B
C
Error
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will be printed?
Python
Java
Error
Nothing
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output?
Equal
Not Equal
Error
None
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output?
0
2
4
0
1
2
3
4
0
2
4
6
Infinite loop
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will happen when we run this code?
Prints 5
TypeError
Prints None
SyntaxError
6.
FILL IN THE BLANK QUESTION
45 sec • 1 pt
Fill in the blank to print numbers from 1 to 5. for i in _______(1, 6): print(i)
7.
FILL IN THE BLANK QUESTION
45 sec • 1 pt
Fill in the blank to get a random integer between 1 and 10. import random num = random._______(1, 10)
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Module 2 Review

Quiz
•
Professional Development
27 questions
Python Quiz

Quiz
•
Professional Development
21 questions
Quiz 3.1

Quiz
•
Professional Development
20 questions
Python QUIZ 02

Quiz
•
KG - Professional Dev...
20 questions
QUIZ-5 static, String and StringBuffer

Quiz
•
Professional Development
20 questions
Quiz 5.1

Quiz
•
Professional Development
24 questions
Regression Classification Analysis Quiz

Quiz
•
Professional Development
23 questions
OCA Unit 1

Quiz
•
11th Grade - Professi...
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade