Search Header Logo
Data Types and Variables

Data Types and Variables

Assessment

Presentation

Computers

9th - 10th Grade

Medium

Created by

Calum Gordon

Used 24+ times

FREE Resource

9 Slides • 27 Questions

1

Data Types and Variables

Primitive types and assignment

media

2

media

3

media

4

Multiple Select

Question image

In this lesson I am going to learn to ... ?

1

Recognise Primitive data types

2

Define 'variable'

3

Create meaningful variables

4

View variable values in IDE

5

media

6

Fill in the Blank

What is a named or labelled data value stored in memory called?

7

Multiple Select

Choose all the properties of a variable ...

1

Name/Label

2

Value

3

Data type

4

Address in memory

8

media

9

Multiple Choice

Which one of these variable names is written using camel case?

1

studentAge

2

studentage

3

student_age

4

StudentAge

10

Multiple Select

Choose all the variable names that are meaningful ...

1

houseColour

2

tutorGroup

3

a1

4

favFood

5

xyZ

11

media

12

Multiple Choice

Which data type is this data?

42

1

int

2

char

3

bool

4

float

13

Multiple Choice

Which data type is this data?

'x'

1

int

2

char

3

bool

4

float

14

Multiple Choice

Which data type is this data?

False

1

int

2

char

3

bool

4

float

15

Multiple Choice

Which data type is this data?

9.99

1

int

2

char

3

bool

4

float

16

Multiple Select

Choose all the integers ...

1

1

2

2+2

3

4//2

4

4/2

17

Multiple Select

Choose all the chars ...

1

'a'

2

'abc'

3

'b'

4

'a'+'b'

18

Multiple Select

Choose all the floats ...

1

3.1457

2

3

3

22/7

4

0

19

Multiple Select

Choose all the Booleans ...

1

True

2

False

3

"True"

4

not False

20

media

21

Open Ended

Look up a TypeError here:

https://docs.python.org/3/library/exceptions.html?highlight=nameerror#

Copy out a description of it.

22

media

23

Open Ended

Find out how to view the contents of variables in the Thonny IDE.

Write down a short description of how to do this.

24

Fill in the Blank

Question image

Type the name of an integer variable ...

25

Fill in the Blank

Question image

Type the name of an float variable ...

26

Fill in the Blank

Question image

Type the name of an char (string) variable ...

27

Fill in the Blank

Question image

What is the value of charCounter after line 3 has been executed?

28

Fill in the Blank

Question image

What is the value of trackLength after line 5 has been executed?

29

Fill in the Blank

Question image

What is the value of gender after line 7 has been executed?

30

Multiple Choice

Question image

What is the value of bool(trackLength) after this code has executed?

1

True

2

False

31

Multiple Choice

Question image

What is the value of bool(height) after this code has executed?

1

True

2

False

32

Multiple Choice

Question image

What is the value of bool(gender) after this code has executed?

1

True

2

False

33

media

34

Multiple Select

Question image

In this lesson I have learned to ...

1

Recognise Primitive data types

2

Define 'variable'

3

Create meaningful variables

4

View variable values in IDE

35

Open Ended

Question image

Thinking Hard

What is the most interesting thing you've learnt today?

Compare your idea with a friend's.

(press Shift+Enter to take a new line ...)

36

Poll

Question image

How much of this lesson have you understood?

None of it

Some of it

Most of it

All of it

Data Types and Variables

Primitive types and assignment

media

Show answer

Auto Play

Slide 1 / 36

SLIDE