BPA - PYTHON Mock Test Review

  1. Which of the following is correct about Python?




    D. All of the above
  2. Which of the following is correct about Python?




    D. All of the above
  3. Which of the following is correct about Python?




    C. Both of the above
  4. Which of the following environment variable for Python tells the Python interpreter where to locate the modules files imported into a program?




    A. PYTHONPATH
  5. Which of the following environment variable for Python contains the path of an initialization file containing Python source code?




    B. PYTHONSTARTUP
  6. Which of the following environment variable for Python is used in Windows to instruct Python to find the first case-insensitive match in an import statement?




    C. PYTHONCASEOK
  7. Which of the following environment variable for Python is an alternative module search plan?




    C. PYTHONHOME
  8. Is python a case sensitive language?

    A. true
    B. false
    A. true
  9. Which of the following data types is not supported in python?




    D. Slice
  10. Which of the following data types is not supported in python?




    B. Generics
  11. What is the output of print str if str = 'Hello World'?




    A. Hello World!
  12. What is the output of print str[0] if str = 'Hello World!'?




    B. H
  13. What is the output of print str[2:5] if str = 'Hello World!'?




    C. llo
  14. What is the output of print str[2:] if str = 'Hello World!'?




    A. llo World!
  15. What is the output of print str * 2 if str = 'Hello World!'?




    A. Hello World!Hello World!
  16. What is the output of print if list = ['abc
Author
jdavis123
ID
358951
Card Set
BPA - PYTHON Mock Test Review
Description
Updated