L 11-Tug of Leds

Quiz
•
Computers
•
5th Grade
•
Hard
Tarannum Jetlearn
FREE Resource
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
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
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
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
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
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
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Bài 9: Mô hình điện mặt trời

Quiz
•
5th Grade
10 questions
1.1.6 Embedded Systems

Quiz
•
1st Grade - University
10 questions
Input Devices

Quiz
•
1st - 10th Grade
15 questions
Dash & Dot Programming

Quiz
•
3rd - 5th Grade
10 questions
Uses of hardware devices

Quiz
•
3rd - 7th Grade
5 questions
Microcontrollers 2

Quiz
•
5th - 7th Grade
12 questions
Day#7

Quiz
•
1st Grade - University
8 questions
L1 The Blink Assessment Review

Quiz
•
5th - 8th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade