GCSE Paper 1 Problem Solving Flashcards

1
Q

What does CPU stand for?

A

Central Processing Unit

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

True or False: An algorithm is a step-by-step procedure for solving a problem.

A

True

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

What is the purpose of a variable in programming?

A

To store data values.

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

Fill in the blank: The ________ is the part of the computer that executes instructions.

A

CPU

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

What type of loop will always execute at least once?

A

Do-while loop

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

What does IDE stand for?

A

Integrated Development Environment

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

True or False: A syntax error occurs when the code violates the rules of the programming language.

A

True

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

What is the output of the following code snippet: print(2 + 3 * 4)?

A

14

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

What is a function in programming?

A

A block of reusable code that performs a specific task.

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

Which data type is used to represent true or false values?

A

Boolean

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

What symbol is used for comments in Python?

A

#

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

What is the purpose of a conditional statement?

A

To execute different code based on certain conditions.

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

Fill in the blank: In programming, a ________ is a sequence of characters.

A

String

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

What does ‘debugging’ refer to?

A

The process of finding and fixing errors in code.

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

What does ‘API’ stand for?

A

Application Programming Interface

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

Which of the following is a valid variable name? a) 1stVariable b) first_variable c) first-variable

A

b) first_variable

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

What is a list in programming?

A

A collection of items that can be of different data types.

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

True or False: A for loop is used to iterate over a sequence.

A

True

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

What is the main purpose of a compiler?

A

To translate source code into machine code.

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

What does ‘recursion’ mean in programming?

A

A function that calls itself.

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

Fill in the blank: A ________ is a set of instructions that tells a computer how to perform a task.

A

Program

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

What is the difference between ‘==’’ and ‘=’ in programming?

A

’==’ is a comparison operator, while ‘=’ is an assignment operator.

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

What does ‘string concatenation’ mean?

A

Joining two or more strings together.

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

What is a ‘syntax error’?

A

An error that occurs when the code does not follow the correct syntax.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
What is the purpose of a 'return' statement in a function?
To send a value back to the caller of the function.
26
What data structure uses key-value pairs?
Dictionary
27
True or False: A while loop will continue to execute as long as a condition is true.
True
28
What is the primary function of an operating system?
To manage computer hardware and software resources.
29
Fill in the blank: A ________ is a collection of related data stored in a structured format.
Database
30
What is 'object-oriented programming'?
A programming paradigm based on the concept of 'objects' that can contain data and code.
31
What is a 'loop' in programming?
A sequence of instructions that is repeated until a condition is met.
32
What is the purpose of a 'break' statement?
To exit a loop prematurely.
33
What is the output of the following code: print(len('Hello'))?
5
34
What does 'SQL' stand for?
Structured Query Language
35
True or False: An array can only hold values of the same data type.
True
36
What is a 'class' in programming?
A blueprint for creating objects.
37
What does 'inheritance' mean in object-oriented programming?
A mechanism where a new class can inherit properties and methods from an existing class.
38
Fill in the blank: In Python, the keyword ________ is used to define a function.
def
39
What is a 'module' in programming?
A file containing Python code that can be imported and used in other programs.
40
What is the significance of 'indentation' in Python?
It defines the block of code for loops, functions, and conditionals.
41
True or False: A hash table is a data structure that maps keys to values.
True
42
What is 'exception handling'?
A programming construct to handle errors gracefully.
43
What does 'HTML' stand for?
HyperText Markup Language
44
Fill in the blank: The ________ is a visual representation of the structure of a program.
Flowchart
45
What is the purpose of a 'try' block in error handling?
To contain code that may raise an exception.
46
What is 'polymorphism' in programming?
The ability to present the same interface for different data types.
47
What is a 'boolean expression'?
An expression that evaluates to either true or false.
48
True or False: The 'elif' keyword in Python is used for multiple conditions.
True
49
What does 'CSS' stand for?
Cascading Style Sheets
50
What is the purpose of a 'switch' statement?
To execute one block of code among many based on the value of a variable.
51
Fill in the blank: A ________ is a reusable piece of code that can be called from other code.
Function
52
What is a 'stack' in data structures?
A collection of elements that follows the Last In First Out (LIFO) principle.
53
What is a 'queue' in data structures?
A collection of elements that follows the First In First Out (FIFO) principle.
54
True or False: A linked list is a linear data structure.
True
55
What is the purpose of the 'continue' statement?
To skip the current iteration of a loop and proceed to the next one.
56
What is a 'binary search'?
An efficient algorithm for finding an item from a sorted list of items.
57
What does 'debugger' mean?
A tool used to test and debug programs.
58
Fill in the blank: In programming, a ________ is a placeholder for a value that can change.
Variable
59
What is 'data encapsulation'?
The bundling of data with the methods that operate on that data.
60
What is the output of the following code: print(3 ** 2)?
9
61
What does 'machine learning' refer to?
A branch of artificial intelligence that involves training algorithms to make predictions based on data.
62
What is the difference between 'float' and 'integer'?
'Float' represents decimal numbers, while 'integer' represents whole numbers.
63
True or False: A 'byte' consists of 8 bits.
True
64
What is 'cloud computing'?
The delivery of computing services over the internet.
65
What does 'URL' stand for?
Uniform Resource Locator
66
What does 'HTTP' stand for?
HyperText Transfer Protocol
67
Fill in the blank: The ________ is a system that connects computers and allows them to communicate.
Network
68
What is a 'pixel'?
The smallest unit of a digital image or display.
69
What is the purpose of a 'database management system' (DBMS)?
To manage databases and provide access to data.
70
What does 'encryption' mean?
The process of converting data into a code to prevent unauthorized access.
71
True or False: A 'byte' can store a single character.
True
72
What does 'open source' mean?
Software for which the original source code is made freely available.
73
What is 'version control'?
A system that records changes to files over time.
74
What is the purpose of a 'firewall'?
To protect a network from unauthorized access.
75
Fill in the blank: The ________ is a set of rules for transferring data over a network.
Protocol
76
What is 'data mining'?
The process of discovering patterns in large datasets.
77
What does 'VPN' stand for?
Virtual Private Network
78
What is 'artificial intelligence'?
The simulation of human intelligence processes by machines.
79
True or False: An 'IP address' is used to identify a device on a network.
True