Quiz Q3 Flashcards

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

A

functions

24
Q

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

A

functions

25
Q

pin: the Arduino pin number
value: HIGH or LOW

A

digitalWrite

26
Q

how do you write digitalWrite

A

digitalWrite (pin number, LOW/HIGH)

27
Q

write a HIGH or LOW value to a digital pin

A

digitalWrite ()

28
Q

reads the value from a specified digital pin, either HIGH or LOW

A

digitalRead ()

29
Q

pins: the Arduino number you want to read

returns: HIGH or LOW

A

digitalRead ()

30
Q

syntax of digitalRead

A

digitalRead (pin)

31
Q

pin: the name of the analog input pin to read from (A0-A05, e.g.)

returns: the analog reading on the pin

A

analogRead ()

32
Q

data type of analogRead

A

int (integer)

33
Q

resolution can be changed (only for Zero, Due and MKR boards) using-

A

analogReadResolution ()

34
Q

the input range can be changed using _______ in analogRead

A

analogReference ()

35
Q

two required functions in arduino

A

void setup ()

void loop ()

36
Q

executes only one time as soon as you upload, power up, or reset Arduino

A

void setup ()

37
Q

functions that repeat consecutively until Arduino is turned off

A

void loop ()

38
Q

refers to the container of the saved information, not the information itself

A

variable

39
Q

a place to store a piece of data, it has a name, a value, and a type

A

variables

40
Q

store and recall information

A

variables

41
Q

when naming variables:

A

no spaces
no special characters
no numbers as first character
don’t HIGH/LOW, true/false

42
Q

functions that stop the tone

A

noTone ()

43
Q

you may see it on the start of an Arduino code; a communication to laptop and arduino

A

serial.begin (9600)

44
Q

prints strings

A

serial.print

ex. serial.print (“Hello World”)

45
Q

allows you to pause the execution of your Arduino program for a specified period

A

Delay ()

ex. Delay (1000)

46
Q

measurement in the delay

A

1000 milliseconds = 1 second

47
Q

for the pitch and frequency

A

tone ()