Python Data Types Quiz

Python Data Types Quiz

12th Grade

10 Qs

quiz-placeholder

Similar activities

Microsoft Excel էլեկտրոնային աղյուսակ

Microsoft Excel էլեկտրոնային աղյուսակ

12th Grade

10 Qs

Family Quizz

Family Quizz

5th Grade - Professional Development

15 Qs

Mikropemproses dan Mikropengawal

Mikropemproses dan Mikropengawal

12th Grade - University

15 Qs

Python Revision

Python Revision

11th - 12th Grade

15 Qs

Bài làm việc Access, cấu trúc bảng

Bài làm việc Access, cấu trúc bảng

9th - 12th Grade

10 Qs

HTML Quiz

HTML Quiz

11th Grade - University

15 Qs

3rd week g9 summative

3rd week g9 summative

7th - 12th Grade

15 Qs

Recap

Recap

12th Grade

10 Qs

Python Data Types Quiz

Python Data Types Quiz

Assessment

Quiz

Computers

12th Grade

Practice Problem

Hard

Created by

Haden Hiser

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a text type in Python?

dict

list

int

str

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct syntax to print the data type of variable x if x = 5?

print(x.type())

print(x.dtype())

print(type(x))

print(dtype(x))

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a correct way to set a variable x to a list?

x = ("apple", "banana", "cherry")

x = ["apple", "banana", "cherry"]

x = {"apple", "banana", "cherry"}

x = "apple, banana, cherry"

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a boolean type in Python?

1

None

0

True

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you specify the data type of a variable x to be a dictionary?

x = {"John", 36}

x = {"name" : "John", "age" : 36}

x = ["name" : "John", "age" : 36]

x = dict(name="John", age=36)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a binary type in Python?

str

int

list

bytes

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct way to set a variable x to a frozenset?

x = {"apple", "banana", "cherry"}

x = ("apple", "banana", "cherry")

x = frozenset(["apple", "banana", "cherry"])

x = ["apple", "banana", "cherry"]

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?