GCSE Paper 1 Problem Solving Flashcards
What does CPU stand for?
Central Processing Unit
True or False: An algorithm is a step-by-step procedure for solving a problem.
True
What is the purpose of a variable in programming?
To store data values.
Fill in the blank: The ________ is the part of the computer that executes instructions.
CPU
What type of loop will always execute at least once?
Do-while loop
What does IDE stand for?
Integrated Development Environment
True or False: A syntax error occurs when the code violates the rules of the programming language.
True
What is the output of the following code snippet: print(2 + 3 * 4)?
14
What is a function in programming?
A block of reusable code that performs a specific task.
Which data type is used to represent true or false values?
Boolean
What symbol is used for comments in Python?
#
What is the purpose of a conditional statement?
To execute different code based on certain conditions.
Fill in the blank: In programming, a ________ is a sequence of characters.
String
What does ‘debugging’ refer to?
The process of finding and fixing errors in code.
What does ‘API’ stand for?
Application Programming Interface
Which of the following is a valid variable name? a) 1stVariable b) first_variable c) first-variable
b) first_variable
What is a list in programming?
A collection of items that can be of different data types.
True or False: A for loop is used to iterate over a sequence.
True
What is the main purpose of a compiler?
To translate source code into machine code.
What does ‘recursion’ mean in programming?
A function that calls itself.
Fill in the blank: A ________ is a set of instructions that tells a computer how to perform a task.
Program
What is the difference between ‘==’’ and ‘=’ in programming?
’==’ is a comparison operator, while ‘=’ is an assignment operator.
What does ‘string concatenation’ mean?
Joining two or more strings together.
What is a ‘syntax error’?
An error that occurs when the code does not follow the correct syntax.
What is the purpose of a ‘return’ statement in a function?
To send a value back to the caller of the function.
What data structure uses key-value pairs?
Dictionary
True or False: A while loop will continue to execute as long as a condition is true.
True
What is the primary function of an operating system?
To manage computer hardware and software resources.
Fill in the blank: A ________ is a collection of related data stored in a structured format.
Database
What is ‘object-oriented programming’?
A programming paradigm based on the concept of ‘objects’ that can contain data and code.
What is a ‘loop’ in programming?
A sequence of instructions that is repeated until a condition is met.
What is the purpose of a ‘break’ statement?
To exit a loop prematurely.
What is the output of the following code: print(len(‘Hello’))?
5
What does ‘SQL’ stand for?
Structured Query Language
True or False: An array can only hold values of the same data type.
True
What is a ‘class’ in programming?
A blueprint for creating objects.
What does ‘inheritance’ mean in object-oriented programming?
A mechanism where a new class can inherit properties and methods from an existing class.
Fill in the blank: In Python, the keyword ________ is used to define a function.
def
What is a ‘module’ in programming?
A file containing Python code that can be imported and used in other programs.
What is the significance of ‘indentation’ in Python?
It defines the block of code for loops, functions, and conditionals.
True or False: A hash table is a data structure that maps keys to values.
True
What is ‘exception handling’?
A programming construct to handle errors gracefully.
What does ‘HTML’ stand for?
HyperText Markup Language
Fill in the blank: The ________ is a visual representation of the structure of a program.
Flowchart
What is the purpose of a ‘try’ block in error handling?
To contain code that may raise an exception.
What is ‘polymorphism’ in programming?
The ability to present the same interface for different data types.
What is a ‘boolean expression’?
An expression that evaluates to either true or false.
True or False: The ‘elif’ keyword in Python is used for multiple conditions.
True
What does ‘CSS’ stand for?
Cascading Style Sheets
What is the purpose of a ‘switch’ statement?
To execute one block of code among many based on the value of a variable.
Fill in the blank: A ________ is a reusable piece of code that can be called from other code.
Function
What is a ‘stack’ in data structures?
A collection of elements that follows the Last In First Out (LIFO) principle.
What is a ‘queue’ in data structures?
A collection of elements that follows the First In First Out (FIFO) principle.
True or False: A linked list is a linear data structure.
True
What is the purpose of the ‘continue’ statement?
To skip the current iteration of a loop and proceed to the next one.
What is a ‘binary search’?
An efficient algorithm for finding an item from a sorted list of items.
What does ‘debugger’ mean?
A tool used to test and debug programs.
Fill in the blank: In programming, a ________ is a placeholder for a value that can change.
Variable
What is ‘data encapsulation’?
The bundling of data with the methods that operate on that data.
What is the output of the following code: print(3 ** 2)?
9
What does ‘machine learning’ refer to?
A branch of artificial intelligence that involves training algorithms to make predictions based on data.
What is the difference between ‘float’ and ‘integer’?
‘Float’ represents decimal numbers, while ‘integer’ represents whole numbers.
True or False: A ‘byte’ consists of 8 bits.
True
What is ‘cloud computing’?
The delivery of computing services over the internet.
What does ‘URL’ stand for?
Uniform Resource Locator
What does ‘HTTP’ stand for?
HyperText Transfer Protocol
Fill in the blank: The ________ is a system that connects computers and allows them to communicate.
Network
What is a ‘pixel’?
The smallest unit of a digital image or display.
What is the purpose of a ‘database management system’ (DBMS)?
To manage databases and provide access to data.
What does ‘encryption’ mean?
The process of converting data into a code to prevent unauthorized access.
True or False: A ‘byte’ can store a single character.
True
What does ‘open source’ mean?
Software for which the original source code is made freely available.
What is ‘version control’?
A system that records changes to files over time.
What is the purpose of a ‘firewall’?
To protect a network from unauthorized access.
Fill in the blank: The ________ is a set of rules for transferring data over a network.
Protocol
What is ‘data mining’?
The process of discovering patterns in large datasets.
What does ‘VPN’ stand for?
Virtual Private Network
What is ‘artificial intelligence’?
The simulation of human intelligence processes by machines.
True or False: An ‘IP address’ is used to identify a device on a network.
True