Arduino Variables and Operators

Arduino Variables and Operators

12th Grade

10 Qs

quiz-placeholder

Similar activities

Arduino_evaluacion 1

Arduino_evaluacion 1

9th - 12th Grade

9 Qs

Arduino

Arduino

9th - 12th Grade

7 Qs

Quiz Modul 1

Quiz Modul 1

9th - 12th Grade

10 Qs

Basic C Programming - Assignment Operators

Basic C Programming - Assignment Operators

12th Grade

10 Qs

Checkpoint 2 Assessment 2 - 12G

Checkpoint 2 Assessment 2 - 12G

12th Grade

11 Qs

Microcontroller Quiz Chapter 3

Microcontroller Quiz Chapter 3

12th Grade

10 Qs

C++

C++

11th - 12th Grade

10 Qs

Ardubótica Fénix

Ardubótica Fénix

KG - 12th Grade

8 Qs

Arduino Variables and Operators

Arduino Variables and Operators

Assessment

Quiz

Education

12th Grade

Easy

Created by

Hafizul Hasmie

Used 3+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?