WGU C949 DATA STRUCTURES AND
ALGORITHMS FINAL PAPER QUESTIONS
AND SOLUTIONS
◉ __init__
Answer: instantiation of a class automatically calls this method
defined in the class def
this is also known as the constructor
◉ memory allocation
Answer: the process of an app req and being granted memory
◉ garbage collection
Answer: reference count is an integer count that reps how many
vars ref an obj;
when an obj ref count = 0 the obj is no longer referenced and is
sent here
◉ ternary
Answer: type of operation condition ? (T)Block1: (F)Block2
◉ assignment
, Answer: type of operation for setting a var
◉ comparison
Answer: type of operation for comparing data <, > ...
◉ equality
Answer: type of operation == !==
◉ short
Answer: data type
◉ long
Answer: data type
◉ linked allocation
Answer: A data structured contains the name, size, and starting
block/cluster address of a file. A table is used to identify the
address of each piece of the file.
Storage is allocated using pointers to new locations as needed.
◉ mid-values
Answer:
ALGORITHMS FINAL PAPER QUESTIONS
AND SOLUTIONS
◉ __init__
Answer: instantiation of a class automatically calls this method
defined in the class def
this is also known as the constructor
◉ memory allocation
Answer: the process of an app req and being granted memory
◉ garbage collection
Answer: reference count is an integer count that reps how many
vars ref an obj;
when an obj ref count = 0 the obj is no longer referenced and is
sent here
◉ ternary
Answer: type of operation condition ? (T)Block1: (F)Block2
◉ assignment
, Answer: type of operation for setting a var
◉ comparison
Answer: type of operation for comparing data <, > ...
◉ equality
Answer: type of operation == !==
◉ short
Answer: data type
◉ long
Answer: data type
◉ linked allocation
Answer: A data structured contains the name, size, and starting
block/cluster address of a file. A table is used to identify the
address of each piece of the file.
Storage is allocated using pointers to new locations as needed.
◉ mid-values
Answer: