2. User Input-Controlled LED

2. User Input-Controlled LED

6th - 8th Grade

10 Qs

quiz-placeholder

Similar activities

What is Engineering?

What is Engineering?

7th - 8th Grade

15 Qs

Video Game True or False 1

Video Game True or False 1

KG - Professional Development

12 Qs

cuestionario tipo examen 2

cuestionario tipo examen 2

3rd - 6th Grade

10 Qs

1. LED Blink - Raspberry Pi

1. LED Blink - Raspberry Pi

6th - 8th Grade

10 Qs

ULANG KAJI: TINKERCAD - ARDUINO BAHAGIAN 1 (Teori sahaja)

ULANG KAJI: TINKERCAD - ARDUINO BAHAGIAN 1 (Teori sahaja)

1st - 12th Grade

10 Qs

IoT

IoT

1st Grade - University

10 Qs

definiciones electrónicas

definiciones electrónicas

3rd - 6th Grade

12 Qs

Introduction to AVR Microcontrollers

Introduction to AVR Microcontrollers

7th - 8th Grade

10 Qs

2. User Input-Controlled LED

2. User Input-Controlled LED

Assessment

Quiz

Computers

6th - 8th Grade

Easy

Created by

Robotic Schools

Used 5+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 10 pts

What voltage does a Raspberry Pi GPIO pin output when set to HIGH?

1.8V

3.3V

5V

Depends on the USB power supply

2.

MULTIPLE CHOICE QUESTION

1 min • 10 pts

Which Python function pauses the program and waits for the user to type something?

input()

print()

scan()

sleep()

3.

MULTIPLE CHOICE QUESTION

1 min • 10 pts

🖥️ Which code snippet correctly turns the LED OFF when the user types "off"?

Media Image
Media Image
Media Image
Media Image

4.

MULTIPLE CHOICE QUESTION

1 min • 10 pts

Which line correctly takes user input and makes it lowercase so the program works with “ON”, “on”, or “On”?

Media Image
Media Image
Media Image
Media Image

5.

MULTIPLE CHOICE QUESTION

1 min • 10 pts

A student wrote this code, but the LED stays ON forever even after typing off.
Which line is written incorrectly?

Media Image
Media Image
Media Image
Media Image

6.

MULTIPLE CHOICE QUESTION

1 min • 10 pts

Why do we need a resistor in series with the LED when connecting it to a Raspberry Pi GPIO pin?

To increase brightness of the LED

To limit current and protect the GPIO pin

To reduce voltage from 5V to 3.3V

To store charge like a capacitor

7.

MULTIPLE CHOICE QUESTION

1 min • 10 pts

Media Image

What will happen if you connect an LED in reverse (cathode to GPIO21 and anode to GND) on the Raspberry Pi?

The LED will glow dimly

The LED will not glow at all

The LED will glow normally

The LED will burn out immediately

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?