lesson 5+6 Flashcards

1
Q

Modular programming, also referred to as … refers to the process of…

This way of writing the code …

A

modular architecture
dividing program code into different, sub-sections that can be called upon as functions

simplifies and neatens the project code to make it easier to use, understand and troubleshoot.

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

The metal block on your Arduino is used for …. and it allows…

A

serial communication
communication between an Arduino and a computer

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

TXD
(pin …)

RXD
(pin 1)

A

transmitter
0

receiver
1

visa versa

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

“Serial” is a ….
The full stop(.) provides…
“begin” …
“9600” is the …

A

> library (it holds a lot of functions) that is used in the communication between the Arduino and the computer

> access to all the functions within the library

> specifies the way the Arduino and computer communicate

> baud rate, which means it is the speed at which the computer and the Arduino communicate.

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

“.println” function causes the code to….

A

print the next output text on a new line

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

“.print”….

A

which continues to print the text output on the same line.

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

Inside the bracket ….

A

is the data to be printed.

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

“Hello world!” is the

A

content

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

Click the Serial monitor button which is on the … of the screen to…

A

top right corner
open a screen that displays data that is exchanged between the Arduino and the computer

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

The word function in coding refers to a …

A

set of coding lines that are grouped together and given a specific name

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

example of function

A

void setup

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

Programmers use functions to…

A

break down a problem into smaller pieces or “chunks”, each of which performs a specific task.

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

to simplify the code, the function can be defined in the…

A

main loop

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

IDE stand for… and it…

A

integrated development environment

is a software application that provides a space for computer programmers to develop software.

This allows coding to be done faster;

has colour coded text to easily identify different types of functions;

has code examples for small projects, and
helps the programmer manage the code with comments

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

The compile button…
The upload button…
The serial monitor:….

A

checks for errors and makes sure there are no issues in your code.

uploads all your code to the Arduino

opens up a monitor which allows the programmer to communicate with the Arduino and get information from it.

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

;Windows commands: …

The setup block:

It has two built-in functions. First the setupblock which will only run once - it is indicated by …

The second is the loop block which will continue to run forever (just like the Scratch software loops) - it is indicated by….

”The IDE feedback block shows ….

A

have the standard file format: save, edit, etc.

this is where code is written

“void setup().”

“void loop().

errors if they are made and where they are located