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

WGU Foundations-of-Computer-Science WGU Foundations of Computer Science Exam Practice Test

WGU Foundations of Computer Science Questions and Answers

Question 1

What is the correct way to represent a boolean value in Python?

Options:

A.

"True"

B.

"true"

C.

True

D.

true

Question 2

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

Question 3

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

Question 4

Which statement describes the data type restriction found in most NumPy arrays?

Options:

A.

NumPy arrays are restricted to string data types only.

B.

NumPy arrays must be of the same type of data.

C.

NumPy arrays can only hold integer data types.

D.

NumPy arrays adapt to the most complex data type on the fly.

Question 5

What is the slicing outcome of client_locations[1:3] from client_locations = ["TX", "AZ", "UT", "NY"]?

Options:

A.

["TX", "AZ"]

B.

["AZ", "UT"]

C.

["UT", "NY"]

D.

["TX", "UT"]

Question 6

Which file system is commonly used in Windows and supports file permissions?

Options:

A.

NTFS

B.

FAT32

C.

HFS+

D.

EXT4

Question 7

What is another term for the inputs into a function?

Options:

A.

Variables

B.

Procedures

C.

Outputs

D.

Arguments

Question 8

Which Python function is used to display the data type of a given variable?

Options:

A.

type()

B.

GetVar()

C.

Show()

D.

Data()

Question 9

How is a NumPy array named data with 6 elements reshaped into a 2x3 array?

Options:

A.

np.reshape(data, (2, 3))

B.

np_reshape(list, (2, 3))

C.

data.set_shape(2, 3)

D.

data_reshape[2, 3]

Question 10

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

Question 11

Which is the most powerful command line interface on Windows systems?

Options:

A.

Task Manager

B.

Command Prompt

C.

Control Panel

D.

PowerShell

Question 12

Which Python function would be used to check the data type of a variable bmi?

Options:

A.

check(bmi)

B.

datatype(bmi)

C.

typeof(bmi)

D.

type(bmi)

Question 13

What is the expected output of calling .shape on a NumPy 2D array?

Options:

A.

The type of elements in the array

B.

The number of rows and columns in the 2D array

C.

The sum of the dimensions of the array

D.

The total number of elements in the array

Question 14

Which principle can be used to implement an algorithm to calculate factorial or Fibonacci sequence?

Options:

A.

Procedural programming

B.

Iterative programming

C.

Recursion programming

D.

Object-oriented programming

Question 15

Which character is used to indicate a range of values to be sliced into a new list?

Options:

A.

","

B.

"+"

C.

"="

D.

":"

Question 16

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

Question 17

Which Python command can be used to display the results of calculations?

Options:

A.

print()

B.

compute()

C.

result()

D.

solve()

Question 18

What is the purpose of the pointer element of each node in a linked list?

Options:

A.

To keep track of the list size

B.

To store the data value

C.

To indicate the next node

D.

To indicate the current position

Question 19

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

Question 20

What type of encryption is provided by encryption utilities built into the file system?

Options:

A.

Encryption in motion

B.

Encryption authentication

C.

Encryption at rest

D.

Encryption steganography

Question 21

Which aspect is excluded from a NumPy array’s structure?

Options:

A.

The data pointer

B.

The shape of the array

C.

The data type or dtype pointer

D.

The encryption key of the array