WGU C949 DATA STRUCTURES AND
ALGORITHMS PRACTICE EXAMINATION
2026 QUESTIONS WITH ANSWERS
GRADED A+
◍ A functions whose cost scales linearly with the size of the input.
Answer: O(n)
◍ Iterating over a collection of data once often indicates an ______ algorithm.
(alphabet for-loop example).
Answer: O(n)
◍ A functions whose cost scales logarithmically with the input size.
Answer: O(log n)
◍ Which type of function works by breaking down large problem into smaller
and smaller chunks?.
Answer: O(log n)
◍ As the size of the input grows the cost of the algorithm does not increase at
the same rate. The overall cost of performing an operation on 1,000,000
items is only twice that of performing the operation on 1,000 items..
Answer: O(log n)
◍ A function that exhibits quadratic growth relative to the input size.
Answer: O(n^2)
◍ An example of this type of function is doubly nested loop.
Answer: O(n^2)
◍ Which type of function gets really expensive really quickly?.
Answer: O(n^2)
, ◍ A function that has two inputs that contribute to growth.
Answer: O(nm)
◍ An example of this type of function is when there is a nested loop that
iterates of two distinct collections of data.
Answer: O(nm)
◍ Are Big-O cases used in the best or worst situations?.
Answer: Worst
◍ Which statement is static?readonly Contact[] contacts = new
Contact[];readonly Contact contacts = new Contacts[100];.
Answer: readonly Contact contacts = new Contacts[100];
◍ A container where data is stored in nodes consisting of a single data item
and a reference to the next node.
Answer: Linked List
◍ A ______ is a container where nodes of data are linked together into a list.
Answer: Linked List
◍ Linking together complex nodes into a single structure.
Answer: Linked List
◍ Each link in a chain for a linked lists is called a ______.
Answer: node
◍ What two things do nodes contain?.
Answer: 1. the value2. reference to next item in the list
◍ Give a coded example on how to create a 3 chained linked list of nodes..
Answer: Node head = new Node(1);head.Next = new
Node(2);head.Next.Next = new Node(3);
◍ A list where we start at the first node and follow the chain of nodes iterating
over each until we get to the end.
Answer: Singly Linked List
◍ A list that builds on the singly linked list by adding reverse iteration..
ALGORITHMS PRACTICE EXAMINATION
2026 QUESTIONS WITH ANSWERS
GRADED A+
◍ A functions whose cost scales linearly with the size of the input.
Answer: O(n)
◍ Iterating over a collection of data once often indicates an ______ algorithm.
(alphabet for-loop example).
Answer: O(n)
◍ A functions whose cost scales logarithmically with the input size.
Answer: O(log n)
◍ Which type of function works by breaking down large problem into smaller
and smaller chunks?.
Answer: O(log n)
◍ As the size of the input grows the cost of the algorithm does not increase at
the same rate. The overall cost of performing an operation on 1,000,000
items is only twice that of performing the operation on 1,000 items..
Answer: O(log n)
◍ A function that exhibits quadratic growth relative to the input size.
Answer: O(n^2)
◍ An example of this type of function is doubly nested loop.
Answer: O(n^2)
◍ Which type of function gets really expensive really quickly?.
Answer: O(n^2)
, ◍ A function that has two inputs that contribute to growth.
Answer: O(nm)
◍ An example of this type of function is when there is a nested loop that
iterates of two distinct collections of data.
Answer: O(nm)
◍ Are Big-O cases used in the best or worst situations?.
Answer: Worst
◍ Which statement is static?readonly Contact[] contacts = new
Contact[];readonly Contact contacts = new Contacts[100];.
Answer: readonly Contact contacts = new Contacts[100];
◍ A container where data is stored in nodes consisting of a single data item
and a reference to the next node.
Answer: Linked List
◍ A ______ is a container where nodes of data are linked together into a list.
Answer: Linked List
◍ Linking together complex nodes into a single structure.
Answer: Linked List
◍ Each link in a chain for a linked lists is called a ______.
Answer: node
◍ What two things do nodes contain?.
Answer: 1. the value2. reference to next item in the list
◍ Give a coded example on how to create a 3 chained linked list of nodes..
Answer: Node head = new Node(1);head.Next = new
Node(2);head.Next.Next = new Node(3);
◍ A list where we start at the first node and follow the chain of nodes iterating
over each until we get to the end.
Answer: Singly Linked List
◍ A list that builds on the singly linked list by adding reverse iteration..