Coding Quiz (3)

Coding Quiz (3)

7th Grade

8 Qs

quiz-placeholder

Similar activities

L4 Scratch 6-8

L4 Scratch 6-8

6th - 8th Grade

13 Qs

code.org - Minecraft

code.org - Minecraft

6th - 8th Grade

9 Qs

Code.org Express Course -> Lesson 16

Code.org Express Course -> Lesson 16

5th - 7th Grade

13 Qs

Hari 3 - Kuis Coding & Perkenalan AI

Hari 3 - Kuis Coding & Perkenalan AI

1st Grade - University

10 Qs

Coding 300: JavaScript/Python Vocab

Coding 300: JavaScript/Python Vocab

7th - 8th Grade

10 Qs

Understanding Pseudocode Basics

Understanding Pseudocode Basics

6th Grade - University

10 Qs

Year 5 Assessment 3 Revision

Year 5 Assessment 3 Revision

5th Grade - University

12 Qs

CTE Information Technology Quiz

CTE Information Technology Quiz

7th - 9th Grade

13 Qs

Coding Quiz (3)

Coding Quiz (3)

Assessment

Quiz

Computers

7th Grade

Medium

Created by

Samantha Bruce

Used 1+ times

FREE Resource

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

This block is a condition like the ones that you have seen in an If statement (selection). When will this condition be 'true'?

This condition will be true when the sprite is in the x position that is higher than -22.

This condition will not be true when the sprite is in the x position that is higher than -220.

This condition will be true when the sprite is in the x position that is higher than -220.

This condition will not be true when the sprite is in the x position that is higher than -22.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When will this condition be 'false'?

This condition will be false when the y position is more than -220.

This condition will be false when the y position is less than -220.

This condition will be false when the x position is more than -220.

This condition will be false when the x position is less than -220.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What specifically will happen when this block of code is executed?

For as long as the x position is less than -220 the sprites’ y position will change by -10. This is making the sprite move left along the screen until it gets to the edge.

For as long as the x position is less than -220 the sprites’ x position will change by -10. This is making the sprite move left along the screen until it gets to the edge.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

All of the code underneath When green flag clicked is surrounded by a Forever block. What do you think the Forever block is being used for?

The Forever block is repeating whatever is inside the loop, over and over again. It will keep doing this until the game is physically stopped by the user.

The Forever block is repeating whatever is inside the loop, over and over again. It will keep doing this.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When will the Forever block stop running?

It wont

It will only stop running if the game is physically stopped by the user.

Not sure

Never

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The Repeat until block repeats until the condition becomes 'true'. Why does the loop start again once the building has left the screen?

Because it wants to!

Because the whole loop is inside a Forever loop. This means that the Repeat until loop will run until the sprite gets to the left of the screen (at position -220) and then the loop will break. Because the loop is inside a Forever loop, it starts again.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Explain how a Forever loop works.

A Forever loop only runs once.
A Forever loop stops after a certain number of iterations.
A Forever loop requires a specific condition to end.

A Forever loop will continuously repeat the blocks of code within it until it is physically stopped by the user.

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Explain how a Repeat until loop works.

A Repeat until loop will repeat the blocks of code inside it until the condition is ‘true’.

A Repeat until loop works by executing the code only once
A Repeat until loop works by executing a block of code repeatedly until a specified condition is not met
A Repeat until loop works by executing the code in a random order