Search Header Logo

L 11-Tug of Leds

Authored by Tarannum Jetlearn

Computers

5th Grade

L 11-Tug of Leds
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

What is function?

It allows the code written to be used as a single block

Function is nothing but a piece of instruction


A function is a sequence of program instructions that performs a specific task, packaged as a unit



None of the above


2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the use of this block?

To plot a LED at specified (x,y) location

To unplot a LED at specified (x,y) location

To toggle a LED at specified (x,y) location


None of the above


3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the purpose of this function?

To control the brightness of the LEDs

To clear the screen and display an LED at position (Light, 2)

To adjust the speed of the game

To generate random LED positions

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the line basic.clearScreen() in the Draw_light() function?

To reset the game

To make sure the previous LED is cleared before plotting a new one.

To increase the brightness of the LED

To change the game mode

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the purpose of setting Light = 2 after displaying a win message?

To increase the difficulty

To reset the game to its starting position

To end the game

To change the icon being displayed

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What happens if Light becomes greater than or equal to 4?

The screen displays "B wins"

The game continues without any change

The LED moves back to the center

The variable Light is incremented by 1

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What happens if Light becomes lesser than or equal to 0?

The screen displays "A wins"

To pause the game for a while

The LED moves back to the center

To prevent the LED from moving out of bounds

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Computers