Font size
WorksheetsPRE-TEST (IoT - Arduino)
Total questions: 70
Worksheet time: 53mins
What does IDE stand for?
Integrated Development Environment
In Deep Environment
Internal Deep Escape
IDE
Which command is called repetitively over and over again as long as the Arduino has power.
loop ( )
delay( )
setup ( )
input( )
Which command is called when a sketch starts. Use it to initialize variables, pin modes, start using libraries, etc. It will only run once, after each power up or reset of the Arduino board.
loop ( )
delay( )
setup ( )
input( )
Used to end a statement
!
"
;
\
These tell the Arduino software when the setup section begins and ends. Without them, the software is lost and unable to compile your code. Think of these as additional punctuation that your code requires. Your code must be perfectly punctuated to compile.
( )
[ ]
< >
{ }
Single line comment
//
&&
<=
>=
Comparison operator which means greater than or equal to.
//
&&
<=
>=
This is used to include outside libraries in your sketch. This gives the programmer access to a large group of standard C libraries (groups of pre-made functions), and also libraries written especially for Arduino.
#include
#define
#library
#find
This allows the programmer to give a name to a constant value before the program is compiled. It does not take up any program memory space on the chip. The compiler will replace references to these constants with the defined value at compile time.
#include
#define
#library
#find
This is used only in function declarations. It indicates that the function is expected to return no information to the function from which it was called.
boolean
float
char
void
This is a data type that takes up 1 byte of memory that stores a character value. These literals are written in single quotes, like this: 'A' (for multiple of these - strings - use double quotes: "ABC").
boolean
float
char
void
These numbers have a decimal point. They are often used to approximate analog and continuous values because they have greater resolution than integers.
boolean
float
char
void
This holds one of two values, true or false.
boolean
float
char
void
This pauses the program for the amount of time (in miliiseconds) specified as parameter. (There are 1000 milliseconds in a second.)
loop ( )
delay( )
setup ( )
input( )
A variable that can be used and updated by any part of the code. Its scope is typically derived from the variable being declared (created) outside of any function, object, or method.
global variable
local variable
true variable
false variable
A variable that can only be seen, used and updated by code within the same scope. Typically this means the variable was declared (created) inside a function -- includes function parameter variables.
global variable
local variable
true variable
false variable
Complete circuit with lit light source.
The negative terminal of a circuit
5V
3.3V
GND
Reset
TX<-1
Steepness of the slope (C)
Amperes
Voltage
Resistance
Ω
The amount of rocks (A)
Amps
V
Resistance
Ω
Bushes on the slope that slow the rocks (B)
Amperes
Voltage
I
Ω
Difference in potential energy between 2 points
Amperes
V
Resistance
GND
Safer, more predictable
Direct Current
Alternating Current
Voltage
Ohms
Travels farther, much higher voltage
Direct Current
Alternating Current
Voltage
Ohms
Switches direction 50-60 times per s
Direct Current
Alternating Current
Voltage
Ohms
Choose the most descriptive title
Short Circuit
Complete Circuit
Incomplete Circuit
Full Circuit
Unused energy in a circuit is lost.
True
False
The current of an outlet
AC
DC
GND
A
The voltage of an outlet
110V
5V
3.3V
19V
Long end of an LED
+ (Anode)
- (Cathode)
220 Ohm resistor
A microcontroller is...
small CPU made of transistors and conductors of heat and sound sensor
small computer on a single integrated circuit containing a processor core, memory, and programmable input/output peripherals
small chip made of silver
What is Arduino?
A company for selling microcontrollers
An open-source electronics prototyping platform based on flexible, easy-to-use hardware and software
A software used to program microcontrollers
what is the name of this chip
Arduino
Embedded
Software
choose the right order of any process in the Arduino
output - process - input
input - output - process
input - process - output
the part of the Arduino that is circled is
Power Jack
Rest button
Analogue pins
In which of the following does electricity flow?
Open circuit
Closed circuit
None of the options are correct
If there are several probable causes to a problem, which should be tested first?
The easiest and most obvious
The most complex and difficult to diagnose
Those chosen by random selection
Those the teachers believe are the most important
Suppose you get the following options from the port, which one must you select to upload the program properly to the board
COM 2
COM 4(Arduino/Genuino Uno)
Serial upload
COM 3 (Upload to Arduino board)
When a problem is extensive, What should you do in order to help solve it?
Break it down into smaller problems
Ask a friend
Call the manufacturer for assistance
Test the problem
The long leg of the LED (Anode) must be connected to:
The signal
The ground
Any cable
The resistor
None of the options are correct
What can you determine from the following picture?
There is a problem with the connections in the board
There is an error in the code
A problem occured while uploading the program to the board
All the options are correct
What type of circuit is the one you see in the image
Open circuit
DC circuit
AC circuit
Closed circuit
Power circuit
We want to turn on the built-in LED of the Arduino board, What pin and configuration do we use?
pin 11 as an INPUT
pin 13 as an OUTPUT
pin 3 as an OUTPUT
pin BUILT as an OUTPUT
pin 13 as an INPUT
Which button helps us find errors in the code?
Upload
Download
Verify
Error finder
Fixer
The code that is repeated over and over again in Arduino is:
void setup
void repeat
void doItAgain
void loop
None of the options are correct
BONUS: would the following assembly work if.....
You change the cable from GND to pin 13
None of the options are correct
You change the 8 by a 10 in the code
You change the cable from GND to pin 10
It already works with the current configuration
BONUS 2: Would the LED turn on and off if...
You rotate the LED
Change the cable from pin 9 to pin 13
The LED turns on with the current configuration
Change the cable from GND to pin 13
Which is the format specifier for unsigned long int
%ld
%ul
%lu
%d
What is the precision of Double (after decimal point)
19
6
15
12
Standard c library files are added during which step of the compilation process
Linker
Compiler
Assembler
Which is the microcontroller present in Arduino
ATMEGA328
ATMEGA238
ATMEGA326
ATMEGA236
How many PWM pins does Arduino have
5
8
6
7
What is the data memory in Arduino
FLASH
DRAM
EEPROM
SRAM
How many bits are required to transmit 8 bit data to a slave of 8 bit address using I2C protocol
18
19
20
21
Which protocol does USB use
IC2
SPI
URAT
Which is the software or a programming language used for controlling of Arduino?
C sharp
C
Assembly language
Any Language
Arduino IDE consists of 2 functions. What are they?
Build() and loop()
Setup() and build()
Setup() and loop()
Loop() and build() and setup()
A program written with the IDE for Arduino is called ___
IDE source
Sketch
Cryptography
Source code
Which function runs a set of codes only once?
void main()
void setup()
void loop()
void set()
How many arguments does the digitalRead() function have?
1
2
3
4
What computer languages are used in Robotics for today’s society?
C++
JavaScript
Arduino
Phyton
What are the technical terms used for “ON"?
HIGH
LOW
What is the technical term used for “OFF”?
LOW
HIGH
The open-source electronic platforms based on easy-to-use hardware and software.
ARDUINO
C++
HTML
C#
It is used to end a statement
{}
;
()
//
Syntax means?
Descriptions
Grammar
Code
Output
What is this picture classifies as?
MICROCHIP
CENTRAL PROCESSING UNIT (CPU)
MOTHERBOARD
ARDUINO BOARD
What is the output of this program
The Arduino robot will run itself, Also, the LED Lights, inside the Arduino will be on 13 times and off 13 times because, of the command HIGH and LOW
The Arduino Lego will run and dance 13 times
The command or program has syntax error
The Arduino Lego will sleep 13 times
It is used to include external libraries in your sketch
#include
#define
void setup ()
void loop ()
