
Python Lesson 2: Data Types Quiz
Quiz
•
Information Technology (IT)
•
7th Grade
•
Practice Problem
•
Medium
John Heatley
Used 5+ times
FREE Resource
Enhance your content in a minute
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the main difference between Interactive mode and Script mode in Python?
Script mode gives faster results
Interactive mode is only used for games
Interactive mode runs one line at a time; Script mode runs a whole program
Script mode can only be used online
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will happen when this code is run? print('Hello World')
It will print: Hello World
It will give a syntax error
It will ignore the line
It will crash the computer
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will happen when this code is run? print ("Hello World'
It will print: Hello World
It will give a syntax error
It will ignore the line
It will crash the computer
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a syntax error in Python? (Fill in the blank) A syntax error is where the program cannot run as the rules of the programming language _________.
have been broken.
are always followed.
are not required.
are ignored.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following Python programs involves input, type casting, and output?
num = input('Enter a number: ') num = int(num) print('You entered:', num)
print('Hello, World!')
for i in range(5): print(i)
x = 5 + 3 print(x)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data type in Python holds whole numbers?
Integer
String
Float
Boolean
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data type in Python holds numbers with a decimal point?
Float
Integer
String
Boolean
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
20 questions
Uji Kompetensi 1
Quiz
•
7th Grade - University
21 questions
Soal PTS Informatika kelas 7
Quiz
•
7th Grade
22 questions
ÔN TẬP CRV1
Quiz
•
6th Grade - University
21 questions
Cfa Block coding
Quiz
•
7th Grade
20 questions
STS INFORMATIKA KELAS 7 SMP NU KESESI sep 2025
Quiz
•
7th Grade
20 questions
PTS 7A
Quiz
•
7th Grade - University
20 questions
soal algoritma dan pemograman
Quiz
•
7th Grade
20 questions
INFORMATIKA KELAS 7
Quiz
•
7th 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 Information Technology (IT)
5 questions
Legends, Leaders, & Changemakers: Maya Angelou
Interactive video
•
6th - 8th Grade
22 questions
distributive property
Quiz
•
7th Grade
10 questions
Understanding Poetry and Literary Devices
Interactive video
•
4th - 8th Grade
20 questions
Ethos, Pathos, Logos Practice
Quiz
•
6th - 7th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
20 questions
Graphing Inequalities on a Number Line
Quiz
•
6th - 9th Grade
20 questions
Main Idea and Supporting Details
Quiz
•
7th Grade
15 questions
Main Idea and Supporting Details.
Quiz
•
4th - 11th Grade
