Font size
WorksheetsMassive GCSE Computer Science Quiz
Total questions: 61
Worksheet time: 31mins
Which python command assigns the value of the user input to the variable userName
userName = answer("What is your name?")
userName = print("What is your name?")
userName = input("What is your name?")
input("What is your name?") = userName
Which python statement assigns a numerical value input by a user and stores it in a variable of data type integer
num = input("Enter a number")
num = str(input("Enter a number"))
num = int(input("Enter a number"))
input("Enter a number") = num
"A named place to store a value that can change" is called a ...
Subroutine
Variable
Constant
Operator
A boolean data type hold what type of data?
Whole number
A group of characters
Single Character
True/ False
A string data type hold what type of data?
Whole number
A group of characters
Single Character
True/ False
Concatenation is...
Stripping characters from text
Concentrating very hard on coding
Joining together two or more strings
Changing an number to text
Giving a value to a variable is know as what
Assignment
Casting
Concatenation
Input Sanitisation
A WHILE loop is...
Condition Controlled
Count Controlled
Uncontrolled
Strongly Controlled
In if...elif...else statement in python uses which programming concept?
Sequence
Selection
Iteration
Proliferation
In programming, casting is...
Creating a collection of variables
Converting one data type to another
Joining together multiple strings
Doing impressive magic
An array is...
Data structure that contains multiple items of data of the same data type. Data is indexed so that a particular item can be easily found.
Data structure that contains multiple items of data that may be of different data types. Data is indexed so that a particular item can be easily found.
What is the value of x?
x = 16 MOD 5
3
1
3.2
21
What is the value of x?
x = 16 DIV 5
1
3
3.2
11
Pseudocode is a
High Level Programming Language
Spoken code
Method of expressing an algorithm in structured English
Method of encrypting code
The repeated execution of a section of code when a program is running is known as...
Sequence
Selection
Iteration
Subroutine
A type of error that occurs when a rule of the programming language code is broken?
Syntax error
Logic error
Run-time error
Program error
Which data type would be used in Python to store the value of pi to 2 decimal places?
Integer
Float
Boolean
String
In what way is a constant different from a variable?
It can not change its value during program execution
It can store more than one value
It can only be used in the global scope
Its name must be written in UPPER CASE
What was the first computer game?
Tetris
Tennis
Car race
Puzzle
Choose all the recognised control structures in a computer program ...
Sequence
Selection
Iteration
Duplication
Example of ... ?
Selection
Repetition
Sequence
Iteration
Example of ...?
Conditional loop
Unconditional loop
Selection
Sequence
Example of ...?
Nested selection
Nested loop
Repetition
Iteration
Type of loop to use when the number of repetitions is known before the loop starts?
FOR ... loop
WHILE ... loop
FOR ... EACH ... loop
REPEAT ... UNTIL ...
An error in the way a program works where program can run but does not do what it is expected to do is called a ...
Logic error
Syntax error
Runtime error
Catastrophe
What software is this?
Pirate
Animator
Pivot
Quick Animator
What is the point of binary?
It represents how computers interpret electrical signals
Because we like to make you do extra maths ;-D
Cleverness
Because it describes star systems
Which of the following is an output device?
Mouse
Monitor
Keyboard
Microphone
Define the term ‘Algorithm’
The process of filtering out the characteristics of problems that are not needed in order to concentrate on those that are needed
An algorithm is a set of steps/instructions needed to complete a software task.
The process of breaking down a complex problem into a series of more manageable problems
Identifying patterns
What type of flowchart symbol is this?
Start/ End (terminator)
Process
Input/ Output
Decision
What type of flowchart symbol is this?
Start/ End (terminator)
Process
Input/ Output
Decision
What type of flowchart symbol is this?
Start/ End (terminator)
Process
Input/ Output
Decision
What type of flowchart symbol is this?
Start/ End (terminator)
Process
Input/ Output
Decision
What value would be output if a = 2 and b = 4?
4
12
2
1
In a flowchart, what is the purpose of an arrow?
To show where the inputs and outputs occur
To show the flow from one component to the next
To show where iteration happens
Which of these is the correct definition of sequence?
Sequence are glittery objects sewn onto a dancing dress.
Sequence means that the same statements are repeated in the program.
Sequence means that program statements are set out one after another
Making a decision, the outcome of which will determine what happens next
COMPUTATIONAL THINKING is...
thinking like a computer
a systematic approach to solving problems.
writing computer programs
writing binary code
Breaking a complex problem down into smaller, more manageable parts is called..
Decomposition
Abstraction
Programming
Algorithmic Thinking
The process of removing unnecessary information and focusing on the important details.
Decomposition
Abstraction
Programming
Algorithmic Thinking
The process of developing an algorithm to solve a problem is known as...
Decomposition
Abstraction
Programming
Algorithmic Thinking
Which of the following is NOT a computational thinking technique?
Decomposition
Abstraction
Coding
Algorithmic Thinking
What is an Algorithm?
A chart showing the flow of a series of events
A precise step-by-step solution to a problem
A decision arrived at by following instructions
A computer program that follows a chart
What does a range check do?
Checks data across a range of numbers
Checks the data is within an acceptable range
Where three types of data are used
Checks that the data is in the correct format
Converts either a high level language or a low level language into machine code
Translator
High level language
Low level language
Machine code
A translator for high level code that translates code all at once into machine code
Assembler
Compiler
Interpreter
Programmer
A translator for high level code that translate codes as the program is being run.
Compiler
Interpreter
Assembler
Programmer
Pauses a program to give developers the chance to examine variables and their values
Code Editor
Run time environment
Error Diagnostics
Breakpoints
Text area used to enter code in an IDE.
Breakpoints
Code Editor
Error Diagnostics
Run time environment
