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

Complete Foundations-of-Computer-Science WGU Materials

WGU Foundations of Computer Science Questions and Answers

Question 17

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

Options:

A.

"True"

B.

"true"

C.

True

D.

true

Question 18

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]

Question 19

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 20

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