Paper 2: Programming Key Terms and Computational Thinking Flashcards

1
Q

What is an algorithm?

A

An algorithm is a list of rules to follow in order to complete a task or solve a problem. The steps in an algorithm need to be in the right order.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Define algorithmic thinking.

A

Working out the steps needed to solve a problem and what order they need to be completed.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is decomposition in computational thinking?

A

Decomposition is the process of breaking a large problem down into a series of smaller, more manageable tasks.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What does abstraction mean in computational thinking?

A

Abstraction filters out the details that are not important, allowing us to create a general idea of what a problem is and how to solve it by focusing only on the key issues.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a sequence in programming constructs?

A

A set of steps one after the other.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is meant by selection in programming?

A

A decision structure, e.g., if statement.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Define iteration in programming.

A

Repetition, such as for or while loop.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is input sanitisation?

A

The process of removing unwanted characters before passing data into a program.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is validation in programming?

A

Checking data input by the user meets specific criteria/formatting before processing.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What does verification involve?

A

Checking data against a second source to make sure it is correct.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is a syntax error?

A

An error where the code will not run due to spelling mistakes, punctuation missing, or missing key terms.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is a logical error?

A

An error where the code runs, but the outcome is wrong, and the code does not perform as it should.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What does DIV or (//) represent in programming?

A

Integer division that removes any decimal places.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What does MOD/Modulo or (%) do?

A

Gives the remainder of any division.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is the exponent operator (^ or **) used for?

A

To raise a number to the power of another number.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Define a variable in programming.

A

A value stored in memory that can change while the program is running.

17
Q

What is a constant in programming?

A

A value that does not change while the program is running and is assigned when the program is designed.

18
Q

What is a global variable?

A

A variable that can be accessed both within the main program and inside functions and procedures.

19
Q

What is an array?

A

Like a variable but can store multiple values under the same heading, all data must be of the same data type.

20
Q

Define data type in programming.

A

How the data is stored in a program, e.g., Integer, String, Float/Real, or Boolean.

21
Q

What is casting in programming?

A

Changing the data type of a value.

22
Q

What does concatenation mean?

A

Joining two strings together.

23
Q

What is a subprogram?

A

Using a function or a procedure to break the code into smaller, self-contained sections.

24
Q

What is the difference between a function and a procedure?

A

A function returns a value, while a procedure does not.

25
Q

What is a parameter in programming?

A

A piece of data that can be ‘passed into’ a subroutine when it is called.