SLR 8 - Basic Programming Concepts - Part Two

SLR 8 - Basic Programming Concepts - Part Two

Assessment

Quiz

Created by

Neil Stephens

Computers

8th Grade

23 plays

Medium

Student preview

quiz-placeholder

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is NOT a basic programming construct?

Selection

Subroutines

Iteration

Sequence

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is an example of selection?

while x == 3:

print("yes!")

If x == 3:

print("yes!")

for x == 3:

print("yes!")

when x == 3:

print("yes!")

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is an example of iteration?

for i == 5:

print(i)

if i == 5:

print(i)

if i in range (5):

print(i)

for i in range (5):

print(i)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is an example of nested iteration?

while x is True:

for i in range(10):

print(i)

while x is True and i < 10:

print(i)

if i < 10:

if j > 5:

print(i)

for i in range(7):

if i < 5:

print(i)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does 'Sequence' mean?

Instructions are repeated in a pattern

Instructions are carried out in the correct order

Instructions are carried out in a random order

Instructions are selected based on a condition

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Some code is separated into chunks. These different blocks can be 'called' when needed. What are they?

Iteration

If blocks

While loops

Subroutines

7.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Which of these are benefits of using subroutines to structure code?

Select as many as needed.

Easier to code

Easier to debug

Easier to reuse

Explore all questions with a free account

or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?