4 . Push Button LED

4 . Push Button LED

6th - 8th Grade

10 Qs

quiz-placeholder

Similar activities

Electronic Components #1

Electronic Components #1

8th - 10th Grade

15 Qs

Traffic Light

Traffic Light

7th Grade

10 Qs

Arduino Midterm Review 2

Arduino Midterm Review 2

8th - 10th Grade

15 Qs

BK 6 7 Sınıf Kodlama ve Robotik

BK 6 7 Sınıf Kodlama ve Robotik

6th - 7th Grade

10 Qs

Arduino

Arduino

KG - University

8 Qs

5. RGB Colour switcher

5. RGB Colour switcher

1st - 10th Grade

7 Qs

Arduino

Arduino

7th - 8th Grade

13 Qs

CODING QUIZZ

CODING QUIZZ

8th Grade

13 Qs

4 . Push Button LED

4 . Push Button LED

Assessment

Quiz

Computers

6th - 8th Grade

Medium

Created by

Youngbot Academy

Used 8+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the primary function of a push button in an Arduino circuit?

To control the flow of current

To provide power to the circuit

To control the brightness of the LED

To act as a switch that sends an input signal to the Arduino

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which Arduino pin mode is used to read the state of a push button?

OUTPUT

INPUT_PULLUP

ANALOG

PWM

3.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Media Image

What we can call this position ?

Button released

Button is ON

Button not pressed

Button is hold

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Push button is not connected properly

Ground is not connected

Led connection is wrong

resistor is positioned in wrong place

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

which two are connected in pushbutton?

1 & 3 are connected,

2&4 are connected

1&2 are connected,

4&3 are connected

1&4 are connected,

2&3 are connected

4&3 are connected,

2&1 are connected

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to set up the initial state of pins in an Arduino sketch?

  • digitalWrite()

pinMode()

loop()

init()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

choose the correct option to control led using pushbutton .

int buttoninfo = digitalRead(pushbutton);

if(buttoninfo == 0){

digitalWrite(led, HIGH); }

if(buttoninfo == 1){

digitalWrite(led, HIGH);}

int buttoninfo = digitalRead(pushbutton);

if(buttoninfo == 0){

digitalWrite(led, LOW); }

if(buttoninfo == 1){

digitalWrite(led, HIGH);}

int buttoninfo = digitalRead(pushbutton);

if(buttoninfo == 0){

digitalWrite(led, LOW); }

if(buttoninfo == 1){

digitalWrite(led, LOW);}

int buttoninfo = digitalRead(pushbutton);

if(buttoninfo == 0){

digitalWrite(led, HIGH); }

if(buttoninfo == 1){

digitalWrite(led, LOW);}

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?