100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

WGU C949 Data Types STUDY GUIDE| Data Structures & Algorithms 1- Qs & As

Rating
-
Sold
-
Pages
11
Grade
A+
Uploaded on
23-10-2024
Written in
2024/2025

WGU C949 Data Types STUDY GUIDE| Data Structures & Algorithms 1- Qs & As

Institution
WGU C949
Course
WGU C949









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
WGU C949
Course
WGU C949

Document information

Uploaded on
October 23, 2024
Number of pages
11
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

WGU C949 Data Types STUDY GUIDE| Data Structures &
Algorithms 1- Qs & As

Linked List CORRECT ANS-A linear data structure, much like an array, that consists of
nodes, where each node contains data as well as a link to the next node, but that does not
use contiguous memory.
Head and tail node


The LinkedList class implements the list data structure and contains two data members, head
and tail, which are assigned to nodes once the list is populated. Initially the list has no nodes,
so both data members are initially assigned with None.


If the node has no next node, the next data member is assigned with None, the Python term
signifying the absence of a value.



Deque CORRECT ANS-Short for double-ended queue- an ADT in which items can be
inserted and removed at both the front and back.


Underlying data structures: Linked list



Bag CORRECT ANS-An ADT for storing items in which the order does not matter and
duplicate items are allowed.


Underlying data structures: Linked list, Array



Set CORRECT ANS-An ADT for a collection of distinct items. (no dups!)


Underlying data structures: Binary search tree, Hash table



Priority queue CORRECT ANS-A queue where each item has a priority, and items with
higher priority are closer to the front of the queue than items with lower priority. Dups ok

, WGU C949 Data Types STUDY GUIDE| Data Structures &
Algorithms 1- Qs & As

Underlying data structures: Heap


*In addition to push and pop, a priority queue usually supports peeking and length querying.
A peek operation returns the highest priority item, without removing the item from the front
of the queue.
Pop returns front or head item which is top priority item



Dictionary (Map) CORRECT ANS-A dictionary is an ADT that associates (or maps) keys with
values.


Underlying data structures: Binary search tree, Hash table



Dictionary key characteristic CORRECT ANS-They are unique and immutable.



Dictionary method CORRECT ANS-D1[key].remove(value)



dict.items() CORRECT ANS-returns a view object that yields (key, value) tuples.



dict.keys() CORRECT ANS-returns a view object that yields dictionary keys.



dict.values() CORRECT ANS-returns a view object that yields dictionary values.



Dict for loop CORRECT ANS-A for loop over a dict retrieves each key in the dict.
ie.. for key in dictionary:



dict operations CORRECT ANS-my_dict[key]

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
TheeGrades NEWCASTLE UNIVERSITY
View profile
Follow You need to be logged in order to follow users or courses
Sold
97
Member since
1 year
Number of followers
5
Documents
12923
Last sold
2 weeks ago
THEEGRADES

Ace Your Exams with Premium Study Guides! Unlock your full potential with our expertly crafted revision materials. Whether you're prepping for exams, quizzes, or looking to solidify your understanding, we've got you covered. Our study guides, summaries, and test banks are designed to simplify complex topics and enhance your knowledge retention. What We Offer: Comprehensive Summaries: Key points made easy for quick revision. Test Banks: Practice with real exam-like questions. Exam Prep Guides: Focused content to boost your scores. Instant Access: Download and start studying immediately! Don’t just study harder—study smarter! Excel in your exams with our trusted materials. You are Welcome. SUCCESS!!!

Read more Read less
3.3

24 reviews

5
9
4
4
3
3
2
1
1
7

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions