DevNet Associate DEVASC 200-901 Official Certification Guide by Adrian Iliesiu (z-lib.org)

(andrew) #1


  1. What is the appropriate way to create a virtual
    environment for Python 3?




  2. python3 -virtual myvenv




  3. python3 virtual myvenv




  4. python3 -m vrt myvenv




  5. python3 -m venv myvenv




  6. What command is used to install Python modules
    from PyPI?




  7. pip load packagename




  8. pip install packagename




  9. python3 -m pip install packagename




  10. python3 -t pip install packagename




  11. What is the standard for indention in Python?




  12. One space for each block of code




  13. Four spaces for each block of code




  14. One tab for each block of code




  15. One tab and one space per block of code




  16. How are comments in Python denoted?




  17. // on each line you want to make a comment




  18. or '" quotation marks encompassing multiline comments




  19. / comment /




  20. @$ comment %@




  21. Which of the following are mutable data types?
    (Choose two.)




  22. Lists




  23. Dictionary




  24. Integers




  25. Tuples




  26. Which of the following would create a dictionary?




  27. a= (" name","chris","age",45)




  28. a= dict()




  29. a= [name, chris, age, 45]




  30. a= {" name":"chris", "age": 45}




  31. What data type does the input() function create
    when assigned to a variable?




  32. List




  33. Raw




  34. String




  35. An auto typed one




  36. Which print statement is valid for Python 3?




  37. print 'hello world'




  38. print('hello world')



Free download pdf