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.