Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Topic 4: Let’s Switch It ON and OFF

Total questions: 7

Worksheet time: 3mins

Name
Class
Date
1.

Which of the following is the push button used in TinkerCad?

a)

A

b)

B

c)

C

d)

D

2.

Which of the following steps will allow you to open the sample BUTTON sketch?

a)

FILE > EXAMPLES > 01. BASICS

b)

FILE > EXAMPLES > 02. DIGITAL

c)

FILE > EXAMPLES > 03. ANALOG

d)

FILE > EXAMPLES > 04. COMMUNICATION

3.

Look at the circuit closely. What pin number is connected to push button?

a)

3

b)

4

c)

2

d)

7

4.

Based from the circuit below, how will you declare the push button correctly?

a)

const int buttonPin=2;

b)

const int ledPin=2;

c)

const int buttonPin=4;

d)

const int ledPin=4;

5.

How will you write the statement in line number 8 correctly?

a)

pinMode(buttonPin,HIGH);

b)

pinMode(buttonPin,OUTPUT);

c)

pinMode(buttonPin,INPUT);

d)

pinMode(buttonPin,LOW);

6.

How will you write the statement in line 14 correctly?

a)

Serial.println("LED is ON");

b)

serial.println("LED is ON");

c)

Serial.println("LED is OFF");

d)

serial.println("LED is OFF");

7.

What is missing in the following statements declared as variables?

a)

The semicolon is missing at the end of every statement.

b)

The curly bracket is missing at the end of every statement.

c)

The parenthesis is missing at the end of every statement.

d)

There is no missing punctuation in all statements.