Quiz Q3 Flashcards

(47 cards)

1
Q

Where do you set the Arduino Board and the Port you are going to use?

A

Tools

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

The other term for an Arduino File?

A

A sketch

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

3 main parts of Arduino IDE

A

Editor, Message, Console

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

the language used by a program

A

syntax

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

descriptive statements that the programmer writes to help explain the code

A

comment

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

ignored by the compiler, you may write anything you want

A

comment

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

with “ // “ symbol

A

single line comment

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

/*
this
is
a
comment
*/

A

multiline comment

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

this tells the compiler that a chunk of code is finished and are moving on to the next code

A

semicolon

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

signifies a complete statement, equivalent to a period in a sentence

A

; semicolon

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

what happens when you forgot a semicolon

A

an error occur

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

used to enclose further instructions carried out by a function

A

curly brace { }

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

pieces of code that are used so often that they are encapsulated in a certain keywords so that you can use them more easily

A

function

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

the name of the function will appear

A

orange

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

information the function uses when it runs

A

arguments

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

how to you write a function?

A

pinMode ( );

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

to easily organized the codes, spaces are made

A

indention

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

where arduino code type in

A

editor

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

how to use functions

A
  1. define functions
  2. call the function
  3. use the result of the function
20
Q

Define functions –

A

enclose the statements of the function

21
Q

Call the function –

A

use the function by using its name, adding any parameters if needed

22
Q

Use the result of the function –

A

result can be made from the function

23
Q

provide a way to modularize your code and make it reusable

24
Q

instead of having a single, very long program, you can break up your code into modules of code with-

25
pin: the Arduino pin number value: HIGH or LOW
digitalWrite
26
how do you write digitalWrite
digitalWrite (pin number, LOW/HIGH)
27
write a HIGH or LOW value to a digital pin
digitalWrite ()
28
reads the value from a specified digital pin, either HIGH or LOW
digitalRead ()
29
pins: the Arduino number you want to read returns: HIGH or LOW
digitalRead ()
30
syntax of digitalRead
digitalRead (pin)
31
pin: the name of the analog input pin to read from (A0-A05, e.g.) returns: the analog reading on the pin
analogRead ()
32
data type of analogRead
int (integer)
33
resolution can be changed (only for Zero, Due and MKR boards) using-
analogReadResolution ()
34
the input range can be changed using _______ in analogRead
analogReference ()
35
two required functions in arduino
void setup () void loop ()
36
executes only one time as soon as you upload, power up, or reset Arduino
void setup ()
37
functions that repeat consecutively until Arduino is turned off
void loop ()
38
refers to the container of the saved information, not the information itself
variable
39
a place to store a piece of data, it has a name, a value, and a type
variables
40
store and recall information
variables
41
when naming variables:
no spaces no special characters no numbers as first character don't HIGH/LOW, true/false
42
functions that stop the tone
noTone ()
43
you may see it on the start of an Arduino code; a communication to laptop and arduino
serial.begin (9600)
44
prints strings
serial.print ex. serial.print ("Hello World")
45
allows you to pause the execution of your Arduino program for a specified period
Delay () ex. Delay (1000)
46
measurement in the delay
1000 milliseconds = 1 second
47
for the pitch and frequency
tone ()