learning phase 1

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/139

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

140 Terms

1
New cards

A reusable chunk of code with inputs and outputs

Function

2
New cards

A name that can be associated with a value

Variable

3
New cards

A control structure for performing actions on each element of a sequence

For loop

4
New cards

A control structure for branching the execution of a program

If statement

5
New cards

A data structure for mapping keys to values

Dictionary

6
New cards

A data structure for storing elements in an ordered sequence

List

7
New cards

A categorization of values of similar kinds that determines what you can do with the values

Type

8
New cards

A sequence of data stored in your computer's long term memory

File

9
New cards

Specific instances of data written directly in source code

Literal value

10
New cards

A type that represents textual data

String

11
New cards

A collection of functions, classes, and variables available to be imported

Module

12
New cards

A combination of data and functions that can encapsulate behavior into a new type

Class

13
New cards

An instance of a class

Object

14
New cards

A sequence of coded instructions that manipulate data inside a computer

Program, While, or Method

15
New cards

"2.0"

String

16
New cards

"Python"

String

17
New cards

-1.4

Float

18
New cards

[1, 2, 3]

List

19
New cards

''

String

20
New cards

{}

Dictionary

21
New cards

True

Boolean

22
New cards

None

None

23
New cards

[]

List

24
New cards

{1:2}

Dictionary

25
New cards

"True"

String

26
New cards

-100000257

Integer

27
New cards

(1, 2, 3)

Tuple or Set

28
New cards

While

Keyword

29
New cards

Boolean

Type

30
New cards

Float

Type

31
New cards

for

Keyword

32
New cards

print

Built in function

33
New cards

class

Keyword

34
New cards

Integer

Type

35
New cards

in

Keyword

36
New cards

map

Built in function

37
New cards

def

Keyword

38
New cards

Dictionary

Type

39
New cards

input

Built in function

40
New cards

import

Keyword

41
New cards

String

Type

42
New cards

return

Keyword

43
New cards

List

Type

44
New cards

Humans discovered programming languages in the 1940s and have been decoding them ever since.

False

45
New cards

The print function can only print literal values

False

46
New cards

Variables change their value over time according to instructions in a program

True

47
New cards

Variables in Python are used to solve for unknown values, like in Algebra

False

48
New cards

Variable names are important because computers understand the meaning of names and change their value accordingly

False

49
New cards

Normally, statements are executed from top to bottom

True

50
New cards

Expressions are always evaluated from left to right

False

51
New cards

Strings are composed of only letters and symbols

False

52
New cards

Printing is the same as returning

False

53
New cards

Every function created with the def keyword must have at least one parameter

False

54
New cards

You should not put error messages into help seeking emails because it can clutter up the email

False

55
New cards

You can nest if statements inside of other if statements, but not inside functions

False

56
New cards

The Iteration Variable will take on each value of the List Variable, one at a time

True

57
New cards

The body of a for loop will contain one statement for each element of the iteration list

False

58
New cards

Like an if statement and a function call, the for Loop might cause the execution to not follow the sequential order of lines

True

59
New cards

The statement count = count + 1 will cause an error because no number can be greater than itself

False

60
New cards

List comprehensions cannot express everything that a for loop can

False

61
New cards

Dictionaries will always have at least one key and one value

False

62
New cards

Dictionaries are useful because you can have duplicate keys

False

63
New cards

Variables can be used as the keys of a dictionary

True

64
New cards

Keys can be added to the dictionary after its been created

True

65
New cards

Lists can be composed of Dictionaries

True

66
New cards

Dictionaries cannot be composed of lists

False

67
New cards

Unlike Lists, Tuples are immutable, meaning Tuples cannot be changed after they are created

True

68
New cards

Tuples are composed of key/value pairs

False

69
New cards

A while loop will always be executed at least once

False

70
New cards

A while loop will execute once for each expression in the conditional

False

71
New cards

A for loop will process a file sentence by sentence

False

72
New cards

The open function consumes a string representing a path and returns a string of the file's contents

False

73
New cards

You must import the json module before you can use the load function

True

74
New cards

algorithm

A set of specific steps for solving a category of problems

75
New cards

bug

an error in a program

76
New cards

comment

in a program that is meant for other programmers (or anyone reading the source code) and has no effect on the execution of the program

77
New cards

token

basic elements of a language(letters, numbers, symbols)

78
New cards

high-level language

A programming language like Python that is designed to be easy for humans to read and write.

79
New cards

low-level langauge

A programming language that is designed to be easy for a computer to execute; also called machine language or assembly language

80
New cards

print

A function used in a program or script that causes the Python interpreter to display a value on its output device.

81
New cards

runtime error

An error that does not occur until the program has started to execute but that prevents the program from continuing.

82
New cards

semantic error

An error in a program that makes it do something other than what the programmer intended.

83
New cards

semantic

the meaning of a program

84
New cards

syntax

The structure of a program

85
New cards

syntax error

An error in a program that makes it impossible to parse — and therefore impossible to interpret.

86
New cards

string

contains a string of letters

87
New cards

variable

name that refers to a value

88
New cards

assignment statement

gives value to a variable

89
New cards

keyword

define the language's syntax rules and structure, and they cannot be used as variable names

90
New cards

statement

instruction that the Python interpreter can execute

91
New cards

operators

special tokens that represent computations like addition, multiplication and division

92
New cards

modulus operator

%, works on integers (and integer expressions) and gives the remainder when the first number is divided by the second

93
New cards

evaluate

To simplify an expression by performing the operations in order to yield a single value.

94
New cards

int

A Python data type that holds positive and negative whole numbers

95
New cards

float

A Python data type which stores floating-point numbers. Floating-point numbers are stored internally in two parts: a base and an exponent. When printed in the standard format, they look like decimal numbers

96
New cards

flow of execution

The order in which statements are executed during a program run.

97
New cards

function

A named sequence of statements that performs some useful operation. Functions may or may not take parameters and may or may not produce a result

98
New cards

fruitful function

A function that returns a value when it is called.

99
New cards

local variable

A variable defined inside a function. A local variable can only be used inside its function. Parameters of a function are also a special kind of local variable.

100
New cards

parameter

A name used inside a function to refer to the value which was passed to it as an argument.