Basic Python Variables

Basic Python Variables

9th - 11th Grade

9 Qs

quiz-placeholder

Similar activities

BTEC Level 3 Nat Ext Dip in Computing - Unit 2.1 Hardware and Software

BTEC Level 3 Nat Ext Dip in Computing - Unit 2.1 Hardware and Software

11th - 12th Grade

10 Qs

CSS background, border

CSS background, border

11th Grade

10 Qs

Internet seguro

Internet seguro

8th Grade - University

10 Qs

Tes Pengetahuan CSS #5 dan #6

Tes Pengetahuan CSS #5 dan #6

11th Grade

10 Qs

conditional constructs in Java

conditional constructs in Java

10th Grade

10 Qs

Internet

Internet

7th - 10th Grade

10 Qs

Grade 11 Term 4 Practice 2

Grade 11 Term 4 Practice 2

11th Grade

10 Qs

Los periféricos del computador

Los periféricos del computador

1st Grade - Professional Development

9 Qs

Basic Python Variables

Basic Python Variables

Assessment

Quiz

Computers

9th - 11th Grade

Hard

Created by

Thomas Martinez

FREE Resource

AI

Enhance your content in a minute

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

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?