Back to marketplace

Paper 2

No description yet. This curated deck is ready for daily study.

Total cards: 24•Content version: v4•Public deck•Updated: 8/1/2026

Card preview (24)

#1
Front (Question)

variable

Back (Answer)

named locations that store data in which the contents can be changed during program execution

#2
Front (Question)

local variable

Back (Answer)

declared inside a function. They can only be accessed and used in that function.

#3
Front (Question)

global variable

Back (Answer)

declared outside of all the functions, they can be used throughout the whole program including inside functions.

#4
Front (Question)

advantages of functions

Back (Answer)

easier to create and test

#5
Front (Question)

subprogram

Back (Answer)

self-contained units of code that perform some well-defined purpose.

#6
Front (Question)

function

Back (Answer)

a subprogram that ALWAYS returns a single value

#7
Front (Question)

procedure

Back (Answer)

a subprogram that returns one or many values.

#8
Front (Question)

parameter

Back (Answer)

the data that is supplied to a subprogram so that they can be reused

#9
Front (Question)

passing by reference

Back (Answer)

the address of the variable is passed to the subprogram. if the variable is changed it stays changed.

#10
Front (Question)

passing by value

Back (Answer)

a copy of the variable is passed to the subprogram. The original variable is unchanged no matter what the subprogram does.

#11
Front (Question)

binary search precondition

Back (Answer)

the list needs to be sorted

#12
Front (Question)

Insertion sort

Back (Answer)

works by dividing a list into two groups: sorted and unsorted. Elements are inserted one by one into their correct position in the sorted section.

#13
Front (Question)

thinking abstactly

Back (Answer)

represents reality by recognising what is important and blocking out other details

#14
Front (Question)

thinking ahead

Back (Answer)

planning input and outputs e.g. caching

#15
Front (Question)

caching

Back (Answer)

a temporary store where data and instructions or data that are likely to be needed are stored.

#16
Front (Question)

Thinking procedurally

Back (Answer)

writing in modules to split a problem up into manageable tasks

#17
Front (Question)

Thinking Logically

Back (Answer)

inferring things from what you already know and understanding where decisions need to be made and their consequences

#18
Front (Question)

Thinking concurrently

Back (Answer)

thinking about how a job might be done better if some parts were performed at the same time.

#19
Front (Question)

features of an IDE

Back (Answer)

• Auto-complete • colour coding/ syntax highlighting • stepping • breakpoints • watch window • error diagnostics

#20
Front (Question)

features of an IDE: Auto-complete

Back (Answer)

recognises identifiers

#21
Front (Question)

features of an IDE: colouring syntax

Back (Answer)

identifies different features making the code easier and quicker to check

#22
Front (Question)

features of an IDE: stepping

Back (Answer)

runs one line at a time to check the result, good for error checking

#23
Front (Question)

features of an IDE: breakpoints

Back (Answer)

stops the code at set points to check the value of variables, good for error checking

#24
Front (Question)

features of an IDE: watch window

Back (Answer)

tracks how variables change during the execution