Search Header Logo

Arduino Code Concepts Quiz

Authored by Yasrab arzo

Other

7th Grade

Used 1+ times

Arduino Code Concepts Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

13 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the directive #include do?

It tells the compiler to include a library.

It creates a constant or macro.

It declares a variable.

It initializes communication with the PC.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the #define directive?

Creates a constant or macro.

Declares a variable.

Includes a library.

Configures a pin.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What data type is used for discrete values like pin numbers?

int

float

byte

string

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the int arrayName[] = {value1, value2, ...}; syntax do?

Stores multiple values of the same type.

Creates a constant.

Declares a function.

Configures a pin.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the void return type in a function?

Indicates the function does not return a value.

Indicates the function returns an integer.

Indicates the function returns a string.

Indicates the function is a constant.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does pinMode(pin, mode) do?

Configures a pin as INPUT, OUTPUT, or INPUT_PULLUP.

Reads external signals.

Sends signals to devices.

Creates a constant.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the if(condition) { code } statement do?

Executes code if the condition is true.

Declares a variable.

Creates a constant.

Configures a pin.

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?