Basic Python Variables

Basic Python Variables

9th - 11th Grade

9 Qs

quiz-placeholder

Similar activities

BTEC modern technologies

BTEC modern technologies

11th Grade

10 Qs

IP ADDRESS

IP ADDRESS

11th Grade

10 Qs

Hardware y periféricos

Hardware y periféricos

10th Grade

10 Qs

SOAL-TKJ

SOAL-TKJ

10th Grade

10 Qs

Quiz - Cores 3: nomes das cores e qual opção pode ser melhor

Quiz - Cores 3: nomes das cores e qual opção pode ser melhor

10th Grade

10 Qs

Structured information_E

Structured information_E

6th - 12th Grade

13 Qs

Informatika Kelas IX

Informatika Kelas IX

9th - 12th Grade

10 Qs

IMedia Recap

IMedia Recap

9th - 11th Grade

12 Qs

Basic Python Variables

Basic Python Variables

Assessment

Quiz

Computers

9th - 11th Grade

Hard

Created by

Thomas Martinez

FREE Resource

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

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What word describes the rules that determine how we have to write our programming commands in Python?
Statements
Expressions
Variables
Syntax

9.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct data-type for a shop that tracks its stock level as either in stock or not?
Boolean
String
Float
Integer