Additional Programming Techniques: Producing robust programs: Computer Science: GCSE (9:1)

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/17

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

18 Terms

1
New cards

Array

A data structure that stores many data items of the same data type, can be 1D, 2D or more. In Python we use a list for this

2
New cards

gameboard[0,0]

The pseudocode in Exam Reference Language (ERL) to return the contents of row 0 column 0 of a 2D array called gameboard

3
New cards

Record

A collection of related data items called fields, often stored as a row in a database, it represents something in the real world like a person or product

4
New cards

Field

A data item in a record, often shown as a column in a database. For example "Name" or "Age". It has a single data type

5
New cards

Slicing

Dividing up a string into parts. In ERL we use the Substring method, in Python we use string[a:b]

6
New cards

Concatenation

Joining two strings together, usually uses the + operator, for example fullname = firstname + lastname

7
New cards

"Char"

The string returned by this code:

phrase = "Character"

phrase.subString(0,4)

8
New cards

Substring

A function in Exam Reference Language (ERL) that returns part of a string when we pass it a starting position and length

9
New cards

File

A collection of related data saved on secondary storage, it can be plain text, CSV or a database

10
New cards

Open

Connect to a file and prepare it for read or write with a command like this (ERL):

myFile = open("sample.txt")

11
New cards

Close

When finished reading or writing this makes the file available to other programs, this is the command (ERL):

myFile.close()

12
New cards

Read

Load data from an open file into a variable or data structure in memory. Example command (in ERL):

myFile.readLine()

13
New cards

Write

Add data to an open file from variables or data structures in memory. For example (ERL):

myFile.writeLine("Add new line")

14
New cards

SQL

Code that is used to query a database, it stands for Structured Query Language and includes SELECT, FROM, WHERE

15
New cards

SELECT

The SQL command used to view or query a database

16
New cards

FROM

The SQL keyword that specifies the table to be queried

17
New cards

WHERE

Keyword that specifies the criteria to select upon, in an SQL query

18
New cards

"Cher"

The result of the following query on the this database table

SELECT Name FROM Students WHERE House = "Curie" AND Grade = "B"

<p>The result of the following query on the this database table</p><p>SELECT Name FROM Students WHERE House = "Curie" AND Grade = "B"</p>