Python Quiz 1 and 2
Quiz
•
Computers
•
6th Grade
•
Practice Problem
•
Hard
Archie Miranda
Used 2+ times
FREE Resource
Enhance your content in a minute
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
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
43 questions
systemy operacyjne
Quiz
•
1st - 6th Grade
43 questions
игры
Quiz
•
1st - 11th Grade
40 questions
ASAS SAINS KOMPUTER T2 [ULANGKAJI]
Quiz
•
1st Grade - University
44 questions
Parts of a Computer
Quiz
•
5th - 8th Grade
40 questions
7 komputer i urządzenia cyfrowe
Quiz
•
1st - 6th Grade
44 questions
MICROSOFT OFFICE ICON
Quiz
•
KG - 12th Grade
42 questions
Input, Output, Processing, & Storage
Quiz
•
6th - 8th Grade
40 questions
TMK Teknologi Maklumat Thn 6
Quiz
•
4th - 6th 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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th 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
