Search Header Logo
J277.2.2.2.Use of data types

J277.2.2.2.Use of data types

Assessment

Presentation

Computers

10th - 11th Grade

Medium

J277.2.2.1.operators, J277.2.2.2.data types, J277.2.2.1.variables/constants

+1

Standards-aligned

Created by

Ian Currie

Used 5+ times

FREE Resource

15 Slides • 41 Questions

1

J277.2.2.2.Use of data types

by Mr. Shingari

2

​Walt

Choose suitable data types for data in a given scenario

Understand that data types may be temporarily changed through casting, and where this may be useful

Practical use of the data types in a high-level language within the classroom

3

4

media

5

media

6

media

7

media

8

media

9

media

10

media

11

media

12

media

13

​Wilf

​I can choose suitable data types for data in a given scenario

14

Multiple Choice

What is a Boolean data type?
1
A set of alphanumeric characters
2
A number that may have a fractional component
3
A whole number
4
A value that is true or false, -1/1 or 0

15

Multiple Choice

In this line of code: x = f.endOfFile(), what data type is x?
1
Real
2
String
3
Integer
4
Boolean

16

Multiple Choice

In this line of code: x = 6 < 3, what data type is x?
1
String
2
Boolean
3
Integer
4
Real

17

Multiple Choice

What data type should be used for storing the name of a person?
1
Real
2
Integer
3
String
4
Boolean

18

Multiple Choice

What is a string data type?
1
A whole number
2
A set of alphanumeric characters
3
A value that is true or false, -1/1 or 0
4
A number that may have a fractional component

19

Multiple Choice

What data type should be used for storing an average?
1
String
2
Boolean
3
Real
4
Integer

20

Multiple Choice

What is meant by the term casting?
1
A string with a single alphanumeric character
2
A character that represents an action
3
Converting a variable from one data type to another
4
A value that does not change whilst the program is running

21

Multiple Choice

What is an integer?
1
A number that may have a fractional component
2
A whole number
3
A value that is true or false, -1/1 or 0
4
A set of alphanumeric characters

22

Multiple Choice

In this line of code: FOR counter = 1 to 10 what data type should counter be declared as?
1
Boolean
2
Integer
3
String
4
Real

23

Multiple Choice

What is a real number?
1
A number that may have a fractional component
2
A whole number
3
A set of alphanumeric characters
4
A value that is true or false, -1/1 or 0

24

Multiple Choice

What data type should be used for storing a telephone number?
1
Real
2
Integer
3
Boolean
4
String

25

Multiple Choice

Which of these data structures is most appropriate for storing a complete record?
1
Boolean
2
Array
3
String
4
Real

26

Multiple Choice

Question image

Casting refers to:

1

Boolean algebra

2

Rounding of reals

3

Converting between variable data types

4

Printing out of the program’s results

27

Multiple Select

What is a variable?


Answers: 2

1

A value stored in a region of memory using an identifier.

2

The value can change during the duration of the program running.

3

The value can not change during the duration of the program running.

28

Multiple Select

What is a constant?


Answers: 2

1

A value stored in a region of memory using an identifier.

2

The value can change during the duration of the program running.

3

The value can not change during the duration of the program running.

29

Multiple Choice

Variables are defined using which operator

1

=

2

==

30

Multiple Choice

Which of the following is a constant?

1

const vat = 2

2

vat = 2

31

Multiple Select

Which of the following are logical operators


Answers: 3

1

AND

2

OR

3

NOT

4

DIV

5

MOD

32

Multiple Choice

Which of the following adds?

1

+

2

-

3

*

4

/

33

Multiple Choice

Which of the following subtracts?

1

+

2

-

3

*

4

/

34

Multiple Choice

Which of the following multiplies?

1

+

2

-

3

*

4

/

35

Multiple Choice

Which of the following performs integer division?

1

DIV

2

MOD

3

^

4

/

36

Multiple Choice

Which of the following performs integer division and finds the remainder?

1

DIV

2

MOD

3

^

4

/

37

Multiple Choice

Which is the equal to operator

1

=

2

!=

3

==

38

Multiple Choice

Which is the assignment operator

1

=

2

!=

3

==

39

Multiple Choice

Which is the greater than operator

1

<

2

<=

3

>=

4

>

40

Multiple Choice

Which is the greater than or equal to operator

1

<

2

<=

3

>=

4

>

41

Multiple Select

Which of the following would ask for an input and store it so it can be used later?


Answers: 2

1

input("prompt to user")

2

input()

3

variable = input("prompt to user")

4

variable = input()

42

Multiple Select

Which of the following is a valid print statement?


Answers: 2

1

print("Hello World")

2

print "Hello World"

3

variable = "Hello World"

print (variable)

4

variable = "Hello World"

print variable

5

variable = "Hello World"

print(Hello World)

43

Multiple Choice

Choose the appropriate data type of this variable:

PlayerName e.g. “John Smith”

1

Integer

2

Real

3

String

4

Boolean

44

Multiple Choice

Choose the appropriate data type of this variable:

BestScore e.g. 5000

1

Integer

2

Real

3

String

4

Boolean

45

Multiple Choice

Choose the appropriate data type of this variable:

WorstScore e.g. 109

1

Integer

2

Real

3

String

4

Boolean

46

Multiple Choice

Choose the appropriate data type of this variable:

AverageScore e.g. 3437.5

1

Integer

2

Real

3

String

4

Boolean

47

Multiple Choice

Choose the appropriate data type of this variable:

GameCompleted e.g. False

1

Integer

2

Real

3

String

4

Boolean

48

Multiple Choice

Choose the appropriate data type of this variable:

Difficulty e.g. "M"

1

Integer

2

Real

3

String

4

Char

49

Fill in the Blank

AverageScore variable stores average score of a player so, The number has a fractional part / a decimal place. Which data type is suitable for this variable?

50

Fill in the Blank

Question image

what data type is numA?

51

Fill in the Blank

Question image

what data type is numA i?

52

Fill in the Blank

Question image

what data type is total s?

53

Fill in the Blank

Question image

Give the line number in which casting occurs in the example program.

54

Fill in the Blank

Question image

Give the line number in which casting occurs in the example program.

55

​Wilf

Practical use of the data types in a high-level language within the classroom

56

​Variable data types

​Challenge booklet- Page 9 to page 10

​Extension:

​Make the python program of the challenges on page 11. Question 5 to Question 7.

J277.2.2.2.Use of data types

by Mr. Shingari

Show answer

Auto Play

Slide 1 / 56

SLIDE