ADV PROG DAY 2 Flashcards

1
Q

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.

A

Variables

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

state that identifiers can only contain numbers, letters, and underscores, but cannot begin with a number.

A

variable naming conventions

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

an orderly arrangement of data values also known as a collection of values.

A

array

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

References a position in an array/list. The first available index position is always index zero.

A

Index

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

The actual value in the array/list. The first element in the list is always element one.

A

Element

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

is the blueprint that defines the abstract details of a thing.

A

class

ATTRIBUTES AND BEHAVIORS

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

known as an instance of a class and does not exist until the programmer creates or instantiates the object.

A

object

CHARACTERISTICS AND METHODS

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

provides a means to access the data and methods of an object.

A

Dot notation

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

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.

A

Typecasting

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

A variable defined in the main body of asource code file

is readable and modifiable throughout the entire source code.

A

Global Variables

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

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.

A

Local Variables

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

local scope refers to variables declared within the current session of the shell interpreter,and their values are only accessible in that specific session.

A

Shell Environments

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

Redirect and write to a file. Defaults to the STDOUT data stream. Stream numbers can optionally specify a different source

A

>

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

Redirect and append to a file. Defaults to the STDOUT data stream. Stream numbers can optionally specify a different source

A

> >

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

Redirect one data stream to another (e.g., 2>&1redirects both STDOUT and STDERR to the same place).

A

> &

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

Redirect STDIN to come from a file. Not available in PowerShell.

A
17
Q

Redirect STDOUT of one command to STDIN of another command.

A

|