WGU D522 PYTHON FOR IT AUTOMATION |PA| PRE-
ASSESSMENT| MULTIPLE CHOICE EXAM
Correct 39
Incorrect 00
Term
set
, 2 of 39
Term
Based on the Python list:
numbers = [10, 20, 30, 40]
What is the index position of the element "40"?
Give this one a try later!
numbers[1] numbers[3]
numbers[4] numbers[2]
Don't know?
3 of 39
Term
What is the output of the following code?
print(“Hello” + “World”)
Give this one a try later!
HelloWorld Hello World
, Don't know?
4 of 39
Term
What will be the result of this Python code?
fruits = [‘apple’, ‘banana’, ‘cherry’]
print(fruits[-1])
Give this one a try later!
cherry IndexError
banana apple
Don't know?
5 of 39
Term
Based on the Python snippet:
devices = ["router01", "switch01", "modem01", "gateway01", "printer01"]
Which data structure is being used to store the names for various
types of devices within devices?
Give this one a try later!
ASSESSMENT| MULTIPLE CHOICE EXAM
Correct 39
Incorrect 00
Term
set
, 2 of 39
Term
Based on the Python list:
numbers = [10, 20, 30, 40]
What is the index position of the element "40"?
Give this one a try later!
numbers[1] numbers[3]
numbers[4] numbers[2]
Don't know?
3 of 39
Term
What is the output of the following code?
print(“Hello” + “World”)
Give this one a try later!
HelloWorld Hello World
, Don't know?
4 of 39
Term
What will be the result of this Python code?
fruits = [‘apple’, ‘banana’, ‘cherry’]
print(fruits[-1])
Give this one a try later!
cherry IndexError
banana apple
Don't know?
5 of 39
Term
Based on the Python snippet:
devices = ["router01", "switch01", "modem01", "gateway01", "printer01"]
Which data structure is being used to store the names for various
types of devices within devices?
Give this one a try later!