Skip to content

Course home

Data structures

Data structures

EasyMedium
1234567891011121314151617181920212223
Question 15

Refer to the following Python program:

devices = ["Router", "Switch", "Hub", "Bridge", "Server"]
found = False
search_item = "Hub"
for i in range(len(devices)):
    if devices[i] == search_item:
        found = True
        print("Device found at index", i)

State the type of data structure represented by the variable devices.

[1]
Markscheme

Data structures Questions

  1. GCSE
  2. /Computer Science
  3. /Data structures

36 exam-style questions on AQA GCSE Computer Science Data structures. Each one has a worked solution and a mark scheme showing where the marks go.

Question bank