C++ and Arduino Basics Quiz

C++ and Arduino Basics Quiz

10th Grade

22 Qs

quiz-placeholder

Similar activities

Arduino

Arduino

10th Grade

20 Qs

Day#8

Day#8

1st Grade - University

20 Qs

Intro to coding arduino unit

Intro to coding arduino unit

9th - 12th Grade

20 Qs

Arduino Review Quiz

Arduino Review Quiz

9th - 12th Grade

21 Qs

3.6 Menerapkan dasar dasar mikrokontroler

3.6 Menerapkan dasar dasar mikrokontroler

10th Grade

20 Qs

 TinkerCAD  ประยกุต์กลไกไฟฟ้า Arduio

TinkerCAD ประยกุต์กลไกไฟฟ้า Arduio

9th - 12th Grade

20 Qs

Arduino Junior Certification Practice Questions 3

Arduino Junior Certification Practice Questions 3

9th - 12th Grade

20 Qs

Mecatronica 5to IOQ Final

Mecatronica 5to IOQ Final

9th - 10th Grade

20 Qs

C++ and Arduino Basics Quiz

C++ and Arduino Basics Quiz

Assessment

Quiz

Computers

10th Grade

Hard

Created by

Nermeen Awadeen

Used 3+ times

FREE Resource

22 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a variable in C++?

A container for storing data values

A type of function

A loop structure

A conditional statement

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the 'setup()' function in Arduino programming?

Runs once at the start

Runs repeatedly

Sets pin modes

Controls the loop

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct syntax to declare a variable in C++?

data_type variable_name;

variable_name: data_type;

variable_name = data_type;

data_type: variable_name;

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the 'digitalWrite()' function in Arduino?

To set a pin HIGH or LOW

To read input from a pin

To delay the program

To initialize variables

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code snippet: 'int x = 5; int y = 10; float sum = x + y; cout << sum;'?

15

5

10

Error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of a resistor in a circuit?

Limits current flow

Stores energy

Generates light

Acts as a switch

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to connect an LED to an Arduino?

Connect the longer leg to a digital pin

Connect the shorter leg to a digital pin

Connect both legs to GND

Connect the LED directly to power

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?