02 Flashcards
what data types aren’t available with BASH. Python, and PowerShell/?
only strings, no characters, it has everything
An ________ is zero-based index
array
what does python call arrays?
lists
An ______ is known as an instance of a class
when do these exist?
object
not until the programmer instatiates them
An _______is a blueprint that contains the abstract details of a thing
classes are defined in a ______
class
file
___________ provides a means to access the data and methods of an object
dot notation
__________ is a method of temporarily changing a value from one data type to another to ensure a variable is processed correctly
typecasting
__________________ defines where a variable is accessible and how long its value is available.
variable scope
A________ is a named section of a script that performs a specific task
function
What does each return statement do?
return
return total
return 3.14
returns no value
reutns the value of the created method called sum
returns the value of 3.14
- all of these are reutned to wherer the function was originally called
___________ commonly refers to directing input and output to files and devices other than default input/output (I/O) devices
What is the stream number for each of these data streams?
STDIN
STDOUT
STDERR
What do these redirection symbols mean?
>&
<
redirection
STDIN 0
STDOUT 1
STDERR 2
redirects two separate data streams to the same place STDIN + STDERR in one file
Reads a file
____________ are strings that describe data or data patterns for which a user wishes to search
Regular expressions
What does each regx meta character do?
[ ]
{ }
*
?
^ (^been)
$
.
( )
|
[ ] matches only one out of a list
{ } lets me specify the number of what was prevously entered to search for
- indicates one or more of an item
? tells zero or one of the previous token
^(^been) if the carat is on the outside of a parenthesis its searching something that begins with the value inside, if its inside then saying these variables are not allowed
$ no data comes after
. wild card search for any character
creates a group of objects
is an or statement
/d
/w
/W
/s
/S
what does these mean
{0,6}
{1.}
{1,10)
any number 0-9
any lower case characters
any uppercase characters
any whitespace charcter
any non-whitespace character
zero to 6 string length
minumum of one character or more
minimum of one charcter maximum of ten
Using ______________ data matched in a group may also be repeated in an expression
back references