Data types and Input

Data types and Input

7th - 9th Grade

14 Qs

quiz-placeholder

Similar activities

Python KS3

Python KS3

8th Grade

17 Qs

Year 8 Python - Lesson 3

Year 8 Python - Lesson 3

6th - 8th Grade

19 Qs

Quiz#2

Quiz#2

6th - 8th Grade

11 Qs

Python Programming 1: print, strings, variables, casting

Python Programming 1: print, strings, variables, casting

9th Grade - University

15 Qs

GCSE Computer Science - Programming Keywords

GCSE Computer Science - Programming Keywords

9th - 12th Grade

15 Qs

Python Year 9 Quiz

Python Year 9 Quiz

8th - 10th Grade

19 Qs

Understanding Data Types in Python Quiz

Understanding Data Types in Python Quiz

9th Grade

15 Qs

Python - Input, print and operators.

Python - Input, print and operators.

9th - 10th Grade

17 Qs

Data types and Input

Data types and Input

Assessment

Quiz

Computers

7th - 9th Grade

Medium

Created by

M Dwedari

Used 36+ times

FREE Resource

14 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a variable?

A word used in a program to refer to an area of computer memory where data used in the program will be store

A label used to refer to an area of the school where books have been stored

When a program repeats a section of code

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

We define a variable when we assign a value to the variable identifier (variable name).

For example:

In python, if a question asks to assign the value John to a variable called name, it means that I need to write:

name="John"

False

True

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Problem assign number 5.0 to a variable called 'price'

Solution: in Python, I can code it using ...

score == 5

score = 5.0

number = 50

score = "5.0"

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

price = 8.2

In python, what is the type of Price Variable ?

float / real

integer

string

boolean

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

postcode= "BL1 2AA"

What is the type of Postcode Variable ?

float

real

string

integer

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Problem: assign the number 60 to a variable called 'students'.

remember: later in the code, I may need to add or multiply this number.

Solution: in Python, I can code it using ...

students= 60

students= 60.0

number = 50

students= "60"

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

age= 18

What is the type of Age Variable ?

float / real

integer

string

boolean

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?