Free Foundations-of-Computer-Science Mock Exam – Practice Online Confidently

Increase your chances of passing the WGU Foundations-of-Computer-Science exam questions on your first try. Practice with our free online Foundations-of-Computer-Science exam mock test designed to help you prepare effectively and confidently.

Exam Code: Foundations-of-Computer-Science
Exam Questions: 71
WGU Foundations of Computer Science (D792)
Updated: 24 Nov, 2026
Question 1

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

Options :
Answer: B

Question 2

What code would print a subarray of the first 5 elements in numpy_array? 

Options :
Answer: C

Question 3

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 :
Answer: A

Question 4

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

Options :
Answer: A

Question 5

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

Options :
Answer: D

Viewing Page : 1 - 8
Practicing : 1 - 5 of 71 Questions

© Copyrights FreeMockExams 2026. All Rights Reserved

We use cookies to ensure that we give you the best experience on our website (FreeMockExams). If you continue without changing your settings, we'll assume that you are happy to receive all cookies on the FreeMockExams.