Exam 3 Flashcards

(27 cards)

1
Q

For loops flowchart

A

A

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

For loop code

A

A

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

For loop Sequences

A

Range
String
File

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

Range

A

Is used to generate an arthritic progression

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

String

A

A

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

File

Explain:
Examples:
Get ride of white space examples:

A

A

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

Nested for loops

Explain

A

A

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

______ of a for loop contain any type of Python statement

A

Body

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

Nested for loops can contain another:

A
For loop
While loop
Decision structure
Input/output,
Etc
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

______ loop must be completely inside the first loop

A

Second

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

Nested for loop must have a ______ loop variable

A

Different

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

_______ loop goes through all of its iterations for each iteration faster than _______ loops

A

Inner

Outer

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

_______ loops complete their iterations faster than outer loops

A

Inner

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

Transitions to and from while loops

Explain:

A

A

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

Functions: look it up a lil more pls

A

A

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

Pythong functions _______ of functions is a _____ value

A

Output

Single

17
Q

Python function is said to _______ it’s output

18
Q

Items inside parentheses are called _________

19
Q

User-defined functions consider here _________________=

A

Pass by position

20
Q

User-defined function arguments in the calling statement matched to the parameters in function header ________________

A

Based on order

21
Q

User-defined function parameters and return statements are __________ on function definitions

22
Q

User-defined function _______________________ should describe the role preformed

A

Function names

23
Q

Definition: find info

24
Q

Invocation

A

Built-in functions
User-defined functions
Using a main function

25
Built in function Explain
Like miniature programs Revive input Process input Have output
26
User-defined functions
Passing parameters
27
Main function
Contains the main logic of yours code It is the function that directs the program Other functions will be called from main