Data Types

Lesson Instructions

Watch and follow the YouTube video, the lesson contains three parts:

  1. Key Information and content - all you need to do here is watch and listen

  2. Learning activity - this activity involves answering different questions about data types and identifying variables as key data types

  3. Consolidation - these are past exam question and are for deliberate practice to check your understanding.

Task - Data Types & Casting

Task - Exam Questions - Deliberate Practice

Exam Questions - Web

Mark Scheme

Question 1

ORIGIN

  • Data type: String

  • Reason: Consists of characters

Size

  • Data type: Integer

  • Reason: Consists of whole numbers

Question 2

  • A number can contain a fractional part

  • A whole number

  • (Not rounded off)

Question 3

(a)

  • Integer/Int

  • It is a whole number/you can't have half a word

(b)

  • String (name)

  • Real/Single/Double/Currency/Float/Decimal

Question 4

1 mark per row.

  • Gender - String

  • Dose - Real/Decimal

  • isPregnant - Boolean