Search Header Logo
Higher SDD - Data types & structures

Higher SDD - Data types & structures

Assessment

Presentation

Computers

8th Grade

Practice Problem

Easy

Created by

G Alexander-Doyle

Used 4+ times

FREE Resource

13 Slides • 3 Questions

1

media

2

media

records 

Aims  

  • We are learning how to use data structures to store related information.  

  • Specifically, to know how to implement and use arrays, records and arrays of records.  

 

Achievements (theory)  

  • I understand how specific data within an array can be accessed using its index.  

  • I understand how specific data within an array of records can be accessed using its index and attribute.  

 

Achievements (practical)  

  • As part of a program solution, I can use Python to implement:  

    • a record structure   

    • an array structure  

    • an array of records 

3

media

4

media

5

Categorize

Options (8)

FK1 5DY

01324-654869

True

False

42

-7

-0.001
100.5

Categorise the data values into the correct variable type.

String
Boolean
Integer
Real number

6

media

7

media

8

Fill in the Blanks

Type answer...

9

media

10

media

11

media

12

media

13

media

14

media

15

Open Ended

Recipe Finder is an app which allows users to search a list of stored recipes and displays the matching recipes. The app stores the following details about each recipe:

recipe title

main ingredient

cooking time (in minutes)

cost per portion

average rating (out of 5).

The app uses the record data structure shown below for the recipe data.

RECORD Recipe IS {STRING title, STRING ingredient, INTEGER minutes, REAL cost, REAL avgRating}

Using a programming language of your choice, declare a variable that can store the data for 750 recipes. Your answer should include the record data structure defined above.

16

media

records 

Aims  

  • We are learning how to use data structures to store related information.  

  • Specifically, to know how to implement and use arrays, records and arrays of records.  

 

Achievements (theory)  

  • I understand how specific data within an array can be accessed using its index.  

  • I understand how specific data within an array of records can be accessed using its index and attribute.  

 

Achievements (practical)  

  • As part of a program solution, I can use Python to implement:  

    • a record structure   

    • an array structure  

    • an array of records 

media

Show answer

Auto Play

Slide 1 / 16

SLIDE