Programming key terms Flashcards

(19 cards)

1
Q

What is an Algorithm?

A

An algorithm is a set of instructions for solving a problem or completing a task

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

What is Decomposition?

A

Decomposition involves breaking down a large problem into smaller sub-problems

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

What is Abstraction?

A

Abstraction involves removing unnecessary detail from a problem so that you can focus on the essential components

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

What is an IDENTIFYER?

A

Another word for a variable name

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

What is a Variable?

A

A variable is a name for a memory location that is used to temporarily store data that has been assigned a value.

A variable can be changed while the program is running.

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

What data type is used for whole numbers?

A

Integer

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

What data type is used for fractions?

A

Float or Real

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

What data type is used for a single ASCII character?

A

Char

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

What data type is used for characters put inside “” marks?

A

String

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

What data type can only be true or false?

A

Boolean

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

What is a constant?

A

Aconstantis a location in memory that holds a value. It has a label or name to identify it and its value cannotbe changed as the program runs

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

What is Sequence in programming?

A

The order in which an algorithm is executed.

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

What is Selection in programming?

A

Selection is a programming construct that allows a program to make decisions and execute specific blocks of code only if certain conditions are met. IF, ELIF, ELSE.

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

What is MOD used for in programming?

A

MOD (modulus) is used to find the remainder when dividing one integer by another

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

What is DIV used for in programming?

A

The operator DIV is used for integer division, it returns a whole number but no remainder.

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

What is Iteration in programming?

A

Iteration means repetition of a section of code
While and For loops

17
Q

What is an Array in programming?

A

Stores multiple values of the same data type
(e.g., all integers, all strings, all floats)

18
Q

What is Concatenation in programming?

A

Joining two strings together in python we use +

19
Q

What is casting in programming?

A

Casting is where we can change a variable from one data type to another.