
Python Programming Worksheet
Authored by Khoa Nguyen Hoang Dang
Computers
2nd Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
21 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Why is the "or" operator used in a "if" statement?
It checks if both conditions are true
It checks if either of two conditions is true
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When the program is run, what will happen?
5.5
a//b
2
5
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be displayed when you run the program?
20
1.25
Syntax error
9
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Why is the "and" operator used in a "if" statement?
It checks if either of two conditions is true
It checks if both conditions are true
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do we change variable x from float to integer?
By using the int() function
By using the float() function
By using the str() function
By using the bool() function
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the Python "if" statement's purpose?
to display data on screen
to get user input
To decide what to do and run code conditionally
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement checks if a number is even?
if number mod 2 == 0:
if number % 2 == 0:
if number // 2 == 0:
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
17 questions
Programming Basics G3
Quiz
•
1st - 2nd Grade
20 questions
Output devices 3G
Quiz
•
2nd Grade
20 questions
SOAL PBO KELAS XII RPL
Quiz
•
2nd Grade
20 questions
CLASS 2 QUIZ SET 2
Quiz
•
2nd Grade
20 questions
Hour of code
Quiz
•
1st - 2nd Grade
20 questions
Microsoft Word 2013Review
Quiz
•
KG - University
20 questions
Krishna Quiz
Quiz
•
1st - 5th Grade
20 questions
Grade II revision Quiz
Quiz
•
2nd Grade
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
Discover more resources for Computers
14 questions
Contractions
Quiz
•
2nd Grade
10 questions
Exploring Rosa Parks and Black History Month
Interactive video
•
1st - 5th Grade
20 questions
Counting Coins
Quiz
•
2nd Grade
20 questions
Place Value
Quiz
•
KG - 3rd Grade
19 questions
Subject-Verb Agreement
Quiz
•
2nd - 5th Grade
13 questions
Fractions
Quiz
•
1st - 2nd Grade
12 questions
2-Digit Subtraction with Regrouping
Quiz
•
2nd Grade
14 questions
Fractions
Quiz
•
2nd - 3rd Grade