
C++ and Arduino Basics Quiz
Authored by Nermeen Awadeen
Computers
10th Grade
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
18 questions
STEM Fundamentals
Quiz
•
9th - 12th Grade
17 questions
ÔN TẬP CUỐI KỲ II TIN 8
Quiz
•
8th - 11th Grade
17 questions
1.8a Environmental Issues
Quiz
•
10th - 11th Grade
20 questions
Computer parts
Quiz
•
1st - 12th Grade
20 questions
Memòria RAM
Quiz
•
9th - 11th Grade
17 questions
Email Lớp 6
Quiz
•
6th Grade - University
20 questions
Structure of a Webpage
Quiz
•
10th Grade
20 questions
Trimestral Tec. Información
Quiz
•
10th Grade
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
10 questions
Exploring Valentine's Day with Charlie Brown
Interactive video
•
6th - 10th Grade
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
10 questions
Valentine's Day History and Traditions
Interactive video
•
6th - 10th Grade
21 questions
Presidents Day Trivia
Quiz
•
6th - 12th Grade
10 questions
Valentine's Day: History and Modern Celebration
Interactive video
•
9th - 12th Grade
11 questions
Valentine's Day Trivia
Quiz
•
8th - 12th Grade
10 questions
Factor Quadratic Expressions with Various Coefficients
Quiz
•
9th - 12th Grade