GIAC GFACT Exam Review Book 2 UPDATED ACTUAL Questions and CORRECT
Answers
script.py
Low level programming language
High level programming language
Version Control System
Repository (Repo)
Commit
Origin
Master
Branches
Master Branch
Dev Branch
Pull request (pr)
, the place where a project lives
a programming language that is
closer to how the proces- sor an incremental change to the repository
thinks and hardware (machine the location of the remote repository
code), are quite diflcult to learn
the name of the default branch in the git repository
(EX. C)
in Git allow you to work on specific features independently,
a language where the code you
without touching the code in master
write is more abstract fromthe
machine code that it produces
Types:
(EX. Python); enables
*The master branch
development of a program in a
*The dev branch
much more user-friendly
programming context the production state of your application.
powerful tools that enable you to the testing state of your application, which would be what
track changes to pro- gramming you test on
projects; enable you to look back allow you to review all the code that would be changed in
at your codeat any point in time in the merge and either approve or reject it.
the past, collaborate with other the filename of the Python program you want to run
developers and merge the work of
many into a working product
Variables
,a way of storing data in programs; the act of assigning a
value where we use the equals (=) operator.
A series of characters (basically, text); are always sur-
String
rounded by quotes
Integer A whole number (could be positive or negative)
Float A number with a decimal point
A True or False value; can be represented as 1 (True) and
Boolean
0 (False)
refers to a type of character that doesn't print anything out,
"Whitespace"
but adds some sort of spacing formatting to the output.
\n character combination tell the program where we want our line breaks
\t character combination can add tabs to our output
can strip whitespace off the left side of a string
lstrip() email = ' '
email.lstrip()
Output: " "
can strip whitespace off the right side of a string
rstrip() email = ' '
email.rstrip()
Output: " "
strip both sides of a string at the same time
strip() email = " "
email.strip()
Output: ""
program will output the result of a string/mathematical
print()
operator
, it rounds decimal numbers up or down, to a given pre-
round() function
ferred decimal place
a list of things stored in a particular order
Lists
(EX. fav_linux_distros = ['Mint', 'Debian', 'Ubuntu']
Python will always return the last item in the list
Index of -1
(EX. print(fav_linux_distros[-1]) )
modified an item from our list to appear in all uppercase
upper() function
(EX. top_fav_distro.upper() )
get a quick count of the things in our list
len() function
(EX. print(len(fav_linux_distros)) )
sorts a list alphabetically
(EX.
fav_linux_distros = ['Mint', 'Debian', 'Ubuntu', 'Manjaro',
'Fedora', 'Arch']
sort() function
fav_linux_distros.sort()
Output: ['Arch', 'Debian', 'Fedora', 'Manjaro', 'Mint',
'Ubuntu'] )
reverse the order of a list
(EX.
fav_linux_distros = ['Mint', 'Debian', 'Ubuntu', 'Manjaro',
'Fedora', 'Arch']
reverse() funtcion
fav_linux_distros.reverse()
Output: ['Ubuntu', 'Mint', 'Manjaro', 'Fedora', 'Debian',
'Arch'] )
allows us to stick items onto the end of a list.
append() function
(EX. travel_bucket_list.append('Toronto') )
insert() fucntion
Answers
script.py
Low level programming language
High level programming language
Version Control System
Repository (Repo)
Commit
Origin
Master
Branches
Master Branch
Dev Branch
Pull request (pr)
, the place where a project lives
a programming language that is
closer to how the proces- sor an incremental change to the repository
thinks and hardware (machine the location of the remote repository
code), are quite diflcult to learn
the name of the default branch in the git repository
(EX. C)
in Git allow you to work on specific features independently,
a language where the code you
without touching the code in master
write is more abstract fromthe
machine code that it produces
Types:
(EX. Python); enables
*The master branch
development of a program in a
*The dev branch
much more user-friendly
programming context the production state of your application.
powerful tools that enable you to the testing state of your application, which would be what
track changes to pro- gramming you test on
projects; enable you to look back allow you to review all the code that would be changed in
at your codeat any point in time in the merge and either approve or reject it.
the past, collaborate with other the filename of the Python program you want to run
developers and merge the work of
many into a working product
Variables
,a way of storing data in programs; the act of assigning a
value where we use the equals (=) operator.
A series of characters (basically, text); are always sur-
String
rounded by quotes
Integer A whole number (could be positive or negative)
Float A number with a decimal point
A True or False value; can be represented as 1 (True) and
Boolean
0 (False)
refers to a type of character that doesn't print anything out,
"Whitespace"
but adds some sort of spacing formatting to the output.
\n character combination tell the program where we want our line breaks
\t character combination can add tabs to our output
can strip whitespace off the left side of a string
lstrip() email = ' '
email.lstrip()
Output: " "
can strip whitespace off the right side of a string
rstrip() email = ' '
email.rstrip()
Output: " "
strip both sides of a string at the same time
strip() email = " "
email.strip()
Output: ""
program will output the result of a string/mathematical
print()
operator
, it rounds decimal numbers up or down, to a given pre-
round() function
ferred decimal place
a list of things stored in a particular order
Lists
(EX. fav_linux_distros = ['Mint', 'Debian', 'Ubuntu']
Python will always return the last item in the list
Index of -1
(EX. print(fav_linux_distros[-1]) )
modified an item from our list to appear in all uppercase
upper() function
(EX. top_fav_distro.upper() )
get a quick count of the things in our list
len() function
(EX. print(len(fav_linux_distros)) )
sorts a list alphabetically
(EX.
fav_linux_distros = ['Mint', 'Debian', 'Ubuntu', 'Manjaro',
'Fedora', 'Arch']
sort() function
fav_linux_distros.sort()
Output: ['Arch', 'Debian', 'Fedora', 'Manjaro', 'Mint',
'Ubuntu'] )
reverse the order of a list
(EX.
fav_linux_distros = ['Mint', 'Debian', 'Ubuntu', 'Manjaro',
'Fedora', 'Arch']
reverse() funtcion
fav_linux_distros.reverse()
Output: ['Ubuntu', 'Mint', 'Manjaro', 'Fedora', 'Debian',
'Arch'] )
allows us to stick items onto the end of a list.
append() function
(EX. travel_bucket_list.append('Toronto') )
insert() fucntion