1. Which of the following commands is NOT an example of a method for comparing or reviewing the changes made to a file? Answers git
Category: Google IT Automation With Python

1. Your colleague sent you a patch called fix_names.patch, which fixes a config file called fix_names.conf. What command do you need to run to apply

Using Python To Interact With the Operating System Week 6 Answers
1. Which of the following commands will redirect errors in a script to a file? Answers user@ubuntu:~$ ./calculator.py >> error_file.txt user@ubuntu:~$ ./calculator.py 2> error_file.txt user@ubuntu:~$

Using Python To Interact With the Operating System Week 5 Answers
1. You can verify that software code behaves correctly using test ___. Answers Arguments Cases Loops Functions 2. What is the most basic way of

Using Python To Interact With The Operating System Week 4 Answers
1. Which command will print out the exit value of a script that just ran successfully? Answers wc variables.py echo $? echo $PATH import sys

Using Python To Interact With the Operating System Week 3 Answers
1. When using regular expressions, which of the following expressions uses a reserved character that can represent any single character? Answers re.findall(fu$, text) re.findall(f*n, text)

Using Python To Interact With the Operating System Week 2 Answers
1. The create_python_script function creates a new python script in the current working directory, adds the line of comments to it declared by the ‘comments’ variable,

Using Python to Interact With the Operating System Week 1 Answers
1. Which of the following is the most modern, up-to-date version of Python? Answers Python 3 Python 2 Python 4 Anaconda 2. Which of the

Practice Quiz: Object-oriented Programming (Optional) 1. Let’s test your knowledge of using dot notation to access methods and attributes in an object. Let’s say we

1. Fill in the blanks to complete the is_palindrome function. This function checks if a given string is a palindrome. A palindrome is a string