Chapter 1 Flashcards

1
Q

What is an algorithm?

A

A step by step procedure for solving problems.

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

What is the simplest way of expressing an algorithm?

A

A List Algorithm

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

What is iteration?

A

Repeating something a set number of times, or until a condition is met,

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

What is selection?

A

A choice or decision.

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

What is a sequence?

A

A basic instruction

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

What makes a successful algorithm?

A
  • Correctness
    -Efficiency
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What does the:

Oval
Rectangle
Parallelogram
Diamond

mean in a Flow Diagram?

A

Start/End
Simple Sequence Instruction
Inputs/Outputs
Selections (Yes or No)

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

What is a variable?

A

A container which is used to store data.

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

What is a constant?

A

Data that does not change throughout the script.

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

Snake vs Camel case?

A

boy_age vs boyAge

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

What is pseudocode?

A

A language that is similar to programming but closer to English. You can play your script and the layout.

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

Operator vs operand?

A

Operator: the symbols that tell the computer what to do

Operand: The data the operators work on

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