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

(andrew) #1


  1. Which of the following is a valid Python function
    name?




  2. 1function




  3. init




  4. True




  5. Funct1on




  6. When three single quotation marks are used on the
    next line directly after defining a function, what does
    this indicate?




  7. Multi-line text




  8. A docstring




  9. A string value including double or single quotation marks




  10. None of the above




  11. What are key components of object-oriented
    programming in Python? (Choose two.)




  12. Functions that can be performed on a data structure




  13. Attributes that are stored in an object




  14. Configuration templates




  15. YAML files




  16. Which of the following are benefits of OOP?
    (Choose all that apply.)




  17. Reusable code




  18. Easy to follow




  19. Low coupling/high cohesion




  20. Complex integration




  21. Which of the following are used to define a class in
    Python? (Choose two.)




  22. class classname(parent):




  23. class classname:




  24. def class classname(arg):




  25. None of the above




  26. What is a method?




  27. A variable applied to a class




  28. Syntax notation




  29. A function within a class or an object




  30. Something that is not used in a class




  31. Which of the following describes inheritance?




  32. A hierarchy for functions in Python




  33. Class attributes and methods used as the starting point for another
    class




  34. A function only applied to methods being used in another class




  35. None of the above



Free download pdf