Search Header Logo

Python - Variables and Data Types

Computers

9th - 11th Grade

Used 159+ times

Python - Variables and Data Types
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the best definition of a VARIABLE?

A variable is container of data
A variable is piece of data
A variable is a number
A variable is a piece of text

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Amy creates a program which includes the variable shown here.
What would be the best way of describing "lives"?

"lives" is string
"lives" is an identifier
"lives" could be used in a game
"lives" is a float

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Matt wants to create a program to keep a record of temperatures. 
Which DATA TYPE would be most suitable for a variable called "temperature"?

A string
A boolean
An integer 
A float

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Anil is writing a program to store information about his favourite films.
What would be a suitable data type for a variable used to store the name of the film?

A string
A booelan
An integer
A float

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Mia is writing a program that will store survey she has carried out about smartphones.
What would be a suitable DATA TYPE to use for a variable containing the number of people said they used an Android phone?

A string
An integer
A boolean
A float

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Zac has written this program in Python.
The user enters two numbers.
If the user enters 10 for each number, what will the output of the program be?

10
20
1010
It won't run

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Max has written this program in Python.
One of the lines contains at least one error.
Which line is it?

Line 1
Line 2
Line 3
Line 4

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?