Pre-Summer Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code = simple70

Pass the WGU Courses and Certificates Foundations-of-Computer-Science Questions and answers with Dumpstech

Exam Foundations-of-Computer-Science Premium Access

View all detail and faqs for the Foundations-of-Computer-Science exam

Practice at least 50% of the questions to maximize your chances of passing.
Viewing page 1 out of 3 pages
Viewing questions 1-10 out of questions
Questions # 1:

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

Options:

A.

print()

B.

compute()

C.

result()

D.

solve()

Questions # 2:

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]

Questions # 3:

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]

Questions # 4:

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

Options:

A.

Tuple

B.

List

C.

Array

D.

Dictionary

Questions # 5:

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.

Questions # 6:

Which line of code below contains an error in the use of NumPy?

Options:

A.

wgu_list = np.quicksort(arr)

B.

print(wgu_list)

C.

import numpy as np

D.

arr = np.array([3, 2, 0, 1])

Questions # 7:

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

Options:

A.

","

B.

"+"

C.

"="

D.

":"

Questions # 8:

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

Options:

A.

NTFS

B.

FAT32

C.

HFS+

D.

EXT4

Questions # 9:

What Python code would return the value 40 from np_2d, where np_2d = np.array([[1, 2, 3, 4], [10, 20, 30, 40]])?

Options:

A.

np_2d[3, 1]

B.

np_2d[1, 3]

C.

np_2d[0, 4]

D.

np_2d[4, 1]

Questions # 10:

Which type of data structure is the only focus of a binary search?

Options:

A.

Ordered list

B.

Linked list

C.

Stack

D.

Queue

Viewing page 1 out of 3 pages
Viewing questions 1-10 out of questions