lesson 7 Flashcards

1
Q

A flowchart is a…
In coding, flow diagrams are used to …

A

a diagram of steps, in order, that needs to be followed.
describe process steps with the use of specific blocks

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

All of the most important information of a process is represented in the flow diagram including any and all…

A

inputs, outputs, functions, decisions, loop and IF statements

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

Flow diagrams are used to …

A

simplify a process into the most important steps
help to organise the logic behind the flow of information

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

A loop in programming language refers to …

A

a function that repeats a statement or condition multiple times depending on the specified boundaries

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

few examples that use loops to perform a function

A

Traffic lights
social media
multiplayer games

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

… uses loops to constantly …

A

social media like WhatsApp
refresh and retrieve messages

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

how do you exit a forever loop…

A

red button on the Arduino has to be pressed
the Arduino is plugged out to stop the code from running

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

2 types of loops

A

for loop (also known as the forever loop)
a while loop.

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

look at page 4 figure 7.5

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

The main difference between a “for” loop and “while” loop is that …

A

the “for” loop requires a known number of repeats
the “while”loop does not require this knowledge

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

An infinite loop refers to a loop that …

A

will repeat forever, which will cause lagging or freezing of the affected system.

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