Finals 1 Flashcards

1
Q

SR / RS

A

Set and Reset

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

most basic type of flip flop

A

SR FLIP FLOP

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

What is a programming language?

A

A formal set of instructions that can be used to produce various kinds of output.

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

What is the vocabulary size of a programming language compared to a spoken language?

A

The vocabulary of a programming language is far smaller than that of a spoken language.

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

What is meant by the term ‘syntax’ in programming?

A

The punctuation and way the words are formed in a programming language.

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

Why is case sensitivity important in programming names?

A

Names must be written exactly as defined, with the correct case.

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

What are ‘arguments’ in the context of a function?

A

The information passed to a function when it is called.

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

What does the function digitalWrite do?

A

It sets an output pin on the Arduino board to HIGH or LOW.

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

What is the first step that occurs when the Upload button is pressed in the Arduino IDE?

A

Compilation.

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

What does compilation do?

A

It translates the written code into machine code that the Arduino understands.

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

What are the two mandatory functions in every Arduino sketch?

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

What keyword is used to define a function that does not return a value?

A

void.

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

What does the setup function do in an Arduino sketch?

A

It runs once when the sketch starts.

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

What is the purpose of the loop function in an Arduino sketch?

A

To execute code continuously after the setup function has run.

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

How do you define an integer variable in C?

A

Specify the type and assign a value, e.g., int ledPin = 13.

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

What is a common naming convention for variables in programming?

A

Start with a lowercase letter and use camel case for subsequent words.

17
Q

What is the effect of modifying the delayPeriod variable in the Blink example?

A

It changes the speed of the LED blinking.

18
Q

Fill in the blank: The function pinMode sets a particular pin to be either an _______ or an output.

19
Q

True or False: You can place spaces in function names in Arduino programming.

20
Q

What happens if you do not include any lines of code in the setup or loop functions?

A

The sketch will not perform any actions.

21
Q

What is meant by ‘boilerplate’ code in Arduino programming?

A

The essential code structure that must be present in every sketch.

22
Q

What does the delay function do in an Arduino sketch?

A

Pauses the execution of the program for a specified period.

23
Q

What is a block of code?

A

Code enclosed within curly braces that defines what happens when a function is called.

24
Q

How can you make the blinking rate of an LED gradually slow down in an Arduino sketch?

A

By adding a value to the delayPeriod variable each time the loop is called.