T-Level DPDD: Data Types Quiz

T-Level DPDD: Data Types Quiz

11th Grade

34 Qs

quiz-placeholder

Similar activities

[AP CSP] Programming with Conditionals [If, Elif, Else]

[AP CSP] Programming with Conditionals [If, Elif, Else]

9th Grade - University

35 Qs

Tech+ 4.3

Tech+ 4.3

11th Grade - University

30 Qs

Lesson 1.1 Vocab - CSE

Lesson 1.1 Vocab - CSE

9th - 12th Grade

30 Qs

Python Course Selection

Python Course Selection

7th - 11th Grade

31 Qs

Unit 5 Vocabulary

Unit 5 Vocabulary

10th - 12th Grade

31 Qs

Python programming

Python programming

11th Grade

30 Qs

AP Computer Science Principles Units 1-3

AP Computer Science Principles Units 1-3

9th - 12th Grade

30 Qs

Starting Out with Python Ch 5 Functions

Starting Out with Python Ch 5 Functions

7th - 12th Grade

35 Qs

T-Level DPDD: Data Types Quiz

T-Level DPDD: Data Types Quiz

Assessment

Quiz

Computers

11th Grade

Hard

Created by

Sara Burton

Used 1+ times

FREE Resource

34 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a data type used in programming?

Boolean

Character

Integer

Attribute

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the term used to describe a data type that cannot be changed once assigned in Python?

Mutable

Immutable

Constant

Variable

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which Python code would you use to check the data type of a variable y that has been assigned the value 2.3?

print(type(y))

check(type(y))

type(y)

print(y.type())

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following Python code: y = 45.6; print(y)?

45.6

"45.6"

None

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following values can be stored as a Boolean data type?

True

"Hello"

45.6

9

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to declare a constant in Python?

Using the 'const' keyword

Using uppercase letters with words separated by an underscore

Using the 'constant' keyword

Using the 'final' keyword

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following Python code: y = "Good Morning"; print(y)?

Good Morning

"Good Morning"

None

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?