ADV PROG DAY 2 Flashcards
store information that can be easily referenced and manipulated in a script and provide a way of labeling a type of data with a descriptive name, so scripts are easily understood by a reader.
Variables
state that identifiers can only contain numbers, letters, and underscores, but cannot begin with a number.
variable naming conventions
an orderly arrangement of data values also known as a collection of values.
array
References a position in an array/list. The first available index position is always index zero.
Index
The actual value in the array/list. The first element in the list is always element one.
Element
is the blueprint that defines the abstract details of a thing.
class
ATTRIBUTES AND BEHAVIORS
known as an instance of a class and does not exist until the programmer creates or instantiates the object.
object
CHARACTERISTICS AND METHODS
provides a means to access the data and methods of an object.
Dot notation
method of temporarily changing a value from one data type to another to ensure a function correctly processes a variable. It does not change a variable’s data type permanently.
Typecasting
A variable defined in the main body of asource code file
is readable and modifiable throughout the entire source code.
Global Variables
A variable declared inside a code block is local to that block of code. It is readable and modifiable from the point at which it is declared until the end of the code block. It exists for as long as the code block is executing.
Local Variables
local scope refers to variables declared within the current session of the shell interpreter,and their values are only accessible in that specific session.
Shell Environments
Redirect and write to a file. Defaults to the STDOUT data stream. Stream numbers can optionally specify a different source
>
Redirect and append to a file. Defaults to the STDOUT data stream. Stream numbers can optionally specify a different source
> >
Redirect one data stream to another (e.g., 2>&1redirects both STDOUT and STDERR to the same place).
> &