• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 3 out of 18 pages
Exam (elaborations)

Data Structures Algorithms WGU C Curriculum - Practice-Ready Answer Guide

Document preview thumbnail
Preview 3 out of 18 pages

Data Structures Algorithms WGU C Curriculum - Practice-Ready Answer Guide inserting a new item at the beginning it causes no shift to the data - answer - what is an advantage of a linked list over an array?n N - answer - In the worst case, inserting a new node into a tree with N nodes requires how many comparisons? reference count - answer - A _____________is an integer counter that represents how many variables reference an object. When an object's reference count is 0, that object is no longer referenced. Branching - answer - directs a program to execute either one group of statements or another, depending on the result of an expression. while loop - answer - A ______ executes a block of code as long as the loop's expression is True. print(user_value*5) - answer - The syntax __________ produces a new string, which repeats the value of user_value 5 times. In this case, the value of user_value may be "-", thus the result of the multiplication is "-----". range() - answer - generates a sequence of numbers, starting at zero and ending before a value given inside the parentheses. For example, for i in range(3) sets i to 0 during the first iteration of the for loop, i to 1 during the second iteration, and finally i to 2 on the third iteration. The value within the parentheses is not included in the generated sequence. namespace - answer - A ____________ maps names to objects. The Python interpreter uses namespaces to track all of the objects in a program. object - answer - In a program, an ______ consists of some internal data items plus operations that can be performed on that data. Value: - answer - A ________ such as "20", "abcdef", or 55. min(list) - answer - Find the element in list with the smallest value. sum(list) - answer - Find the sum of all elements of a list (numbers only). (val) - answer - find the index of the first element in list whose value matches val. (val) - answer - Count the number of occurrences of the value val in list. max(list) - answer - Find the element in list with the largest value. name - answer - A ,__________ also called an identifier, is a sequence of letters (a-z, A-Z, _) and digits (0-9), and must start with a letter. Note that "_", called an underscore, is considered to be a letter. type() - answer - built-in function ___________ prints the type of an object. Identity: - answer - A unique identifier that describes the object selection sort - answer - O(n^2) A sort algorithm that repeatedly searches remaining items to find the least one and moves it to its final location. Remove(list, x) - answer - Removes x Remove(list, 77), list: 99 Search(list, x) - answer - Returns item if found, else returns null Search(list, 99), returns item 99Search(list, 22), returns null Print(list) - answer - Prints list's items in orderPrint(list) outputs: 99, 77 Sort(list) - answer - Sorts the lists items in ascending orderlist becomes: 77, 99 IsEmpty(list) - answer - Returns true if list has no items For list 99, 77, IsEmpty(list) returns false GetLength(list) - answer - Returns the number of items in the listGetLength(list) returns 2 record - answer - data structure that stores subitems, with a name associated with each subitem array - answer - a data structure that stores an ordered list of items, with each item is directly accessible by a positional index homogeneous data elements Inserting at the beginning requires making room for the new item. So every current item must be shifted once. linked list - answer - data structure that stores *ordered* list of items in nodes, where each node stores data and has a pointer to the next node; can have multiple subitems No shifting of other items is required, which is an advantage of using linked lists. binary tree - answer - A data structure that consists of nodes, with one root node at the base of the tree, and two nodes (left child and right child) extending from the root, and from each child node can hav


Document information

Uploaded on
November 21, 2026
Number of pages
18
Written in
2026/2027
Type
Exam (elaborations)
Contains
Questions & answers
$15.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

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.
aldrisraand
3.0
(1)
Sold
12
Followers
0
Items
10022
Last sold
5 days ago



Why students choose Stuvia

Created by fellow students, verified by reviews

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

Didn't get what you expected? Choose another document

No worries! You can immediately select a different document that better matches what you need.

Pay how you prefer, start learning right away

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

Student with book image

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

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions

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