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
Q

What is the purpose of a ‘return’ statement in a function?

A

To send a value back to the caller of the function.

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

What data structure uses key-value pairs?

A

Dictionary

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

True or False: A while loop will continue to execute as long as a condition is true.

A

True

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

What is the primary function of an operating system?

A

To manage computer hardware and software resources.

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

Fill in the blank: A ________ is a collection of related data stored in a structured format.

A

Database

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

What is ‘object-oriented programming’?

A

A programming paradigm based on the concept of ‘objects’ that can contain data and code.

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

What is a ‘loop’ in programming?

A

A sequence of instructions that is repeated until a condition is met.

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

What is the purpose of a ‘break’ statement?

A

To exit a loop prematurely.

33
Q

What is the output of the following code: print(len(‘Hello’))?

A

5

34
Q

What does ‘SQL’ stand for?

A

Structured Query Language

35
Q

True or False: An array can only hold values of the same data type.

A

True

36
Q

What is a ‘class’ in programming?

A

A blueprint for creating objects.

37
Q

What does ‘inheritance’ mean in object-oriented programming?

A

A mechanism where a new class can inherit properties and methods from an existing class.

38
Q

Fill in the blank: In Python, the keyword ________ is used to define a function.

A

def

39
Q

What is a ‘module’ in programming?

A

A file containing Python code that can be imported and used in other programs.

40
Q

What is the significance of ‘indentation’ in Python?

A

It defines the block of code for loops, functions, and conditionals.

41
Q

True or False: A hash table is a data structure that maps keys to values.

A

True

42
Q

What is ‘exception handling’?

A

A programming construct to handle errors gracefully.

43
Q

What does ‘HTML’ stand for?

A

HyperText Markup Language

44
Q

Fill in the blank: The ________ is a visual representation of the structure of a program.

A

Flowchart

45
Q

What is the purpose of a ‘try’ block in error handling?

A

To contain code that may raise an exception.

46
Q

What is ‘polymorphism’ in programming?

A

The ability to present the same interface for different data types.

47
Q

What is a ‘boolean expression’?

A

An expression that evaluates to either true or false.

48
Q

True or False: The ‘elif’ keyword in Python is used for multiple conditions.

A

True

49
Q

What does ‘CSS’ stand for?

A

Cascading Style Sheets

50
Q

What is the purpose of a ‘switch’ statement?

A

To execute one block of code among many based on the value of a variable.

51
Q

Fill in the blank: A ________ is a reusable piece of code that can be called from other code.

A

Function

52
Q

What is a ‘stack’ in data structures?

A

A collection of elements that follows the Last In First Out (LIFO) principle.

53
Q

What is a ‘queue’ in data structures?

A

A collection of elements that follows the First In First Out (FIFO) principle.

54
Q

True or False: A linked list is a linear data structure.

A

True

55
Q

What is the purpose of the ‘continue’ statement?

A

To skip the current iteration of a loop and proceed to the next one.

56
Q

What is a ‘binary search’?

A

An efficient algorithm for finding an item from a sorted list of items.

57
Q

What does ‘debugger’ mean?

A

A tool used to test and debug programs.

58
Q

Fill in the blank: In programming, a ________ is a placeholder for a value that can change.

A

Variable

59
Q

What is ‘data encapsulation’?

A

The bundling of data with the methods that operate on that data.

60
Q

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

A

9

61
Q

What does ‘machine learning’ refer to?

A

A branch of artificial intelligence that involves training algorithms to make predictions based on data.

62
Q

What is the difference between ‘float’ and ‘integer’?

A

‘Float’ represents decimal numbers, while ‘integer’ represents whole numbers.

63
Q

True or False: A ‘byte’ consists of 8 bits.

A

True

64
Q

What is ‘cloud computing’?

A

The delivery of computing services over the internet.

65
Q

What does ‘URL’ stand for?

A

Uniform Resource Locator

66
Q

What does ‘HTTP’ stand for?

A

HyperText Transfer Protocol

67
Q

Fill in the blank: The ________ is a system that connects computers and allows them to communicate.

A

Network

68
Q

What is a ‘pixel’?

A

The smallest unit of a digital image or display.

69
Q

What is the purpose of a ‘database management system’ (DBMS)?

A

To manage databases and provide access to data.

70
Q

What does ‘encryption’ mean?

A

The process of converting data into a code to prevent unauthorized access.

71
Q

True or False: A ‘byte’ can store a single character.

A

True

72
Q

What does ‘open source’ mean?

A

Software for which the original source code is made freely available.

73
Q

What is ‘version control’?

A

A system that records changes to files over time.

74
Q

What is the purpose of a ‘firewall’?

A

To protect a network from unauthorized access.

75
Q

Fill in the blank: The ________ is a set of rules for transferring data over a network.

A

Protocol

76
Q

What is ‘data mining’?

A

The process of discovering patterns in large datasets.

77
Q

What does ‘VPN’ stand for?

A

Virtual Private Network

78
Q

What is ‘artificial intelligence’?

A

The simulation of human intelligence processes by machines.

79
Q

True or False: An ‘IP address’ is used to identify a device on a network.

A

True