Python Flashcards

(83 cards)

1
Q

Algorithms

A

sequences of instructions, created to operate within the models, manipulate and present information

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

Hardware

A

physical components (e.g., memory chip, keyboard, networking cable, smartphone)

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

Software

A

nonphysical components (e.g., operating system, network protocols, programming language tools, APIs)

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

Central processing unit (CPU)

A

core hardware component where computation occurs, fetches program instructions and data, executes instructions on data

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

Main memory (RAM)

A

stores program instructions and data during execution

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

Bus

A

Set of wirings that carry instructions and data between the CPU and main memory, connects CPU and main memory to other components

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

Computer systems

A

single computer or collection of computers connected to network

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

Operating system (OS)

A

Software component that acts as intermediary between hardware and application programs

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

Computer network

A

system of computers that can communicate with each other

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

Internetwork

A

connection of several networks (Internet)

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

Integrated Development Environments (IDEs)

A

include editor, language translator, automated tools, debugger

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

Application programming interface (API)

A

library consisting description of instructions

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

Computational thinking

A

processes/tasks understood/described as computational processes

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

Abstraction

A

extracting relevant aspects of problem

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

Model

A

result of abstraction that represents all relevant aspects of problem

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

Assignment statements

A

sets current value of variable

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

Conditional control structure

A

executes only if something happens

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

Iteration control structure

A

repeating process set number of times

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

Hard drive

A

Stores files, retains data even when computer is powered off, larger capacity than main memory

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

Iteration

A

repeating a process

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

Integer/int

A

values without decimal point

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

Floating point/float

A

values with decimal and fractional parts

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

string

A

sequence of characters including blanks, punctation, symbols

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

Indexing operator

A

access individual characters of string

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Index
character's position in string with respect to first character
25
** (xy = x**y)
exponentiator operator
26
a//b
integer quotient when integer a divided by integer b
27
a%b
remainder when integer a divided by integer b
28
abs()
absolute value of number
29
min() & max()
min and max of input values
30
==
check equality
31
<=
less than or equal to
32
>=
greater than or equal to
33
!=
not equal to
34
x in s
True if string x is substring of string s, false otherwise
35
x not in s
False if string x is substring of string s, true otherwise
36
s + t
Concatenation of string s and t
37
s * n
Concatenation of n copies of s
38
s[i]
Character of string s at index i
39
len(s)
Length of string s
40
Indexing operator []
access individual characters of string
41
Index
character’s position in string with respect to first character
42
List
sequence of objects of any type
43
Mutable
content of list can be changed
44
Tuples
immutable lists
45
append ()
add to lists
46
Lst.count(item)
Returns number of occurences of item in lst
47
Lst.index(item)
Returns index of first occurrence of item in lst
48
Lst.insert(index, item)
Inserts items into list just before index
49
Lst.pop()
Removes last item from lst
50
Lst.remove(item)
Removes first occurrence of item from list
51
Lst.reverse()
Reverses order of items in list
52
Lst.sort()
Sorts list
53
Methods
functions that cannot be called on their own (append)
54
Objects
collection of data (variables) and methods (functions)
55
Type
indicates what kinds of values object can hold and what kind of operation can be performed on object (int, float, bool, str, list)
56
Class
types whose values are stored in objects
57
Constructor
explicitly instantiate integer object (int())
58
Program
sequence of multiple python statements
59
Module
file containing python code
60
User defined Python modules
files we create and save
61
Escape sequence
sequence of characters starting with \ that defines special character and interpreted by print function
62
Precision
decimal number that specifies how many digits should be displayed before and after decimal point
63
File
sequence of bytes stored on secondary memory device (drive)
64
Text files
sequence of characters encoded using some encoding
65
Binary file
executable application because sequence of bytes without encoding
66
File system
component of computer system that organizes files and provides ways to create, access, modify files
67
Root directory
folder on top of hierarchy
68
Pathname
useful for locating file efficiently
69
Absolute pathname
sequence of folders, starting from root directory
70
Current working directory
folder containing module
71
Relative pathname
sequence of directories to get to file
72
Parent folder
folder containing current working directory
73
Mode
string that specifies how we will interact with opened file
74
File object
object of Input or Output Stream type that supports methods to read/write characters
75
Syntax errors
errors that are due to incorrect format of statement
76
Nested loop
loop statement is contained inside another loop statement
77
2-d lists
list of list elements, with each list element corresponding to row
78
Sequence loop pattern
loop is used to generate sequence of numbers until condition is satisfied
79
Flag
arbitrary value that is chosen to indicate end of input
80
Dictionary
user defined indexes
81
Set
store unordered collection of items, no duplicates
82
ASCII
standard encoding for English characters