Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CS2021 Quiz for Week 3
- What are the two ways to run python?
- What is a REPL?
- What is a python module?
- In a module what is the purpose of an if statement
- if __name__ == '__main__’:
- Where do we find the search path for modules?
- How do you find all the names defined by a module?
- What is a package?
- How do you find a description of package contents?
- How do you change the working directory in program?
- How do you change the search path in program?
- When python detects an error, what is the Traceback that is printed?
- What is an assert statement and how can it be used to debug program?
- What is the difference between absolute and relative filenames?
- Is “../lectures/file_io.pptx” a relative or absolute filename?
- T/F
- If you open a file for writing it destroys the existing contents?
- T/F
- A file that is opened can be read multiple times?
- T/F
- An absolute filename is better choice since it does not depend on current directory?
Add Comment
Please, Sign In to add comment