Basic Python Variables

Basic Python Variables

9th - 11th Grade

9 Qs

quiz-placeholder

Similar activities

MODULE 8 PRE TEST

MODULE 8 PRE TEST

10th Grade

10 Qs

Genially-Repaso

Genially-Repaso

10th Grade

14 Qs

Installing and Carrying Out  Variation of Application Software

Installing and Carrying Out Variation of Application Software

10th Grade

10 Qs

J277 - 1.1 Systems Architecture MCQs 2

J277 - 1.1 Systems Architecture MCQs 2

10th - 11th Grade

11 Qs

CSC41 Week 1

CSC41 Week 1

9th Grade

10 Qs

Principles of Networking

Principles of Networking

11th Grade

10 Qs

Test- zaj. komp - klasa 4

Test- zaj. komp - klasa 4

KG - University

14 Qs

Testing Software

Testing Software

9th - 12th Grade

9 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