
Python Programming Worksheet

Quiz
•
Computers
•
2nd Grade
•
Easy

Khoa Nguyen Hoang Dang
Used 2+ times
FREE Resource
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:
Create a free account and access millions of resources
Similar Resources on Wayground
26 questions
Computer Coding Basics

Quiz
•
1st - 11th Grade
19 questions
Google Slide Presentations

Quiz
•
2nd - 5th Grade
19 questions
Computer basics

Quiz
•
KG - Professional Dev...
16 questions
Linux2 - Quizz 5 -bash scripting

Quiz
•
1st - 5th Grade
19 questions
Comet Connect

Quiz
•
2nd - 4th Grade
19 questions
Python Operators

Quiz
•
2nd Grade
20 questions
Ms Excel Test

Quiz
•
1st - 12th Grade
18 questions
Codey Review

Quiz
•
2nd Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
18 questions
Hispanic Heritage Month

Quiz
•
KG - 12th Grade
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
addition

Quiz
•
1st - 3rd Grade
20 questions
Subject and predicate in sentences

Quiz
•
1st - 3rd Grade
20 questions
Addition and Subtraction facts

Quiz
•
1st - 3rd Grade
10 questions
Human-Environment Interactions Vocab Unit 1 Grade 2 Quiz

Quiz
•
2nd Grade
20 questions
Proper and Common nouns

Quiz
•
2nd - 5th Grade
30 questions
Multiplication Facts 1-12

Quiz
•
2nd - 5th Grade