Page | 1
Edexcel GCSE Computer Science Questions
and Verified Answers
Q: What is a character?
ANS: A letter,number or symbol on a given character set
Q:
What is a string?
ANS: A sequence of characters
Q:
What is casting?
ANS: Changing the data type of a variable
Q:
What is a count-controlled loop?
ANS: A loop that repeats a specific number of times (FOR loops)
Q:
What is a condition controlled loop?
ANS: A loop that runs until a condition is met (WHILE loops)
Q:
When would you use a variable?
ANS: When a value might need to change while the program is running
Q:
When would you use a constant?
ANS: When a value would not need to change while while the program is running
Q:
Why are constants useful?
, Page | 2
ANS: Readability and easier to update
Q:
What is a subprogram?
ANS: A block of code that performs a specific task
Q:
What are libraries?
ANS: Collections of pre-written subprograms for specific purposes
Q:
What is a local variable?
ANS: A variable that is declared inside a function or procedure so can be accessed
within the subprogram
Q:
What is a global variable?
ANS: A variable that can be accessed from anywhere
Q:
Do functions return a value?
ANS: Yes
Q:
Do procedures return a value?
ANS: No
Q:
What is an array?
ANS: A data structure with one or more elements of the same type (have a fixed
length only contain elements of the same data type)
Q:
What is an index?
ANS: A position within an array
, Page | 3
Q:
What is a 1D array?
ANS: An array that stores data in one direction (horizontal)
Q:
What is a 2D array?
ANS: An array that stores data horizontally and vertically (indexed with two
numbers)
Q:
Why is it good to close files after use?
ANS: It frees up resources,prevents corruption and flushes the buffer
Q:
What's does MOD do?
ANS: Gives remainder
Q:
What does DIV do?
ANS: Shows how many times x goes into y (23 DIV 5 = 4)
Q:
What does the Boolean operator NOT do?
ANS: The opposite of the input
Q:
What does the Boolean operator OR do?
ANS: If one side is true then the output is true
Q:
What does the Boolean operator AND do?
ANS: Both sides have to be true for the output to be true
Q:
What is iterative testing?
Edexcel GCSE Computer Science Questions
and Verified Answers
Q: What is a character?
ANS: A letter,number or symbol on a given character set
Q:
What is a string?
ANS: A sequence of characters
Q:
What is casting?
ANS: Changing the data type of a variable
Q:
What is a count-controlled loop?
ANS: A loop that repeats a specific number of times (FOR loops)
Q:
What is a condition controlled loop?
ANS: A loop that runs until a condition is met (WHILE loops)
Q:
When would you use a variable?
ANS: When a value might need to change while the program is running
Q:
When would you use a constant?
ANS: When a value would not need to change while while the program is running
Q:
Why are constants useful?
, Page | 2
ANS: Readability and easier to update
Q:
What is a subprogram?
ANS: A block of code that performs a specific task
Q:
What are libraries?
ANS: Collections of pre-written subprograms for specific purposes
Q:
What is a local variable?
ANS: A variable that is declared inside a function or procedure so can be accessed
within the subprogram
Q:
What is a global variable?
ANS: A variable that can be accessed from anywhere
Q:
Do functions return a value?
ANS: Yes
Q:
Do procedures return a value?
ANS: No
Q:
What is an array?
ANS: A data structure with one or more elements of the same type (have a fixed
length only contain elements of the same data type)
Q:
What is an index?
ANS: A position within an array
, Page | 3
Q:
What is a 1D array?
ANS: An array that stores data in one direction (horizontal)
Q:
What is a 2D array?
ANS: An array that stores data horizontally and vertically (indexed with two
numbers)
Q:
Why is it good to close files after use?
ANS: It frees up resources,prevents corruption and flushes the buffer
Q:
What's does MOD do?
ANS: Gives remainder
Q:
What does DIV do?
ANS: Shows how many times x goes into y (23 DIV 5 = 4)
Q:
What does the Boolean operator NOT do?
ANS: The opposite of the input
Q:
What does the Boolean operator OR do?
ANS: If one side is true then the output is true
Q:
What does the Boolean operator AND do?
ANS: Both sides have to be true for the output to be true
Q:
What is iterative testing?