Search Header Logo
Y11 13/01/25 Data Types

Y11 13/01/25 Data Types

Assessment

Presentation

Computers

3rd Grade

Practice Problem

Medium

Created by

Sam James

Used 1+ times

FREE Resource

9 Slides • 11 Questions

1

Learning Objectives

q Name the 5 different types of data

q Know the 5 characteristics of each data type

q Can explain casting

2

Programming languages store data as

different types.


You need to know the following:

  • Integer

  • Real (or Float)

  • Boolean

  • Character

  • String

3

Multiple Choice

An Example of Integer

1

Mr James

2

1/0

3

52.3

4

1000

4

Multiple Choice

An Example of Integer 2

1

Mr James Cat

2

2

3

20423.30

4

False

5

Real (or Float)​

Real numbers are numbers that include fractions/values after the decimal point.

media

6

Fill in the Blanks

7

Multiple Choice

Real or Float Example

1

500

2

3004.3

3

False

4

True

8

Boolean​

Programs use simple comparisons to help make decisions. Boolean logic is a form of algebra where all values are either True or False. These values of true and false are used to test the conditions that selection and iteration are based around.

9

Multiple Choice

Boolean Logic Example: "I am hungry?"
what answer could be used in a Boolean data type?

1

Yes

2

Probably

3

Wednesday

4

Maybe

10

Multiple Select

Boolean Logic Example: "Did you Finish your Exams?"
what answer could be used in a Boolean data type?

1

True

2

Maybe

3

Yes

4

No

11

Character

The CHAR data type stores character data in a fixed-length field.

Data can be a string of single-byte or multibyte letters, numbers, and other characters that are supported by the code set of your database locale.

12

Multiple Select

Character Examples

1

0

2

gg

3

S

4
5

&

13

Fill in the Blanks

14

String

To store text we use a STRING data type.

Think of a word or sentence as just a list (string) of characters.

15

Multiple Select

Sting Example:

1

This is not a String

2

A

3

Are we sure you can use these? `!"£$%^&*()_+

4

23490

16

Dropdown

A ​
can be any ​
but it may not function ​
correctly, for example if this was a string

5 + 5 =​

17

Categorize

Options (17)

Yes

No

Six

True

False

Hot

Cold

Cheese

Hangry

Question image

50

2

59

4

50.0

42.3423535252

3.14159

Organize these options into the right categories

Boolean
String
Integer
Real

18

Casting

19

Casting

Programming languages have functions that allow you to

convert between data types (called casting).

20

Casting

Programming languages have functions that allow you to

convert between data types (called casting).

For example:

  • int("1") converts the string "1" into integer 1

  • real (1) converts the interger 1 into real 1.0

  • Bool (1) converts the interger 1 into boolean value True

  • Str (True) converts the Boolean value True into the string "True"

Learning Objectives

q Name the 5 different types of data

q Know the 5 characteristics of each data type

q Can explain casting

Show answer

Auto Play

Slide 1 / 20

SLIDE