SHS Computing · Year 1

Data Types and Data Structures practice questions

Python data types (int, float, str, bool) and type conversion, variable naming rules, linear and non-linear data structures, static and dynamic structures, one- and two-dimensional arrays and parallel arrays, linked lists, stacks, queues, trees and graphs, and the common operations on them.

28 questions in this topic: 2 recall, 15 applying skills and concepts, 9 strategic thinking and 2 extended thinking. Every one carries a written explanation.

Sample questions

5 of 28 questions in this topic. Sign up to answer them and see the explanations.

  1. Question 1Skills & concepts

    An array is declared to hold exactly 9 items, indexed from 0. What is the index of its last item?

    • a8
    • b9
    • c10
    • d1
  2. Question 2Strategic thinking

    A school printer receives jobs from many teachers. Which structure should the print manager use so that jobs print in the order sent?

    • aA stack
    • bA tree
    • cA queue
    • dA 2D array
  3. Question 3Strategic thinking

    Starting with an empty queue, a program does: enqueue 5, enqueue 8, dequeue, enqueue 3, enqueue 9, dequeue. Which value is now at the front?

    • a9
    • b8
    • c3
    • d5
  4. Question 4Skills & concepts

    Which statement best describes a static data structure such as an array?

    • aIts size is fixed when it is created, though its values can still change
    • bIts size and its values can both grow or shrink as the program runs
    • cIts values can never change once the program has been compiled
    • dIt can only store text, while dynamic structures store numbers
  5. Question 5Skills & concepts

    Which of these is a non-linear data structure?

    • aA queue
    • bA stack
    • cA tree
    • dAn array

Answer these and 23 more on Data Types and Data Structures

Free account. Instant marking, a written explanation for every question.

Start practising free

More Computing Year 1 topics

All Computing topics