Python Quiz 1 and 2

Quiz
•
Computers
•
6th Grade
•
Hard
Archie Miranda
Used 2+ times
FREE Resource
40 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What operator is used in Python to find the remainder of a division?
/
*
%
//
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the remainder when an even number is divided by 2?
0
1
2
Undefined
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the remainder when an odd number is divided by 2?
0
1
2
Undefined
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code? num = 8 if num % 2 == 0: print("Even") else: print("Odd")
Odd
Even
Error
8
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you take user input in Python?
input()
print()
read()
scan()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to convert user input into an integer?
int(input())
float(input())
str(input())
bool(input())
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will happen if the user enters a non-numeric value and we try to convert it using int(input())?
The program will print the value
The program will crash with a ValueError
The program will return None
The program will treat it as 0
Create a free account and access millions of resources
Similar Resources on Wayground
40 questions
Flowchart planning and Programming Constructs

Quiz
•
6th Grade
35 questions
Edublocks and Python

Quiz
•
6th Grade
45 questions
GCSE Python Legends

Quiz
•
1st - 12th Grade
40 questions
Coding Final Exam 2025

Quiz
•
6th Grade
40 questions
Scratch - Introduction to Coding

Quiz
•
6th - 8th Grade
35 questions
CSIM Final Exam Review

Quiz
•
6th - 7th Grade
43 questions
REVIEW Unit 1 Computers, Information Processing, and Storage

Quiz
•
6th Grade
40 questions
Introduction to Computers

Quiz
•
6th - 8th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

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

Interactive video
•
6th - 10th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
30 questions
Teacher Facts

Quiz
•
6th Grade
24 questions
Flinn Lab Safety Quiz

Quiz
•
5th - 8th Grade
20 questions
Adding and Subtracting Integers

Quiz
•
6th Grade
10 questions
Essential Lab Safety Practices

Interactive video
•
6th - 10th Grade