Block coding Flashcards

1
Q

What are the 6 types of block coding?

A
  • basic
  • input
  • music
  • loops
  • logic
  • variables
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is an example of basic in block coding?

A

show leds, show string

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

What is an example of input in block coding?

A

on button A pressed, on pin 0 pressed

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

What is an example of music in block coding?

A

play melody, play tone

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

What is an example of loops in block coding?

A

for … from 0 to … do, repeat … times do …

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

What is an example of logic in block coding?

A

if … then, 0 … 0

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

What is an example of variables in block coding?

A

set … to …, change … by …

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

What are some advantages of block coding?

A
  • easy to learn
    - no syntax, you don’t need to type instructions
  • visual
    - represents programming elements easily
  • fast
    - no formatting required, drag and drop
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are some disadvantages of block coding?

A
  • very basic
    - no text-based coding included, beginners only
  • limited capacities
    - simple instructions only can be given, can not create your own instructions
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is a variable?

A

In programming, a variable is a value that can change, depending on conditions or on information passed to the program

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

What is a microcontroller?

A

A microcontroller is a programmable device that receives data from inputs in order to produce one or more outputs.

It is made up of small microchips that contain microscopic circuits called integrated circuits that can be programmed to carry out simple functions. Once programmed, there is no need to use a computer to operate them.

Another name for a microcontroller is a:
programmable logic controller (PLC)

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

How does the microcontroller work?

A

A microcontroller can only work if it has been programmed. The program is written on a computer which is called a sketch. The program is then uploaded to the microcontroller chip via a USB connection.

The microcontroller can then be disconnected from the computer and an alternate power supply can be connected. This allows the microcontroller to be an independent control technology system.

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