WGU C949 Objective Assessment (Latest 2023/ 2024) Data Structures and Algorithms I |Version 1| Questions and Verified Answers| 100% Correct| Grade A
WGU C949 Objective Assessment (Latest
2023/ 2024) Data Structures and Algorithms I
|Version 1| Questions and Verified Answers|
100% Correct| Grade A
Q: Which data type is appropriate for this array to store the given data?
a = ["AF", "71", "BC", "157", "BA", "253"]
Answer:
String
Q: Which data type is appropriate for the given data set?
a = [1, 717, 23, 12, 314, 6]
Answer:
Int
Q: Which data type should be used for this object?
days = { "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"}
Answer:
String
Q: Which data type should be used for this variable?
phoneNum = "212-555-1212"
Answer:
String
Q: What is true about garbage collection?
Answer:
It reclaims memory from data structures implemented using linked allocations.
Q: What is true about a data structure implemented using linked allocation?
Answer:
Storage is allocated using pointers to new locations as needed.
Q: What are the array elements corresponding to the mid-values in the first and second
iterations of a binary search in an array arr = {45, 77, 89, 90, 94, 99, 100} and key = 100?
Answer:
90 and 99
Q: What is the effect on the object Computing regarding garbage collection?
Computing obj = new Computing(); obj = null;
Answer:
It is automatically available for garbage collection.
Q: What are the mid-values in the first and second levels of recursion in this binary search?
int arr = {46, 76, 89, 90, 94, 99, 100} and key = 99
Answer:
90 and 99
Q: Which data set is represented using the dictionary data type?
Answer:
A set of students and their test scores
Q: What is a characteristic of keys in an associative dictionary data type?
Answer:
They are unique and immutable.
Q: Which method can be used to take a value out of a dictionary?
Answer:
D1[key].remove(value)
Q: Given this data dictionary in Python:
dict = {'white':0x0000, 'black':0x1111}
Which command/function generates the output ['white','black']?
Answer:
dict.keys()
Q: Items were added sequentially in this stack starting with 'ham':
'sausage'
'toast'
'eggs'
'ham'
What is the correct order of contents after the push operation is performed with the value
'bacon'?
Category | WGU EXAM |
Comments | 0 |
Rating | |
Sales | 0 |