Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

WGU C949 OBJECTIVE ASSESSMENT 2 LATEST VERSIONS NEWEST 2024 ACTUAL EXAM COMPLETE 150 QUESTIONS AND CORRECT DETAILED ANSWERS

Rating
-
Sold
2
Pages
21
Grade
A+
Uploaded on
17-07-2024
Written in
2023/2024

WGU C949 OBJECTIVE ASSESSMENT 2 LATEST VERSIONS NEWEST 2024 ACTUAL EXAM COMPLETE 150 QUESTIONS AND CORRECT DETAILED ANSWERS

Institution
WGU C949
Course
WGU C949

Content preview

C949 WGU

1. inserting a new what is an advantage of a linked list over an array?n
item at the begin-
ning it causes no
shift to the data

2. N In the worst case, inserting a new node into a tree with N
nodes requires how many comparisons?

3. reference count A _____________is an integer counter that represents
how many variables reference an object. When an ob-
ject's reference count is 0, that object is no longer refer-
enced.

4. Branching directs a program to execute either one group of state-
ments or another, depending on the result of an expres-
sion.

5. while loop A ______ executes a block of code as long as the loop's
expression is True.

6. print(user_val- The syntax __________ produces a new string, which
ue*5) 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 "-----".

7. range() 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.

8. namespace A ____________ maps names to objects. The Python
interpreter uses namespaces to track all of the objects in
a program.

9. object In a program, an ______ consists of some internal data
items plus operations that can be performed on that data.

10. Value: A ________ such as "20", "abcdef", or 55.


, C949 WGU


11. min(list) Find the element in list with the smallest value.

12. sum(list) Find the sum of all elements of a list (numbers only).

13. list.index(val) find the index of the first element in list whose value
matches val.

14. list.count(val) Count the number of occurrences of the value val in list.

15. max(list) Find the element in list with the largest value.

16. name 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.

17. type() built-in function ___________ prints the type of an object.

18. Identity: A unique identifier that describes the object

19. selection sort O(n^2) A sort algorithm that repeatedly searches remain-
ing items to find the least one and moves it to its final
location.

20. Remove(list, x) Removes x Remove(list, 77), list: 99

21. Search(list, x) Returns item if found, else returns null Search(list, 99),
returns item 99Search(list, 22), returns null

22. Print(list) Prints list's items in orderPrint(list) outputs: 99, 77

23. Sort(list) Sorts the lists items in ascending orderlist becomes: 77,
99

24. IsEmpty(list) Returns true if list has no items
For list 99, 77, IsEmpty(list) returns false

25. GetLength(list) Returns the number of items in the listGetLength(list)
returns 2



, C949 WGU

26. record data structure that stores subitems, with a name associ-
ated with each subitem

27. array 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.

28. linked list 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.

29. binary tree 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 have no children, single left or right, or both right and
left

30. hash table data structure that stores *unordered* items by mapping
(or hashing) each item to a location in an array

31. max-heap a tree that maintains the simple property that a node's key
is greater than or equal to the node's childrens' keys

32. min-heap a tree that maintains the simple property that a node's key
is less than or equal to the node's childrens' keys

33. graph data structure for representing connections among items,
and consists of vertices connected by edges

34. vertice part of a graph the represents an item in a graph

35. edge part of a graph that represents a connection between to
vertices in a graph

Written for

Institution
WGU C949
Course
WGU C949

Document information

Uploaded on
July 17, 2024
Number of pages
21
Written in
2023/2024
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$23.49
Get access to the full document:

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

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.
TheAlphanurse Chamberlain College Of Nursing
View profile
Follow You need to be logged in order to follow users or courses
Sold
5772
Member since
2 year
Number of followers
178
Documents
6688
Last sold
3 days ago
The Alpha Nurse

Certainly! The statement emphasizes NursingKnowledge Shop's commitment to providing high-quality, up-to-date resources to support the learning and professional development of individuals in the nursing field.

4.2

376 reviews

5
221
4
85
3
29
2
11
1
30

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

Working on your references?

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

Working on your references?

Frequently asked questions