General Flashcards

(9 cards)

1
Q

What is decomposition?

A

Splitting a large and difficult computing problem into many, smaller individual problems. Benefits: many people can work on the problem at once, makes it easier to comprehend

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

What is abstraction?

A

Removing unnecessary detail from a computing problem, so only the important and essential information remains. Benefits: program is simple and more reliable, and created faster.

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

What does the operator // do?

A

Divides and rounds down the number.

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

What does the operator % do?

A

Gets the remainder after dividing (useful for finding if a number is even or odd).

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

What does the operator ** do?

A

It makes the number to the power of the next number (using indices).

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

What is the difference between == and =?

A

= assigns a value to a variable.
== compares the two things next to it.

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

What do the Boolean Operators do?

A

AND: Program has to have A and B to work
OR: Program has to have either A or B to work
NOT: Program has to not have C to work

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

What does efficiency in a program mean?

A

If a program does unecessary work to solve a problem. More efficient programs are not faster, they do less work.

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

What is the difference between truth & trace tables?

A

Trace: Follows the steps of an algorithm and records when a variable changes. It helps programmers to find and fix mistakes.
Truth: Made up of boolean operators(AND, OR & NOT) called logic gates. Used to plan a program by listing the inputs and checking what the outputs should be.

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