Spring Sale Discount Flat 70% Offer - Ends in 0d 00h 00m 00s - Coupon code: 70diswrap

WGU Foundations-of-Computer-Science Dumps

WGU Foundations of Computer Science Questions and Answers

Question 1

Which method allows a user to convert a string value to all capital letters in Python?

Options:

A.

toUpperCase()

B.

makeUpper()

C.

upper()

D.

upperCase()

Question 2

Which sorting algorithm works by finding the smallest or largest element in an unsorted part of a list and moving it to the sorted part of the list?

Options:

A.

Radix sort

B.

Heap sort

C.

Quicksort

D.

Selection sort

Question 3

Which brand of Type 1 hypervisor is commonly used to create virtual machines?

Options:

A.

VMware ESXi

B.

Parallels Desktop

C.

VirtualBox

D.

VMware Workstation

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

Which order is impossible when traversing a binary tree using depth first search?

Options:

A.

Level-order traversal

B.

Pre-order traversal

C.

Post-order traversal

D.

In-order traversal

Question 6

Which Windows 11 tool enables a user to manually add a Bluetooth device if it does not automatically configure when first connected?

Options:

A.

Network center

B.

Task scheduler

C.

Windows defender

D.

Device manager

Question 7

How is the NumPy package imported into a Python session?

Options:

A.

import num_py

B.

import numpy as np

C.

using numpy

D.

include numpy

Question 8

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

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

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.

Question 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.

Question 12

What will the expression fam[3:6] return?

Options:

A.

A list with elements at index 4, 5, and 6

B.

A list with elements at index 3, 4, 5, and 6

C.

A list with elements at index 3, 4, and 5

D.

A list with elements at index 6

Question 13

Which protocol provides encryption while email messages are in transit?

Options:

A.

FTP

B.

HTTP

C.

TLS

D.

IMAP

Question 14

Which statement describes the relationship between trees and graphs?

Options:

A.

Trees do not have levels.

B.

Trees can have cycles.

C.

Trees can have unconnected nodes.

D.

Trees cannot have cycles.

Question 15

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 16

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]

Question 17

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

Options:

A.

Tuple

B.

List

C.

Array

D.

Dictionary

Question 18

What is an ndarray in Python?

Options:

A.

A built-in Python data array used to store collections of items.

B.

A native Python object that represents a tree-like hierarchical data structure.

C.

An n-dimensional array object provided by the NumPy library.

D.

A module that provides network socket functions similar to XML.

Question 19

What is a correct call to the linear search defined as def linear_search(customersList, search_value): ?

Options:

A.

find_linear(customersList)

B.

print(linear_search(customersList, search_value))

C.

linear_search()(customersList)

D.

search_linear(customersList, search_value)

Question 20

What is a key advantage of using NumPy when handling large datasets?

Options:

A.

Built-in machine learning algorithms

B.

Automatic data cleaning

C.

Efficient storage and computation

D.

Interactive visualizations

Question 21

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

Page: 1 / 7
Total 70 questions