python programming concepts Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

selection

A

used to make choices depending on the information given

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

sequence

A

the order in which commands are executed by a computer

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

types of selection

A
  1. IF…THEN…ELSE…ENDIF

2. CASE..OF…OTHERWISE…ENDCASE

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

when is the IF condition used in python programming?

A

An if else Python statement evaluates whether an expression is true or false. If a condition is true, the “if” statement executes. Otherwise, the “else” statement executes

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

when is the CASE..OF condition used in python programming?

A

A series of statements (options) are programmed to take into account the testing of a condition that may have many outcomes.

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

counting

A

counting is used to find how many numbers/ items are in a list. it is used to keep track of how many iterations your program has performed in a loop.

counter == counter + 1

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

totaling

A

sum a list of numbers

total == total + 1

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

loop

A

In computer programming, a loop is a sequence of instructions that is continually repeated until a certain condition is reached.

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

iteration

A

iteration is the term given to the repetition of a block of statements until a condition is met.

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

types of iteration

A
  1. FOR…TO…NEXT
  2. REPEAT…UNTIL
  3. WHILE…DO…ENDWHILE
How well did you know this?
1
Not at all
2
3
4
5
Perfectly