IT 117: Intermediate Scripting
Class 10 Ungraded Quiz
-
What is the name of the module that allows you to interact with the operating system?
-
Write the Python expression you would use to get the pathname of your current directory.
-
Write the Python expression you would use to get a list of all entries in your current directory.
-
Write the Python statement you would use to change your current directory to your parent directory.
-
Write the Python expression you would use to get the value of your PATH variable.
-
Write the Python statement you would use to run the executable file work.sh
located in your current directory.
-
What is the name of the module that allows you to interact with the Python interpreter?
-
Write the Python expression that gives the value of the pathname used to run the script.
-
Write the Python expression that gives the value of the first command line argument.
-
Write the Python statement you would use to stop execution of a script.