
C++ and Arduino Basics Quiz

Quiz
•
Computers
•
10th Grade
•
Hard

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
Similar Resources on Wayground
25 questions
PAT ROBOTIC Elektronika Dasar 2019-2020

Quiz
•
KG - Professional Dev...
20 questions
Explorando a Robótica e Arduino

Quiz
•
9th - 12th Grade
20 questions
Arduino Basics

Quiz
•
9th - 12th Grade
20 questions
Intro to coding arduino unit

Quiz
•
9th - 12th Grade
20 questions
Day#8

Quiz
•
1st Grade - University
18 questions
Arduino Check-In

Quiz
•
10th Grade
21 questions
TinkerCAD Discrete Circuits 2

Quiz
•
6th - 12th Grade
17 questions
Tinkercad 2020

Quiz
•
10th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Appointment Passes Review

Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
Grammar Review

Quiz
•
6th - 9th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
17 questions
[AP CSP] Binary Number System

Lesson
•
9th - 12th Grade
15 questions
1.1 Network Fundamentals Quiz

Quiz
•
10th Grade
20 questions
Understanding Information Processing Cycle

Quiz
•
10th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade