WorksheetsIG2quiz
Total questions: 103
Worksheet time: 1hrs 16mins
Select the correct declaration of variables when finding the highest value in a list of values
Highest ← 0
Highest ← 100
Highest ← [9]
Highest ← Lowest
Which of these is are selection statements?
CASE...OF...OTHERWISE...ENDCASE
IF...THEN...ELSE...ENDIF
IF...THEN...ELSE...IF...THEN...ENDIF...ENDIF
FOR....TO...NEXT
Which lines are the errors located on?
Line 4, 5, 8
Line 1, 3, 4,
Line 4, 5, 7
Line 4, 5, 8 and a missing input
Describe with an example the purpose of the validation check?
Correct the error on line 6
(a)
Describe with an example the purpose of the verification check?
A value that cannot change whilst the program is running
Array
Variable
Constant
Table
Correct the error on line 2
Counter = 0
Counter = Num
Counter = Total
Counter = 100
Which lines are the errors located on?
Line 2, 7, 3
Line 2, 6, 7,
Line 8, 3, 7
Line 2, 6, 7, 8
A value that can change whilst the program is running
Array
Variable
Constant
Table
Select the correct declaration of variables when finding the lowest value in a list of values
lowest ← 0
lowest ← 100
lowest ← [9]
lowest ← Highest
A series of element of the same data type is
Array
Variable
Constant
Table
System.out.println("Number: " + numArray[2]);
System.out.println("Number: " + numArray[0]);
System.out.println("Number: " + numArray[numArray.length - 1]);
System.out.println(numArray.length);
int[] numbers = new int[5];
The 21st century is
the digital age
all about electricity
the age of physics
A computer program combines math and ______.
science
programs
if statements
An If/Else statement is
a command that tells the computer to repeat an action
a normal computer function
a decision between 2 things
Computers are really good at
turning themselves off
repeating commands
not working
doing jobs for humans
Most computer languages have only about ___ words or commands
100
50
1,000
20
When you define your own command and give it a command
instruction
loop
function
code
When you get to a computer program and repeat a command, you can give it an exact number of times to
repeat
end
a list of steps to finish a task
algorithm
HTML
function
execute
HTML is the code used to create
games
UI
webpages
a green flag or play button that must be clicked to run the program
null
output
go
loop
a programming language for creating web applications
java
HTML
keystroke
modifier
doing an action over and over again
program
loop
iteration
function
how a program looks to a user
HTML
Java
workaround
UI
more than 1 way of coding a function
variable
query
workaround
x position
Binary code is a computer language that uses only 2 options: _____ to carry out tasks
letters and numbers
zeros and ones
x and y
What is coding?
something used to develop computer programs
a form of "language" used to communicate computer actions
an essential part to everything we do online
All of these
Look at the picture. Which answer describes the code pictured?
travels forward, then backwards, then turns purple
travels forward, then left, then turns purple
travels left, then backwards, then turns blue
this robot does not move
an instruction for the computer
algorithm
command
workaround
query
a question sent through a computer to receive information
workaround
function
query
java
Look at the picture. Which answer describes the code pictured?
travel forward for 3 seconds then stop
travel backwards then forwards then stop
change to multicolor
the robot does not travel at all
Code
a step-by-step procedure for solving a problem
Part of a program that does not work correctly.
to write instructions for a computer.
The art of creating a program.
Event
Part of a program that does not work correctly.
The art of creating a program.
An action that causes something to happen.
Putting commands in correct order so computers can read the commands.
Program
An algorithm that has been coded into something that can be run by a machine.
Putting commands in correct order so computers can read the commands.
a step-by-step procedure for solving a problem
o write instructions for a computer.
Algorithm
Putting commands in correct order so computers can read the commands.
Finding and fixing problems in your algorithm or program.
An action that causes something to happen.
a step-by-step procedure for solving a problem
Bug
Part of a program that does not work correctly.
An algorithm that has been coded into something that can be run by a machine.
The art of creating a program.
An action that causes something to happen.
Debugging
Putting commands in correct order so computers can read the commands.
a step-by-step procedure for solving a problem
to write instructions for a computer.
Finding and fixing problems in your algorithm or program.
Sequencing
Part of a program that does not work correctly.
Putting commands in correct order so computers can read the commands.
An action that causes something to happen.
to write instructions for a computer.
Programming
a step-by-step procedure for solving a problem
The art of creating a program.
An action that causes something to happen.
Finding and fixing problems in your algorithm or program.
Look at the puzzle and the code below. What can you fix in the code to help the bird get to the pig?
Remove a move forward block
Add a move forward block
Change the first turn block to left
Change the second turn block to left
Look at the puzzle. What can you fix in the code so the bird will make it to the pig?
Change the first turn block to left
Remove a move forward block
Add a move forward block
Change the second turn block to left
A bug is
A creepy crawly thing
A vehicle
Part of a program that does not work
A song
What does this code do?
Moves forward 1 time
Moves forward forever
Moves forward 5 times
Moves left
The art of creating a program.
Artistic
Programming
Looping
What is print() called in Python coding?
function
variable
string
output
What is input() called in Python coding?
keyboard
function
variable
string
Look at this code. What is name called in Python?
function
variable
name
answer
Look at this code. How do we call in Python something enclosed in speech marks?
function
string
name
answer
Which function is used to show something on screen as output? Use just the keyword, without brackets
(a)
Which function is used to communicate with the program while running, writing something using the keyboard? Put the keyword without brackets
(a)
There is a mistake on line 1 of this program. Write the instructions with the corrections.
Be careful with spaces when writing your answer or the quiz will not recognise your answer!
(a)
Which keyword is used for an infinite loop or ITERATION?
else
if answer == "right":
while True:
elif
show on screen the sentence "I love cats too" in Python
(a)
Ask the user the question "What is your favourite colour?" and save their answer in a variable called colour. Make sure to be precise or the quiz will discard your answer
(a)
write the Python instruction (just one line of code) that will check the following condition:
if the variable answer is equal to "right"
(a)
write the Python instruction (just one line of code) that will check the following condition:
if the variable answer is equal to "left"
(a)
What is the correct order of the following?
if
elif
else
if
elif
else
elif
if
else
elif
else
if
Which symbols can you use to check if something is equal to something else?
Be careful when typing the answer!
(a)
check this code. What is missing?
(a)
Read these lines of code.
1. x = 2
2. y = 10
3. x = x+y
What is the value of x at the end of the program?
(a)
Read these lines of code.
1. x = "Hello"
2. y = "Hola"
3. z = "Ciao"
4. y = x
5. z = y
What will be the output print(z)?
(a)
A label for a characteristic of a sprite, such as its location and appearance
Programming
Property
Program
Parameter
A placeholder for a piece of information that can change.
Variable
Function
Parameter
Program
In programming, an expression that evaluates to true or false
Algorithm
Property
Iteration
Boolean
An extra piece of information passed to a function to customize it for a specific need
Property
Boolean
Variable
Parameter
A list of steps used to finish a task
Program
Algorithm
Code
Command
A visual programming language that lets users program by connecting digital blocks, rather than by typing code.
Conditional
Algorithm
Blockly
Command
An error in a program that prevents the program from running as expected
Bug
Debug
Iteration
Event
A piece of code that you can call over and over again.
Variable
Function
Loop
Event
One or more commands or algorithms designed to be carried out by a computer.
Property
Program
Function
Code
An instruction for the computer
Call
Command
Code
Algorithm
Statements that only run under certain conditions or situations
Condition
Conditionals
Event
Parameter
Finding and fixing errors in programs
Iteration
Bug
Debugging
Command
An action that causes something to happen.
Event
Coding
Programming
Variable
A repetitive action or command typically created with programming loops.
Variable
Property
Iteration
Event
The action of doing something over and over again.
Algorithm
Function
Iteration
Loop
An algorithm that has been coded into something that can be run by a machine.
Code
Program
Property
Sprite
The process of writing computer programs.
Coding
Program
Programming
Function
A character on the screen with properties that describe its location, movement, and look.
Sprite
Algorithm
Variable
Draw Loop
To add code inside a function so that the program knows what it is supposed to do when the function is called.
Loop
Define
Program
Code
