Search Header Logo

Python Quiz 1 - Data Types

Computers

9th - 10th Grade

Used 3+ times

Python Quiz 1 - Data Types
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which of the following is used to represent 'nothing'?

None
none
0
No

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

This particular Data Type has 2 potential values (typically True or False).

String
Integer
Boolean
Float

3.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which of the following will give an error?

print(int("-3"))
print(str(-3))
print(float("minus three"))
print(str(-3.0

4.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which of the following is an example of a list of numbers?

y = [1,2,3,4,5]
y = (1,2,3,4,5)
y = "1,2,3,4,5"
12345 = y

5.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which Data Type would the following be stored as:--- "  Biscuit  "

String
Integer
Boolean
Float

6.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which of the following will NOT give an error?

print(none)
print(1EE1)
print(True)
print(3.1.3)

7.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

A price such as £3.65 should be saved as what kind of variable?

String
Integer
Boolean
Float

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?