WGU C949 Pre-assessment FREQUENTLY TESTED QUESTIONS WITH CORRECT ANSWERS | BRAND NEW!

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/69

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 2:34 PM on 6/19/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

70 Terms

1
New cards

Which term refers to a template for creating an object?

Class

2
New cards

Which characteristic of an algorithm is independent in nature?

Uses an agnostic code repository

3
New cards

What is referred to as a data structure that stores subitems?

Record

4
New cards

Which factor takes the ability to easily update an algorithm into consideration?

Maintainability

5
New cards

What is a component of an algorithm that specifies a stopping point?

Finiteness

6
New cards

Which term refers to a type of search algorithm?

Linear

7
New cards

What is a high-level consideration in an algorithm's design?

Simplicity

8
New cards

What is the primary method used to search for an item in a sorted array?

Binary Search

9
New cards

Which review of an algorithm happens after implementation?

A posteriori analysis

10
New cards

Which factor helps measure the reusability of an algorithm?

Extensibility

11
New cards

Which search algorithm utilizes the divide-and-conquer strategy?

Binary search

12
New cards

Which algorithm requires data sorting as its first step?

Binary

13
New cards

What does a time complexity analysis of an algorithm include?

Worst case

14
New cards

Which data type do heap sorts work with?

Tree-based data structure

15
New cards

Which function is used in conjunction with a merge sort algorithm?

Recursive

16
New cards

Which attribute of a recursive function makes it unique?

Calls itself

17
New cards

What is x in the following block of logic?

x = 28

if x >= 10 and x < 20

x = 20

elif x <= 30

x = 25

elif x >= 50

x = 100

else

x = 500

25

18
New cards

What is an if statement inside of an if statement referred to as?

Nested

19
New cards

Which search algorithm functions by continually dividing the data set in half until the sought item is found or the data set is exhausted?

Binary Search

20
New cards

Which search algorithm has the best performance when the data set is sorted?

Interval Search

ex: Binary Search

21
New cards

Which term describes a way of organizing, storing, and performing operations on data?

Data Structure

22
New cards

Which data structure is used to implement a dictionary data type?

Hash Table

23
New cards

Which element refers to the numeric positions in a list abstract data type (ADT)?

Indexes

24
New cards

Which characteristic of a class allows it to be used as an abstract data type (ADT)?

It consists of variables & methods

25
New cards

What is the result when 6 is enqueued to the queue 7,9,8 (with 7 as the front)?

7, 9, 8, 6

enqueued adds to end

26
New cards

Which value would be returned from executing the dequeue operation on the queue 7,9,8 (with 7 as the front)?

7

dequeued removes the front value

27
New cards

Which queue results from executing the following queue operations on the queue 7,9,8 (with 7 as the front)?

Dequeue ()

Enqueue (6)

Enqueue (5)

Dequeue ()

8, 6, 5

28
New cards

What will be the new state of the queue 7,9,8 (with 7 as the front) after the enqueue (3) operation?

7, 9, 8, 3

29
New cards

Which format is used to store data in a hash table?

Array

30
New cards

Which term refers to a data structure that groups related items of data together?

Record

31
New cards

Which data structure is used to store unordered items by mapping each item to a location in an array?

Hash Table

32
New cards

What is the advantage that a linked list has over an array?

Grows and shrinks as needed

33
New cards

What would be the best data structure for a hash table with simple chaining?

A doubly linked list

34
New cards

How many leaf nodes does this tree have?

Anne

Peter Zara

Savannah

2

Savannah & Zara

both have no children

35
New cards

What is the root node for this tree?

Anne

Peter Zara

Savannah

Anne

36
New cards

What is the height of this tree?

Anne

Peter Zara

Savannah

Two

37
New cards

Which data structure is the most dynamic in storing data items of varying lengths?

List

38
New cards

What is the resulting stack when the push(1) function is implemented on this stack yield?

8,9,3,5(top is 8)

1, 8, 9, 3, 5

push() inserts to the front

39
New cards

What will the peek() operation from this stack return?

8,9,3,5(top is 8)

8

peek() returns front value & doesn't remove

40
New cards

What is the set that results from set1 intersection set2, given these sets?

set1 = {69,82,47}

set2 = {11,82}

82

intersection -- compares the sets and returns the common number(s) in both sets

union -- puts both sets together but doesn't duplicate numbers

difference -- setX\setY returns every element in set X that is not in set Y

41
New cards

How many vertices does this graph have?

0 ---- 1 ----- 2

-

-

4 ---- 3 ----

Five

42
New cards

What is the adjacency list for node 8 in this graph?

7, 9, 3

43
New cards

What is the order of these functions by growth rate?

2/N, 37, 2^N, N log(N^2), N^2

2/N < 37< N log(N^2) < N^2 < 2^N

44
New cards

How many elements will be compared to linear search for 27 in this list?

[9,3,7,2,8,15,13,35,95,7,4]

11

whole list

45
New cards

What is the first element visited in this list when binary searching for the number 7?

[6,7,8,9,11,15,20]

9

middle value

(low/2) + (high/2)

46
New cards

How many elements in a list of size 64 would be visited when using a binary search for a number that is larger than all the values in the list?

6

47
New cards

How many elements in a list of size 64 would be visited when using a binary search for a number that is smaller than all the values in the list?

6

48
New cards

What is the runtime complexity of the algorithm O(N^N + 1)?

Exponential

49
New cards

What is the runtime complexity for the expression 305 + O(325*N)?

O(N)

50
New cards

What is the runtime complexity for this code?

for x in range(N):

for y in range(N):

for z in range(N):

tot = tot + zprint tot

O(N)

51
New cards

Which term describes an abstract data type (ADT) that Python uses?

Array

52
New cards

Which abstract data type (ADT) is characterized by the LIFO (last in, first out) principle?

Stack

stack has one end, points to the topmost elements

53
New cards

Which queue operation removes an item from the front of the queue?

dequeued removes the front value

enqueued adds to end

54
New cards

Which function in Python returns the number of times the desired value is found in a tuple?

count()

55
New cards

Which function in Python is used to find a specific value in a tuple?

index()

56
New cards

Which Python list function will remove all items from a list?

clear()

57
New cards

Which abstract data type (ADT) allows operations at one end only?

Stack

58
New cards

Which Python list function removes the first instance of the specified element?

remove()

59
New cards

How does the insertion sort algorithm sort through a list?

By iterating through the sorted list while placing each value into its correct sorted position within the list

60
New cards

What is the average runtime complexity of the merge sort algorithm?

O(N * log(N))

61
New cards

What is the midpoint given the quicksort on this list? Consider the lowindex = 5 and highindex = 9.

(43,3,72,18,2,28,51,111,66,71)

7

(5/2) + (9/2) = 7

62
New cards

What is the pivot point given the quicksort on this list? Consider the lowindex = 5 and highindex = 9.

(43,3,72,18,2,28,51,111,66,71)

111

index 7

63
New cards

Which tool in Python is used to implement a deque ADT?

Collections

containers used for storing data

64
New cards

Which function in Python is used to delete one item on the right side of the deque?

pop()

65
New cards

Which function determines that a linked list contains no data?

isEmpty()

returns true or false

66
New cards

What are classes composed of that perform the actions of an application?

Methods

defines the behaviors & actions of objects in a class

67
New cards

Which loop type will always be done at least once?

Do While

a while loop may never execute

68
New cards

How would a strongly typed language create an integer variable?

int myVar

69
New cards

Which component of a case statement would be considered a fall back in case no other parameters are met?

default

70
New cards

Which operator is a type of assignment operator?

+=

== compares values

+ adds values