OCR GCSE Computer Science J277 - 2.2 Programming Fundamentals

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/58

flashcard set

Earn XP

Description and Tags

Vocabulary flashcards covering programming fundamentals for OCR GCSE Computer Science J277.

59 Terms

1
New cards

Variable

A named storage location whose value can change while a program runs.

2
New cards

Constant

A named value that should not change while a program runs.

3
New cards

Integer

A whole-number data type.

4
New cards

Real / float

A data type for numbers that can contain a fractional part.

5
New cards

Boolean

A data type with two possible values: True or False.

6
New cards

Character

A data type representing a single character.

7
New cards

String

A sequence of characters.

8
New cards

Casting

Converting a value from one data type to another.

9
New cards

Sequence

Programming construct where instructions execute in order.

10
New cards

Selection

Programming construct that chooses which instructions to execute depending on a condition.

11
New cards

Iteration

Repeating instructions using a loop.

12
New cards

Count-controlled iteration

A loop that repeats a known or specified number of times.

13
New cards

Condition-controlled iteration

A loop that repeats while or until a condition is met.

14
New cards

Arithmetic operators

Addition, subtraction, multiplication, division, integer division, remainder/modulo and exponentiation.

15
New cards

DIV / integer division

Division that returns the whole-number quotient.

16
New cards

MOD / modulo

Returns the remainder after integer division.

17
New cards

Comparison operator

Compares values and produces a Boolean result, such as equal to, not equal to, less than or greater than.

18
New cards

Boolean operators

AND, OR and NOT.

19
New cards

Assignment

Storing a value in a variable.

20
New cards

Input

Data entered into a program.

21
New cards

Output

Data or information produced by a program.

22
New cards

String concatenation

Joining strings together.

23
New cards

String length

The number of characters in a string.

24
New cards

Substring

A selected part of a string.

25
New cards

Useful string operations

They allow programs to examine, combine and manipulate text.

26
New cards

Array

A data structure that stores multiple values under one name, accessed using indexes.

27
New cards

One-dimensional array

An array arranged as a single list of elements.

28
New cards

Two-dimensional array

An array arranged using rows and columns.

29
New cards

Index

The position used to identify an element in an array or string.

30
New cards

Indexing in exam context

The starting index depends on the language or notation used; OCR Exam Reference Language uses specified conventions shown in its reference guide.

31
New cards

Record

A data structure that groups related fields about one item or entity.

32
New cards

Field

One individual piece of data within a record.

33
New cards

File

A collection of data stored so it can be retained after a program ends.

34
New cards

Reason programs use files

To store and retrieve data persistently.

35
New cards

Reading from a file

Retrieving stored data from a file for use by a program.

36
New cards

Writing to a file

Saving data from a program into a file.

37
New cards

Random number generation

Producing a value selected unpredictably from a specified range.

38
New cards

Reason to use random numbers

For tasks such as games, simulations or selecting unpredictable values.

39
New cards

SQL

A language used to query and manipulate data held in relational databases.

40
New cards

SELECT (SQL)

Specifies which field or fields should be returned by a query.

41
New cards

FROM (SQL)

Specifies the table from which data should be retrieved.

42
New cards

WHERE (SQL)

Specifies a condition used to filter which records are returned.

43
New cards

OCR J277 required SQL

Using SQL to search for data, including SELECT, FROM and WHERE.

44
New cards

Subprogram

A named block of code that performs a particular task and can be called when needed.

45
New cards

Procedure

A subprogram that performs a task; in OCR Exam Reference Language a procedure does not return a value.

46
New cards

Function

A subprogram that returns a value.

47
New cards

Parameter

A value or variable listed in a subprogram definition so data can be passed into it.

48
New cards

Argument

The actual value supplied when a subprogram is called.

49
New cards

Return value

A value sent back by a function to the part of the program that called it.

50
New cards

Reason to use subprograms

They reduce repetition, improve structure and make programs easier to develop, test and maintain.

51
New cards

Local variable

A variable available only within the subprogram or scope where it is declared.

52
New cards

Global variable

A variable that can be accessed from a wider part of the program.

53
New cards

Meaningful identifiers

They make code easier to understand, debug and maintain.

54
New cards

Indentation

It makes program structure easier to read and, in some languages such as Python, also defines blocks of code.

55
New cards

Nested construct

A programming construct placed inside another, such as a selection inside a loop.

56
New cards

Reading code

Follow the instructions and determine what the program does or what output it produces.

57
New cards

Writing code in Paper 2

Construct a working algorithm/program solution using OCR Exam Reference Language or an appropriate high-level language where permitted.

58
New cards

Limitation of memorising programming definitions

OCR also assesses the ability to interpret, trace, correct, complete and write program code.

59
New cards

Preparation before writing a program solution

Identify the inputs, required outputs and processing, then choose suitable variables, constructs and data structures.