1026

studied byStudied by 0 people
0.0(0)
Get a hint
Hint

Programming

1 / 290

encourage image

There's no tags or description

Looks like no one added any tags here yet for you.

291 Terms

1

Programming

The act of designing, implementing, and testing computer programs

New cards
2

encapsulation

The process of providing a public interface, while hiding the implementation details

New cards
3

central processing unit

performs program control and data processing

New cards
4

control unit

directs the operation of the processor

New cards
5

arithmetic logic unit

contains the circuitry to perform calculations and do comparisons

New cards
6

gigabyte

about 1 billion bytes

New cards
7

Software

typically realized as an application program

New cards
8

Algorithm

a sequence (the order mattering) of actions to take to accomplish the given task

New cards
9

Compile‐time Errors (aka Syntax Errors)

• Spelling, capitalization, punctuation

New cards
10

• Ordering of statements, matching of parenthesis, quotes...

New cards
11

• No executable program is created by the compiler

New cards
12

• Correct first error listed, then compile again.

New cards
13

• Repeat until all errors are fixed

New cards
14

Run‐time Errors (aka Logic Errors)

• The program runs, but produces unintended results

New cards
15

• The program may 'crash'

New cards
16

Program

a sequence of instructions and decisions

New cards
17

Storage

includes memory and secondary storage

New cards
18

Input

A program gets data, perhaps from a file, keyboard, touchscreen, network, etc.

New cards
19

Process

A program performs computations on that data, such as adding two values like x + y.

New cards
20

Output

A program puts that data somewhere, such as to a file, screen, or network.

New cards
21

variables

Programs use these to refer to data

New cards
22

computational thinking

creating a sequence of instructions to solve a problem

New cards
23

Python interpreter

a computer program that executes code written in the Python programming language

New cards
24

interactive interpreter

a program that allows the user to execute one line of code at a time.

New cards
25

Code

a common word for the textual representation of a program

New cards
26

line

a row of text

New cards
27

prompt

indicates the interpreter is ready to accept code

New cards
28

statement

a program instruction.

New cards
29

Expressions

code that return a value when evaluated

New cards
30

assignment

A new variable is created by performing this

New cards
31

print()

displays variables or expression values.

New cards
32

comments

optional but can be used to explain portions of code to a human reader.

New cards
33

string literal

Text enclosed in quotes

New cards
34

newline character

Output can be moved to the next line by printing "\n"

New cards
35

whitespace

Any space, tab, or newline

New cards
36

input()

Reading input is achieved using this function

New cards
37

string

any text that a user typed, including numbers, letters, or special characters like # or @

New cards
38

type

determines how a value can behave

New cards
39

int()

can be used to convert a string to an integer

New cards
40

crash

Abrupt and unintended termination of a program

New cards
41

bug

A logic error

New cards
42

Integrated Development Environment (IDE)

Code development is usually done with this

New cards
43

bits

0s and 1s

New cards
44

processors

created to execute a list of desired calculations

New cards
45

instruction

a calculation

New cards
46

memory

a circuit that can store 0s and 1s in each of a series of thousands of addressed locations

New cards
47

application (app)

a programmer-created sequence of instructions

New cards
48

machine instructions

Instructions represented as 0s and 1s

New cards
49

executable program

a sequence of machine instructions together

New cards
50

assembly language instructions

human readable instructions

New cards
51

compilers

programs that automatically translate high-level language programs into executable programs.

New cards
52

screen

displays items to a user

New cards
53

keyboard

allows a user to provide input to the computer, typically accompanied by a mouse for graphical displays.

New cards
54

disk

stores files and other data, such as program files, song/movie files, or office documents

New cards
55

import

A module is made available for use via the __________ statement

New cards
56

RAM

temporarily holds data read from storage and is designed such that any address can be accessed much faster than disk, in just a few clock ticks rather than hundreds of ticks.

New cards
57

byte

8 bits

New cards
58

operating system

allows a user to run other programs and interfaces with the many other peripherals

New cards
59

clock

A processor's instructions execute at a rate governed by this

New cards
60

transistors

smaller switches

New cards
61

Integrated Circuit (IC)

in 1958 transistors were integrated onto a single chip called an __________________________

New cards
62

Moore's Law

The doubling of IC capacity roughly every 18 months, which continues today.

New cards
63

scripting languages

programmers created these to execute programs without the need for compilation.

New cards
64

script

a program whose instructions are executed by another program called an interpreter.

New cards
65

Python

a scripting language

New cards
66

open-source

the community of users participate in defining the language and creating new interpreters, and is supported by a large community of programmers

New cards
67

assignment statement

assigns a variable with a value

New cards
68

incrementing

Increasing a variable's value by 1

New cards
69

identifier (name)

a sequence of letters (a-z, A-Z), underscores (_), and digits (0-9), and must start with a letter or an underscore.

New cards
70

case sensitive

upper- and lowercase letters differ

New cards
71

reserved words/keywords

words that are part of the language, and thus, cannot be used as a programmer-defined name

New cards
72

PEP 8

a document that outlines the basics of how to write Python code neatly and consistently

New cards
73

object

represents a value and is automatically created by the interpreter when executing a line of code

New cards
74

garbage collection

Deleting unused objects, an automatic process

New cards
75

Name binding

the process of associating names with interpreter objects.

New cards
76

Value

such as "20", "abcdef", or 55.

New cards
77

Type

such as integer or string.

New cards
78

Identity

A unique identifier that describes the object.

New cards
79

Mutability

indicates whether the object's value is allowed to be changed.

New cards
80

immutable

modifying their values with assignment statements results in new objects being created and the names bound to the new object.

New cards
81

floating-point number

a real number

New cards
82

float

a data type for floating-point numbers.

New cards
83

floating-point literal

written with the fractional part even if that fraction is 0

New cards
84

scientific notation

written using an e preceding the power-of-10 exponent

New cards
85

Overflow

occurs when a value is too large to be stored in the memory allocated by the interpreter.

New cards
86

OverflowError

For a standard 32-bit installation of Python, the maximum floating-point value is approximately 1.8x10308, and the minimum floating-point value is 2.3x10-308. Assigning a floating-point value outside of this range generates an

New cards
87

expression

a combination of items, like variables, literals, operators, and parentheses, that evaluates to a value

New cards
88

literal

a specific value in code

New cards
89

operator

a symbol that performs a built-in calculation

New cards
90

addition

New cards
91

subtraction/negation

New cards
92

multiplication

New cards
93

division

/

New cards
94

exponent

**

New cards
95

evaluates

An expression __________ to a value, which replaces the expression

New cards
96

precedence rules

An expression is evaluated using the order of standard mathematics, and such order is known in programming as

New cards
97

unary minus

Minus (-) used as negative

New cards
98

compound operators

provide a shorthand way to update a variable

New cards
99

modulo operator (%)

evaluates the remainder of the division of two integer operands

New cards
100

module

a file containing Python code that can be used by other modules or scripts

New cards

Explore top notes

note Note
studied byStudied by 49 people
Updated ... ago
5.0 Stars(2)
note Note
studied byStudied by 2 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 2 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 155 people
Updated ... ago
5.0 Stars(3)
note Note
studied byStudied by 4 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 17 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 17 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 3450 people
Updated ... ago
4.2 Stars(12)

Explore top flashcards

flashcards Flashcard20 terms
studied byStudied by 13 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard22 terms
studied byStudied by 7 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard20 terms
studied byStudied by 36 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard49 terms
studied byStudied by 4 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard27 terms
studied byStudied by 1 person
Updated ... ago
5.0 Stars(1)
flashcards Flashcard42 terms
studied byStudied by 5 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard43 terms
studied byStudied by 2 people
Updated ... ago
5.0 Stars(2)
flashcards Flashcard21 terms
studied byStudied by 3 people
Updated ... ago
5.0 Stars(1)