Arduino - Exercise 5 Simple Digital Input

Arduino - Exercise 5 Simple Digital Input

11th Grade

10 Qs

quiz-placeholder

Similar activities

Word 2016 Lesson 1

Word 2016 Lesson 1

9th - 12th Grade

10 Qs

ICT as Platform for Change

ICT as Platform for Change

11th - 12th Grade

10 Qs

Beyblade Burst Quiz

Beyblade Burst Quiz

KG - University

6 Qs

Visual Basic 2010

Visual Basic 2010

8th Grade - University

10 Qs

Numpy-1

Numpy-1

9th - 12th Grade

10 Qs

Introduction to Construction & The Built Environment

Introduction to Construction & The Built Environment

11th Grade

10 Qs

Videojuegos

Videojuegos

2nd Grade - Professional Development

11 Qs

Quiz 8 (01.09.2021)

Quiz 8 (01.09.2021)

1st - 12th Grade

10 Qs

Arduino - Exercise 5 Simple Digital Input

Arduino - Exercise 5 Simple Digital Input

Assessment

Quiz

Computers, Specialty, Other

11th Grade

Practice Problem

Medium

Created by

Darren Richardson

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

Select one. Digital inputs .....

can be one of three states, HIGH, LOW and MIDDLE

can turn on LED's

can be only one of two states, HIGH or LOW

Can be a wide range of values.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

True or False. We use a pull down resistor for digital inputs to ensure the input is held LOW when the switch is off.

True

False

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A constant is ....

A number that changes

A number that stays the same

A number that is always 0

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A variable is ....

A number that changes

A number that stays the same

A number that is always 0

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command is correct for initialising pin 7 as an INPUT.

pinmode (7, OUTPUT);

pinMode (7, INPUT);

pinMode (7, INPUT)

pinmode(7, HIGH);

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command would read the digital input on pin 7?

digital read (7, INPUT);

digitalRead(7, INPUT)

digitalRead(7,INPUT);

digitalRead(7, OUTPUT);

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If digital input pin 4 was LOW and we wanted the variable 'switchstate' to store that value, which is the correct command.

switchstate = digitalRead (4);

switchstate = digitalRead (7);

switchstate = digitalRead (4)

switchstate = digitalread (4);

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?