Finals - L1 - Data Handling Flashcards
What is the term being described?
- Provide a means to store data values that are not stored in files.
- Support the computation of values through their use in formulas in assignment statements (Represent locations in a computer’s
memory). - are assigned a unique name for reference when writing computer code
Handling Data
Variables
Handling Data
What is the term being described?
It represents locations in a computer’s
memory
Handling Data
Assignment statements
Handling Data
What is the term being described?
- This is associated with locations in random
access memory. - Each memory location is assigned a unique blank that is used to reference the location when you write a program
Handling Data
Variable name
Handling Data
What is the term being described?
- Values are stored to blank locations
- The blank values can vary over time.
Handling Data
- Memory
- Stored
Handling Data
What is the term being described?
This is a scheme of using bits to represent values
Handling Data
DATA TYPE
Handling Data
What is the term being described?
Types of Data
blank provides numerous data types to allow programmers to optimize the use of computer memory. Each data type is described below:
- Data type name.
- Description of data stored.
- Memory storage requirement in bytes.
Handling Data
Python
Handling Data
What is the type of data being described?
int: Represents integers, e.g., 42, -7.
float: Represents floating-point numbers (decimal numbers), e.g., 3.14, -0.01.
complex: Represents complex numbers with real and imaginary parts, e.g., 3 + 5j.
Handling Data
Numeric Types (of data)
Handling Data
What is the type of data being described?
str: Represents strings (text), e.g., "hello", "Python".
list: Represents an ordered, mutable collection, e.g., [1, 2, 3], ["apple", "banana"].
Handling Data
Sequence Types (of data)
Handling Data
What is the type of data being described?
Selection depends on how large the quantity in inventory will
be, but the quantity is usually a whole number.
Handling Data
Quantity in Inventory – Integer (of data)
Handling Data
Fill in the blanks
Naming Rules for Variables and
Constants:
1. You as the blank decide what to name
variables and constants – there are technical rules you must follow when creating variable and constant names.
2. Names can include letters, digits, and the
underscore, but blank begin with a letter.
Names cannot contain blank or blank. /-&$
Handling Data
- Programmer
- must
- spaces or periods
Handling Data
Fill in the blanks
**Naming Rules for Variables and
Constants: **
* You as the blank decide what to name
variables and constants – there are technical rules
you must follow when creating variable and
constant names.
* Names can include letters, digits, and the
underscore, but blank begin with a letter.
* Names cannot contain blank or blank. */-&$
- Names cannot be blank such as
print, def, import, for,
etc. - Names are not blank. This means that TotalInteger,
TOTALINTEGER, and totalinteger are all equivalent names.
Handling Data
- Programmer
- must
- spaces or periods
- python reserved words
- case sensitive
Handling Data