Create a Header File for the Class

Interactive Video
•
Information Technology (IT), Architecture
•
University
•
Hard
Wayground Content
FREE Resource
Read more
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the first step in creating a header file in a project?
Include all libraries
Define the class in the main file
Create a new file in the project
Compile the existing code
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Why are define guards used in header files?
To automatically include libraries
To increase the speed of the program
To prevent code duplication
To make the code more readable
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the convention for naming define guards?
Use the class name in lowercase
Use the file name in uppercase with _H
Use lowercase letters
Use random characters
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What must be included in new files to use Arduino functionalities?
Setup and loop functions
All other header files
Main program code
Arduino.h library
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens if you don't include Arduino.h in a new file?
The main file will include it automatically
The code will be duplicated
The program will not compile
The program will run faster
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you include a file from your folder in the code?
Using parentheses
Using angle brackets
Using quotes
Using curly braces
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the benefit of removing the class from the main program?
It makes the main program shorter
It automatically includes all libraries
It duplicates the code
It increases the program's complexity
Similar Resources on Wayground
8 questions
Extra: Make Your Class an Arduino Library

Interactive video
•
University
5 questions
Class to Library Continued: Arduino Course 8.8

Interactive video
•
University
2 questions
Arduino OOP - Combine LEDs and Buttons - Work with Multiple Objects

Interactive video
•
University
4 questions
Arduino OOP - Combine LEDs and Buttons - Work with Multiple Objects

Interactive video
•
University
8 questions
Arduino OOP - Create a Header File for the Class

Interactive video
•
University
6 questions
Introduction

Interactive video
•
University
8 questions
Create a Header File for the Class

Interactive video
•
University
8 questions
Arduino OOP - Extra: Make Your Class an Arduino Library

Interactive video
•
University
Popular Resources on Wayground
12 questions
Unit Zero lesson 2 cafeteria

Lesson
•
9th - 12th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
20 questions
Lab Safety and Equipment

Quiz
•
8th Grade
13 questions
25-26 Behavior Expectations Matrix

Quiz
•
9th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Information Technology (IT)
15 questions
Let's Take a Poll...

Quiz
•
9th Grade - University
2 questions
Pronouncing Names Correctly

Quiz
•
University
12 questions
Civil War

Quiz
•
8th Grade - University
18 questions
Parent Functions

Quiz
•
9th Grade - University
21 questions
Mapa países hispanohablantes

Quiz
•
1st Grade - University
19 questions
Primary v. Secondary Sources

Quiz
•
6th Grade - University
25 questions
Identifying Parts of Speech

Quiz
•
8th Grade - University
20 questions
Disney Trivia

Quiz
•
University