Search Header Logo

ME3011FP Tut5

Authored by ITE CAD

Instructional Technology

12th Grade

Used 1+ times

ME3011FP Tut5
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the segment coding below declare pushbutton as input in the "Pushbutton" sketch.

/*

Pushbutton sketch

a switch connected to pin 2 lights the LED on pin 13

*/

const int ledPin = 13;

const int inputPin = 2;

void setup() {

pinMode(ledPin, OUTPUT);

pinMode(inputPin, INPUT);

}

void loop(){

const int ledPin = 13;

const int inputPin = 2;

pinMode(ledPin, OUTPUT);

pinMode(inputPin,INPUT;

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Most boards have an LED connected to pin

0

1

12

13

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A micro-controller pin is said to be "floating" when it is

connected to 0 volt

connected to 3 volts

connected to 5 volts

not connected to anything

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When a switch is pressed and moves from an open to a closed position, the contact often isn't perfect and produces a number of spurious signals called___.

fake

false

bogus

bounces

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The debounce function returns "true" if the switch is pressed or ____________.

stable

half close

not close

not yet stable

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The analogRead function will sees a 5 volts if the value on the pin is.

255

511

767

1,023

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The Arduino function to detect digital input is

digitalread

digitalRead

digitalwrite

digitalWrite

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?