Diagnostic Test for CS202

Diagnostic Test for CS202

11th Grade

10 Qs

quiz-placeholder

Similar activities

6.1 Haas Control Keypad Lathe

6.1 Haas Control Keypad Lathe

11th Grade

14 Qs

SỬ DỤNG ĐIỆN THOẠI - TIẾT 3

SỬ DỤNG ĐIỆN THOẠI - TIẾT 3

5th Grade - University

5 Qs

post-1

post-1

11th Grade

10 Qs

Transmisi Manual Mobil

Transmisi Manual Mobil

11th Grade

15 Qs

Asesmen Transmisi Manual

Asesmen Transmisi Manual

11th Grade

10 Qs

Gear Mechanism Intro

Gear Mechanism Intro

9th - 12th Grade

14 Qs

Uji Pengetahuan PRE XI TEI Remedial

Uji Pengetahuan PRE XI TEI Remedial

11th Grade

10 Qs

Lesson 1: VEX IQ Sensors

Lesson 1: VEX IQ Sensors

7th Grade - University

14 Qs

Diagnostic Test for CS202

Diagnostic Test for CS202

Assessment

Quiz

Engineering

11th Grade

Practice Problem

Hard

Created by

Dennis Nobleza

Used 4+ 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

30 sec • 1 pt

What does GPIO stand for?

General Purpose Input/Output Device

General Purpose Integrated Output

General Purpose Input/Output

Generalized Peripheral Input/Output

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which Python library is commonly used for GPIO programming on Raspberry Pi?

Adafruit_BBIO

RPi.GPIO

WiringPi

RPi.GPIO2

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you set a GPIO pin as an input in Python?

GPIO.set_input(pin_number)

GPIO.setup(pin_number, GPIO.IN)

GPIO.configure(pin_number, 'input')

GPIO.pin_mode(pin_number, 'input')

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you read the state of a GPIO pin in Python?

Use the Arduino IDE to read GPIO states.

Connect a multimeter to measure the voltage.

Use RPi.GPIO or gpiozero library to read the state of a GPIO pin.

Use a web browser to access GPIO settings.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What command is used to set a GPIO pin to HIGH?

digitalWrite(pin, HIGH)

gpioSet(pin, 1)

setPin(pin, 1)

writePin(pin, true)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which GPIO pin is typically used for the Raspberry Pi's ground?

GPIO pin 1 (3.3V)

GPIO pin 6 (GND)

GPIO pin 5 (GPIO 3)

GPIO pin 12 (GPIO 18)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you control an LED connected to a GPIO pin?

Connect the LED directly to the power supply.

Use a resistor to connect the LED to the ground only.

Set the GPIO pin as output and control it using HIGH/LOW signals.

Set the GPIO pin as input and leave it unconnected.

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?