No student devices needed. Know more
22 questions
Instructions carried out one after another in order is a...
List
Sequence
Collection
Series
Which is the definition of "sequence"?
A set of instructions in a specific order
Where instructions repeat
Code where decisions are made
Which is the definition of "selection"?
A set of instructions in a specific order
Where instructions repeat
Code where decisions are made
Which is the definition of "selection"?
A set of instructions in a specific order
Where instructions repeat
Code where decisions are made
Which is the definition of "iteration"?
A set of instructions in a specific order
Where instructions repeat
Code where decisions are made
Why is iteration important?
It determines the order in which instructions are carried out
It allows code to be simplified by removing duplicated steps
It allows multiple paths through a program
Which statement is used to implement iteration?
IF
WHILE
Which statement is used to implement selection?
IF
WHILE
Which of the following contains an INCORRECT sequence when getting dressed to go out?
Put on socks, put on shoes, put on coat
Put on coat, put on shoes, put on socks
Put on socks, put on coat, put on shoes
Why is selection important?
Selection allows us to include more than one path through a solution
Selection allows us to repeat steps in a solution
Selection allows us make our solution more efficient
For loops, while loops and repeat until loops are all examples of:
selection
iteration
sequencing
REPEAT:
key = INPUT ("Press X to exit")
UNTIL key=="X"
Selection
Iteration
Sequencing
radius = 5
PI = 3.14
discArea = radius * radius * PI
PRINT "Disc Area = " + discArea
Iteration
Selection
Sequencing
firstname = INPUT ("What is your firstname?")
lastname = INPUT ("What is your lastname?")
PRINT ("Hello " + firstname + " " + lastname + "!")
Iteration
Sequencing
Selection
myAge = 12
PRINT "Next year I will be: "
PRINT myAge + 1
PRINT "In two years I will be: "
PRINT myAge + 2
PRINT "In three years I will be: "
PRINT myAge + 3
Iteration
Sequencing
Selection
IF LENGTH( password ) < 8:
PRINT ("Your password is not valid!")
Iteration
Sequencing
Selection
WHILE (timer > 0):
PRINT "Carry on playing..."
timer = timer - 1
Iteration
Sequencing
Selection
PROCEDURE drawSquare(size):
FOR side FROM 1 TO 4:
forward(size)
turnLeft(90)
Iteration
Sequencing
Selection
PRINT ("---- 7 Times Table ----")
FOR number FROM 1 TO 10:
PRINT 7 * number
Iteration
Sequencing
Selection
IF (score > 90) AND (score <= 100):
PRINT "You grade is A*"
Iteration
Sequencing
Selection
answer = INPUT ("How many faces does a cuboid have?")IF (answer == 6): score = score + 1ELSE: PRINT ("Wrong Answer")
Iteration
Sequencing
Selection
IF goalsIn == goalsOut:
PRINT "It's a draw"
ELSE IF goalsIn > goalsOut:
PRINT "Player 1 wins!"
ELSE:
PRINT "Player 2 wins!"
Iteration
Sequencing
Selection
Explore all questions with a free account