Topic 2: Variable Naming Conventions, Data Types, and Values Flashcards
A program consisting of interrelated statements arranged in logical and understandable form
Modular program
A small segment which is designed to perform a specific task
Module
A symbolic identifier for a memory address where data can be held
Variable
Variable _______ are used to name storage locations
names
A variable is a memory location whose contents can vary, also called an ____________
identifier
Name must be a __________, but can be formed from several words
single word
First character must be a ___________ or underscore (_)
letter
Only ______, ________, and _______ may follow the initial letter (no blanks or spaces allowed)
letters…digits…underscore
_________ cannot be used as identifiers
Keywords
Keywords are also referred to as _______ words
reserved
Ordering of data types by size
Data heirarchy
Single symbol
Character
Group of characters forming a single data item
Field
A group of related fields
Record
A group of related records
File
Collection of related files, called tables, that serve the information needs of the organization
Database
Two basic data types:
- Text
- Numeric
Stored by numeric variables
Numeric data
Stored by string, text, or character variables
Text data
Values that do not change while the program is running
Constants
Used to store a value into a variable
Assignment Statement
Specifies the data type and identifier of a variable
Declaration Statement
It sets up the memory location
Declaration Statement