- | Page
WGU D522: PYTHON FOR IT
AUTOMATION|(SKO1) ST UDY
TIPS;(100% GUARANTEED
SUCCESS)
Question : What are the traits of Imperative/procedural
programming?
Correct answer: Focuses on describing a sequence of
steps to perform a task
Question : What are the traits of Object-Oriented
Programming (OOP)?
Correct answer: Organize code around objects, which
encapsulate data and behavior.
Question : What are the traits of Functional
Programming?
Correct answer: emphasizes the use of functions and
immutable data for computation.
- | Page
Question : What are the traits of Declarative
Programming?
Correct answer: describes what the program should
accomplish without specifying how to achieve it.
Question : What are the traits of Event-Driven
Programming?
Correct answer: Reacts to events and user actions,
triggering corresponding functions.
Question : What are the traits of Logic Programming?
Correct answer: defines a set of logical conditions and lets
the system deduce solutions.
Question : What does Python syntax refer to?
Correct answer: The set of rules that dictate the
combinations of symbols and keywords that form valid Python programs
Question : What is the purpose of indentation in Python?
- | Page
Correct answer: To define blocks of code
Question : Why might a programmer use comments for
'Preventing Execution'?
Correct answer: To temporarily disable lines or blocks of
code
Question : What is the primary use of whitespace in
Python?
Correct answer: To define the structure and hierarchy of
the code
Question : What does Python use to define the scope of
control flow statements and structures like functions and classes?
Correct answer: Indentation
Question : What is the purpose of the input() function in
Python?
- | Page
Correct answer: To capture user input and store it as a
string
Question : What does the format() method do in Python?
Correct answer: It enhances output formatting by
embedding variables in strings. (although 'f' strings are easier to read)
Question : What is the purpose of the Code Editor in a
Python IDE?
Correct answer: To provide a text editor designed for
Python, offering features like syntax highlighting, code completion, and indentation.
Question : What does this built in Python function do?: print()
Correct answer: outputs text or variables to the console
Question : What does this built in Python function do?: input()