Interpreting and Correcting Algorithms: Computer Science OCR: GCSE (9:1)

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

1/14

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.

15 Terms

1
New cards

Syntax error

Coding error where the rules of the language have been broken, e.g. a missing punctuation mark or keyword such as print(hello")

2
New cards

Runtime error

Any error that occurs while the program is running and stops execution, including division by zero and using an unknown variable

3
New cards

Logic error

An error that occurs when code compiles and runs, but doesn't perform correctly. E.g. using > instead of >=. It is detected by systematic testing with a trace table

4
New cards

Test plan

A plan for testing a program in a structured way. Includes test data and expected results. Proper testing with one of these can find logic errors and prevent runtime errors

5
New cards

Trace table

A testing tool that finds logic errors. It records the values of variables at each point during execution, so you can see where the program code does something you didn't intend

<p>A testing tool that finds logic errors. It records the values of variables at each point during execution, so you can see where the program code does something you didn't intend</p>
6
New cards

Sequence

knowt flashcard image
7
New cards

Selection

knowt flashcard image
8
New cards

Iteration

knowt flashcard image
9
New cards

Compiler

Syntax errors will be found by this program, it checks the high-level code and translates it to machine code

10
New cards

Grammar

Another word for syntax, it is the rules of a language. Writing code that does not follow these rules causes a syntax error

11
New cards

Terminal

This shape starts and stops an algorithm

<p>This shape starts and stops an algorithm</p>
12
New cards

Process

This shape is used for a process such as calculating or sorting

<p>This shape is used for a process such as calculating or sorting</p>
13
New cards

Decision

This shape is used to perform selection based on a condition e.g. "if age > 18"

<p>This shape is used to perform selection based on a condition e.g. "if age &gt; 18"</p>
14
New cards

Input/Output

This shape is used to show data entering or leaving the algorithm (I_______/O_______)

<p>This shape is used to show data entering or leaving the algorithm (I_______/O_______)</p>
15
New cards

Subprogram

This shape indicates a call to a subprogram (which you can write in another flowchart)

<p>This shape indicates a call to a subprogram (which you can write in another flowchart)</p>