← All printables
QCE Digital Solutions Unit 4 · Modules 334–401

Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.

A free printable QCE Digital Solutions Unit 4 definitions worksheet with 15 key terms, built from the key terms of Prototype Digital Data Exchanges (Modules 334–401) — SQL ALTER TABLE, SQL HAVING, SQL sub-select (subquery), Reading and writing binary files, Connecting to a SQLite database with sqlite3, Running SQL from Python: execute, fetchall and commit and more. Print it or save it as a PDF — the answer key starts on its own page. No login needed.

QCE Digital Solutions Unit 4 Definitions Worksheet: Prototype Digital Data Exchanges (Modules 334–401)

Name:
Date:
Class:

Key terms

Write what each term means, in your own words.

1
ALTER TABLE
2
HAVING
3
(SELECT ...)
4
open('data.bin', 'rb')
5
conn = sqlite3.connect("school.db")
6
cursor.execute()
7
json.dumps()
8
requests.post(url, json=data)
9
receive -> process -> display
10
one-time pad
11
key = [random.randint(0, 25) for c in message]
12
(m + k) % 26
13
Security-impact evaluation
14
accuracy testing
15
reliability testing

Answer Key

QCE Digital Solutions Unit 4 · Modules 334–401 · Student wording will vary for definitions
1ALTER TABLE — Changes the structure of an existing table, such as adding a column with ADD or removing one with DROP COLUMN. Existing rows keep their data and get empty (NULL) values in a new column.
2HAVING — Filters groups after GROUP BY using an aggregate condition, e.g. HAVING COUNT(*) > 2. WHERE filters rows before grouping. Order: WHERE, GROUP BY, HAVING.
3(SELECT ...) — A sub-select is a SELECT inside brackets in a WHERE clause. It runs first and its result is used by the outer query, e.g. to compare with an AVG or to match values using IN.
4open('data.bin', 'rb') — Opens a file in binary mode so read() returns raw bytes, not text. Use 'wb' to write bytes. Binary data is type bytes, not str, and read(n) reads n bytes.
5conn = sqlite3.connect("school.db") — Opens the SQLite database file school.db (creating it if missing) and returns a connection. Then conn.cursor() makes a cursor to run SQL, and conn.close() ends the connection.
6cursor.execute() — Runs an SQL statement from Python. Then fetchall() returns the result rows as tuples, and conn.commit() saves INSERT or UPDATE changes. Use ? placeholders for values.
7json.dumps() — Turns a Python dictionary or list into JSON text (double-quoted keys, braces, square brackets) ready to send. json.loads() does the reverse and turns JSON text back into Python data.
8requests.post(url, json=data) — Sends a Python dictionary to a web API as a JSON request body, unlike GET which only fetches data. Check the response with response.status_code.
9receive -> process -> display — A prototype pipeline: get external data into a variable, process it with a function, then show the result. Each step has its own function, called from main().
10one-time pad — A cipher that encrypts each letter with a random key letter. The key is as long as the message and is used once only, so it is unbreakable if used correctly.
11key = [random.randint(0, 25) for c in message] — Builds a one-time pad key by picking one random number from 0 to 25 for each character in the message, so the key is as long as the message. Never reuse a key.
12(m + k) % 26 — One-time pad: shift each message letter number m by the matching key number k, wrapping with % 26. To decrypt, subtract the same key values: (c - k) % 26. zip pairs each letter with its key.
13Security-impact evaluation — Judging a data exchange on five aspects: use, dissemination, storage, accuracy and ownership of data, with evidence for each, then recommending a fix.
14accuracy testing — Comparing the prototype's actual output with expected results worked out by hand from known data, to find wrong values such as rounding or conversion errors.
15reliability testing — Checking a prototype keeps working when the data source is offline, missing, empty, slow or sends malformed data, and gives consistent results on repeated runs.

Modules this definitions worksheet covers

Every module has its own free printable worksheet with an answer key, and students can practise the same terms interactively on Cloodit.

Part of: QCE Digital Solutions Unit 4 — Prototype Digital Data Exchanges

More QCE Digital Solutions Unit 4 printables

This printable is free — no login needed.

Free classroom tools, no account: Hangman · Random Team Generator · Random Name Picker Wheel · Seating Plan Maker

Make a free class, give it a journey, and you also get:

Create a free teacher account →

No credit card. No setup fee. Make a class and invite students in under three minutes.