2. User Input-Controlled LED

2. User Input-Controlled LED

6th - 8th Grade

10 Qs

quiz-placeholder

Similar activities

KELAS VIII BAB 6

KELAS VIII BAB 6

8th Grade

10 Qs

Quiz Kelas 8

Quiz Kelas 8

8th Grade

15 Qs

Quis TIK Kelas VII B

Quis TIK Kelas VII B

7th - 8th Grade

10 Qs

Introducción a la Tecnología Digital 1

Introducción a la Tecnología Digital 1

6th - 9th Grade

10 Qs

ม.2 แบบทดสอบก่อนเรียน หน่วย 2

ม.2 แบบทดสอบก่อนเรียน หน่วย 2

6th - 8th Grade

10 Qs

Micro:bit assessment 1

Micro:bit assessment 1

7th - 8th Grade

10 Qs

Computer Systems

Computer Systems

8th Grade

10 Qs

7. Sınıf Bilişim

7. Sınıf Bilişim

7th Grade

10 Qs

2. User Input-Controlled LED

2. User Input-Controlled LED

Assessment

Quiz

Computers

6th - 8th Grade

Practice Problem

Easy

Created by

Robotic Schools

Used 12+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

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?