Chapter 2 - Data, Expressions, Variables and I/O Flashcards

1
Q

Atomic Data

A

Smallest unit of data a computer program can define

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

Compound Data

A

Data that can be subdivided into smaller pieces, which can be organized

Eg. a list

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

Bits

A

0’s and 1’s that make up binary code

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

Data Type

A

Tells a computer how to interpret binary bits

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

Integer Data

A

Positive or negative whole numbers, or zero

Atomic data type

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

Floating-Point Data

A

Real numbers

Atomic data type

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

Boolean Data

A

True / False

*Capitalization matters!

Atomic data type

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

String Data

A

Sequences of characters and are usually used to store text

Compound data type

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

List Data

A

Sequences of data items

Each item can be of any data type

Compound data type

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

Dictionary Data

A

Key-value pairs in no particular order

Compound data type

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

Expressions

A

Combinations of data and operators

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

Operators

A

Write expressions that compute new values from existing data

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

Value of the Expression

A

Result of the expression

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

Literal

A

Number or string written into a program

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

Integer Literal

A

Any number written without a decimal point

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

Floating-Point Literal

A

Any number written with a decimal point

17
Q

String Literal

A

Enclosing a string within quotations

18
Q

Identifiers

A

Names of variables

19
Q

Operands

A

Data items that operators operate

20
Q

Type Coercion

A

Data types converted into more common types by Python

21
Q

Console

A

Default location for text inputs and outputs

Input comes from the keyboard

Output goes to the screen