9/11/26, 9:13 WGU D522 (Python) |
PM Quizlet
WGU D522 (Python) Questions with Correct Answers
Correct 44
100%
Incorrect 00
1 of 44
Term
What does a 'while' loop do?
Give this one a try later!
Iterates through a list of items one
by one Skips the current iteration of a loop
Repeats code over and over Executes a block of code
as long as the condition is exactly once
true
Don't know?
2 of 44
1/26
,9/11/26, 9:13 WGU D522 (Python) |
PM Quizlet
Term
What data structure do the brackets indicate in the following example?
devices = {"router": "router01", "switch": "switch01"}
Give this one a try later!
A Dictionary A Translator
A Phone Number A Shopping List
Don't know?
3 of 44
Term
Which data structure fits the requirements the best?
EX: Unique Values, No Duplicates, Unordered, No Indexing,
Membership Testing, Remove Duplicates Automatically, Mathematical
Operations
Give this one a try later!
Bag Table
Set Write
2/26
, 9/11/26, 9:13 WGU D522 (Python) |
PM Quizlet
Don't know?
4 of 44
Term
What do parenthesis do in an f-string?
Give this one a try later!
Checks if string has only digits Checks if string is only letters
Marks start and end Writes data to a file
Don't know?
5 of 44
Term
What does read() do?
Give this one a try later!
Closes an open file connection Writes data to a file
3/26
PM Quizlet
WGU D522 (Python) Questions with Correct Answers
Correct 44
100%
Incorrect 00
1 of 44
Term
What does a 'while' loop do?
Give this one a try later!
Iterates through a list of items one
by one Skips the current iteration of a loop
Repeats code over and over Executes a block of code
as long as the condition is exactly once
true
Don't know?
2 of 44
1/26
,9/11/26, 9:13 WGU D522 (Python) |
PM Quizlet
Term
What data structure do the brackets indicate in the following example?
devices = {"router": "router01", "switch": "switch01"}
Give this one a try later!
A Dictionary A Translator
A Phone Number A Shopping List
Don't know?
3 of 44
Term
Which data structure fits the requirements the best?
EX: Unique Values, No Duplicates, Unordered, No Indexing,
Membership Testing, Remove Duplicates Automatically, Mathematical
Operations
Give this one a try later!
Bag Table
Set Write
2/26
, 9/11/26, 9:13 WGU D522 (Python) |
PM Quizlet
Don't know?
4 of 44
Term
What do parenthesis do in an f-string?
Give this one a try later!
Checks if string has only digits Checks if string is only letters
Marks start and end Writes data to a file
Don't know?
5 of 44
Term
What does read() do?
Give this one a try later!
Closes an open file connection Writes data to a file
3/26