IT 117: Intermediate Scripting
Class 10 Ungraded Quiz

  1. What is the name of the module that allows you to interact with the operating system?


  2. Write the Python expression you would use to get the pathname of your current directory.


  3. Write the Python expression you would use to get a list of all entries in your current directory.


  4. Write the Python statement you would use to change your current directory to your parent directory.


  5. Write the Python expression you would use to get the value of your PATH variable.


  6. Write the Python statement you would use to run the executable file work.sh located in your current directory.


  7. What is the name of the module that allows you to interact with the Python interpreter?


  8. Write the Python expression that gives the value of the pathname used to run the script.


  9. Write the Python expression that gives the value of the first command line argument.


  10. Write the Python statement you would use to stop execution of a script.