:Data types

Quiz
•
Computers
•
10th Grade
•
Easy
admissions roboticschools
Used 2+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What data type is used to represent whole numbers in Python?
A) float
B) str
C) int
D) bool
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a string in Python?
A) "Hello"
B) 10
C) 3.14
D) True
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What data type is used to represent decimal numbers in Python?
A) bool
B) str
C) int
D) float
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a boolean value in Python?
A) 42
B) "Python"
C) False
D) 3.14
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these is the correct way to write a list in Python?
A) [1, 2, 3]
B) {1, 2, 3}
C) (1, 2, 3)
D) <1, 2, 3>
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What function converts a string to an integer in Python?
A) str()
B) int()
C) float()
D) bool()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you convert the number 3.5 to a string in Python?
A) str(3.5)
B) int(3.5)
C) float(3.5)
D) bool(3.5)
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
CodeHS - Intro to Python - Basics and Console Interaction

Quiz
•
9th Grade - Professio...
20 questions
Язык программирования Python

Quiz
•
1st - 10th Grade
26 questions
Новогодняя по Pythony

Quiz
•
9th - 12th Grade
25 questions
Python alap

Quiz
•
10th - 12th Grade
30 questions
Tarea 4 - Progra - 4Div

Quiz
•
10th Grade
21 questions
Новогодняя. Python

Quiz
•
9th Grade - University
20 questions
Python variables and operators quiz

Quiz
•
9th - 12th Grade
21 questions
Синтаксис Python

Quiz
•
7th - 11th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade