Search Header Logo

Arduino Variables and Operators

Authored by Hafizul Hasmie

Education

12th Grade

Used 3+ times

Arduino Variables and Operators
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the data types supported in Arduino?

bool

string

int, float, char, byte, boolean, void

double

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you declare a variable in Arduino?

float myNumber;

myNumber = 5;

int myNumber;

String myNumber;

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the arithmetic operators available in Arduino?

The arithmetic operators available in Arduino are addition (+), subtraction (-), multiplication (*), division (/), and modulus (%)

concatenation (&)

exponentiation (^)

increment (++)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used for equality comparison in Arduino?

!=

<>

==

><

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the logical operators used in Arduino?

& (bitwise AND)

| (bitwise OR)

&& (logical AND), || (logical OR), ! (logical NOT)

~ (bitwise NOT)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you assign a value to a variable in Arduino?

Use the division operator '/' to assign a value to a variable in Arduino.

Use the addition operator '+' to assign a value to a variable in Arduino.

Use the multiplication operator '*' to assign a value to a variable in Arduino.

Use the assignment operator '=' to assign a value to a variable in Arduino.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type is used for storing whole numbers in Arduino?

int

double

char

float

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?