Spring Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: cramtick70

Foundations-of-Computer-Science WGU Foundations of Computer Science Questions and Answers

Questions 4

How can a user subset a NumPy array bmi to only include values over 23?

Options:

A.

bmi.get_values(>23)

B.

bmi.where(bmi > 23)

C.

bmi.select(23)

D.

bmi[bmi > 23]

Buy Now
Questions 5

What is the name of the tool that can allow a device to run more than one operating system at a time as virtual machines?

Options:

A.

System Restore

B.

Partition Manager

C.

Hypervisor

D.

Bootloader

Buy Now
Questions 6

Which type of sorting algorithm starts at the first position and moves the pointer until the end of the list, determining the lowest value?

Options:

A.

Selection sort

B.

Incremental sort

C.

Progressive sort

D.

Pointer sort

Buy Now
Questions 7

What is the alternative way to access the third element of the first row in np_2d?

Options:

A.

np_2d[1, 3]

B.

np_2d[2, 0]

C.

np_2d[3, 1]

D.

np_2d[0, 2]

Buy Now
Questions 8

What is the layer of programming between the operating system and the hardware that allows the operating system to interact with it in a more independent and generalized manner?

Options:

A.

The hardware abstraction layer

B.

The boot loader layer

C.

The task scheduler layer

D.

The file system layer

Buy Now
Questions 9

What is another term for the inputs into a function?

Options:

A.

Variables

B.

Procedures

C.

Outputs

D.

Arguments

Buy Now
Questions 10

What is the time complexity of a quicksort algorithm?

Options:

A.

O(n)

B.

O(n log n)

C.

O(log n)

D.

O(1)

Buy Now
Questions 11

What is the likely cause if a default Python configuration does not recognize a NumPy array as an allowed data structure?

Options:

A.

The NumPy package is not present.

B.

The array module is not imported.

C.

The Python interpreter is misconfigured.

D.

The Python version is outdated.

Buy Now
Questions 12

What is the expected result of running the following code: list1[0] = "California"?

Options:

A.

A new list will be created with the value "California".

B.

The first value in the list will be replaced with "California".

C.

The list will be extended by adding "California" at the end.

D.

A second element will be added to the line "California".

Buy Now
Questions 13

Which method converts the default smallest-to-largest index order of a list to instead be the opposite?

Options:

A.

reverse()

B.

sortDescending()

C.

flip()

D.

invert()

Buy Now
Questions 14

What is traversal in the context of trees and graphs?

Options:

A.

The process of changing the value of nodes

B.

The process of removing all nodes

C.

The process of connecting all nodes

D.

The process of visiting all nodes

Buy Now
Questions 15

What stores the location of the next node in a linked list?

Options:

A.

The pointer

B.

The index

C.

The value

D.

The header

Buy Now
Questions 16

What happens if one element of a NumPy array is changed to a string?

Options:

A.

All elements in the array are coerced to strings.

B.

The operation is not allowed and raises an error.

C.

All elements in the array are coerced to integers.

D.

The array becomes a list of the original integers.

Buy Now
Questions 17

What are Python functions that belong to specific Python objects?

Options:

A.

Modules

B.

Methods

C.

Scripts

D.

Libraries

Buy Now
Questions 18

What is the output of print(employees[3]) when employees = ["Anika", "Omar", "Li", "Alex"]?

Options:

A.

"Omar"

B.

"Alex"

C.

"Anika"

D.

"Li"

Buy Now
Questions 19

What is the component of the operating system that manages core system resources but allows no user access?

Options:

A.

The kernel

B.

The File Explorer

C.

User interface layer

D.

Device driver manager

Buy Now
Questions 20

Which action is taken if the first number is the lowest value in a selection sort?

Options:

A.

The first number is increased by one.

B.

The first number is duplicated.

C.

It swaps the selected element with the last unsorted element.

D.

It swaps the selected element with the first unsorted element.

Buy Now
Questions 21

What is the built-in data structure that implements a hash table in Python?

Options:

A.

Tuple

B.

List

C.

Array

D.

Dictionary

Buy Now
Exam Name: WGU Foundations of Computer Science
Last Update: Feb 28, 2026
Questions: 70
Foundations-of-Computer-Science pdf

Foundations-of-Computer-Science PDF

$25.5  $84.99
Foundations-of-Computer-Science Engine

Foundations-of-Computer-Science Testing Engine

$30  $99.99
Foundations-of-Computer-Science PDF + Engine

Foundations-of-Computer-Science PDF + Testing Engine

$40.5  $134.99