Python Midterm
Quiz
•
Computers
•
12th Grade
•
Practice Problem
•
Medium
Joseph Gilliam
Used 45+ times
FREE Resource
Enhance your content in a minute
74 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct data type for a whole number in Python?
A) Integer
B) Float
C) String
D) Boolean
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you declare a string variable in Python?
A) var_name = 42
B) var_name = 3.14
C) var_name = "Hello"
var_name = True
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function is used to take user input in Python?
A) input()
B) print()
C) read()
D) get()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the print() function do in Python?
A) Takes user input
B) Displays output on the console
C) Performs mathematical operations
D) Defines a function
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the // operator do in Python?
A) Floor division
B) Exponentiation
C) Modulus
D) Addition
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
result = 5 + 3 * 2
print(result)
result = 5 + 3 * 2
print(result)
A) 16
B) 11
C) 13
D) 26
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the value of the expression True and False?
A) True
B) False
C) Error
D) None
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
70 questions
latihan soal TIK (office)
Quiz
•
1st Grade - Professio...
70 questions
Computing A level AQA
Quiz
•
12th Grade - University
72 questions
Communications and Networks EOU Test
Quiz
•
12th Grade
72 questions
Let's see what you remember after Summer!
Quiz
•
12th Grade
75 questions
Aplikasi presentasi
Quiz
•
8th Grade - University
72 questions
ENSA - Modules 9-12
Quiz
•
12th Grade
76 questions
Cybersecurity Pre-Test Questions
Quiz
•
11th Grade - University
70 questions
untitled
Quiz
•
6th Grade - University
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
