Lesson 2 - Executing Python - Prgrams, Algorithms, and Functions Flashcards

(11 cards)

1
Q

Pseudocode

A

A way of writing down the steps a computer program will make without coding in any specific language

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

Function

A

A reusable piece of code that is only run when it is called.

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

Variable

A

A mapping between a name and an object at a certain location in the computer’s memory.

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

Map

A

A special function in Python that applies a given function to all items in a list.

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

Filter

A

A function that takes a function and iterables as inputs and returns the elements for which the function returns TRUE.

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

Sorted

A

A function that takes iterables, such as a list, and sorts them according to a function.

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

Script

A

A file designed to be executed, usually from the command line.

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

Docstring

A

A string appearing as the first statement in a script, function, or class.

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

Help

A

A function used to obtain a summary of any available information regarding a module, function, or class in Python

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

Algorithm

A

A series of instructions that can be executed to perform a certain task or computation.

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

Binary Search

A

A sorting algorithm that takes a sorted array and finds the position of the target value.

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