WGU Foundations of Computer Science Practice Exam 11 studiers recently Leave the first rating Students also studied Terms in this set (70) Science Computer Science Save Foundations of Computer Science 37 terms elayna_kempPreview WGU Foundations of Computer Scie...242 terms dead-but-determined Preview Foundations of Computer Science Fi...220 terms mablauvelt18Preview Chapte 14 terms rac What is the expected output of the following code?numpy_array[numpy_array > 23] where numpy_array =
([21,20,21,24,22])
Array([24])
- multiple choice options
- multiple choice options
Which feature in Windows 11 allows the user to replace an updated driver with the previously installed version?Responses Roll back driver
Which entry is a way to select the second row of a 2D NumPy array named "data"?
data[1, :]
- multiple choice options
- multiple choice options
Which data structure stores a collection of items in key- value pairs?Hash Tables
What is the purpose of the comma in the following code snippet? ```pythonimport numpy as npnp_x =
np.array(x)np_x[:, 0]```
It separates the rows and columns in the array.
- multiple choice options
- multiple choice options
- multiple choice options
- multiple choice options
Which file system is commonly used in Windows and supports file permissions?
NTFS
What is one advantage of FreeBSD over Linux? The advanced security
Which notation describes the complexity of n operations within a pair of nested loops?O(n^2)
What happens if the search value is less than the current node's data during a search operation?The current node becomes current node's left child.
- multiple choice options
How can a user subset the last row of a 2D NumPy array? array[-1, :]
- multiple choice options
- multiple choice options
- multiple choice options
- multiple choice options
- multiple choice options
- multiple choice options
- multiple choice options
- multiple choice options
- multiple choice options
- multiple choice options
- multiple choice options
- multiple choice options
- multiple choice options
- multiple choice options
Which values are contained in the left subtree in a binary search tree?Values less than the parent node
What command in the command prompt in Windows allow a user to display the file list of their current directory?
DIR
How is the NumPy package imported into a Python session?import numpy as np
What does array[1, 1] return in a 2D NumPy array? The element in the second row and second column
What should be done if the node to be deleted in a binary search tree has no children?Delete it.
How can a Python list be built?With square brackets
Which character is used to indicate the beginning of a list?[
Which function would allow the user to calculate a number squared?pow()
What is the type of operating system found on a kiosk, bank cash machine, or industrial machine?Embedded OS
Which sequence reflects the order of visitation for an in- order traversal of a binary tree?Left subtree, current node, right subtree
What is the first step in the insertion sort algorithm? Compare the first and second elements
Which type of access control model is often based on the individual job functionality?Role-based
What does the shape' attribute of a NumPy array represent?The dimensions of the array
Which Python code will print the results of 3 subtracted from 5?print(5 - 3)
- multiple choice options
- multiple choice options
- multiple choice options
- multiple choice options
- multiple choice options
- multiple choice options
- multiple choice options
- multiple choice options
- multiple choice options
- multiple choice options
- multiple choice options
- multiple choice options
- multiple choice options
- multiple choice options
- multiple choice options
What is the correct way to select the element in the third row and fourth column of a 2D array named "data"?data[2, 3]
What indicates the type of file or the application that can be used to access it?File extension
What will be the result of adding an integer to a string in Python?An error
Which Python statement correctly assigns the value 99 to a variable?x = 99
Which Python method will replace the first letter of a string with a capital letter and convert all other letters to lowercase?capitalize()
What is the result of creating files in a read-only folder? Files will inherit the permissions of the parent folder
What are smallest units of storage that can be stored on any storage medium from a general user's perspective?Files
What is the pointer looking for as it moves through the list in a selection sort?The lowest value
Which sorting algorithm uses a process of a procedure repeating itself, which is known as recursion?Merge sort
Which component of the operating system is responsible for acting as the interface between applications and the hardware itself?The kernel
What is the correct way to create a NumPy array with values ranging from 2 to 10 in increments of 2?np.array([2, 4, 6, 8, 10])
What is NumPy?A Python array package
What does the shape attribute of a numpy array indicate? The number of rows and columns in the array
What is the result of adding two NumPy arrays together using the '+' operator?An element-wise sum of the arrays.
What does the NumPy package provide an alternative to in Python?Lists
- multiple choice options
- multiple choice options
- multiple choice options
- multiple choice options
- multiple choice options
- multiple choice options
- multiple choice options
What is the result of subsetting a 2D numpy array with a boolean array of the same shape?A new array with elements where the boolean array is true
What is the relative level of complexity when comparing Linear search to Binary search?Binary search is much more efficient than Linear search.
What is the purpose of the second input in the method stateNames.replace("ca", "CA")?To specifies the new value
Which sorting algorithm works by using a divide and conquer strategy where the list is divided into parts then sub-parts?Merge sort
How many children can each node have in a binary tree? Zero, one, or two
What is the time complexity of a selection sort algorithm? O(n^2)
What Python code would return the median height in `np_stats` where `np_stats = np.array([[6.1,200],[5.5,130],
[5.9,155]])`?
np.median(np_stats[:, 0])
- multiple choice options
Which of NumPy method is an example used to find the standard deviation of values in the NumPy array np?
np.std(surveys[:,0])
- multiple choice options
- multiple choice options
- multiple choice options
- multiple choice options
How can a 2D NumPy array be created from a list of lists in Python?np.array([[1, 2], [3, 4]])
Which type of data structure could be Singly or Doubly? Linked List
What happens when two Python lists are added together using the '+' operator?The elements are pasted together, generating a longer list.
What is the result of print(msg[-10:-7]) be when msg =
"Updating Now"?"dat"
- multiple choice options
- multiple choice options
- multiple choice options
Which name from myData, clients2024, my_data, and New Data would be invalid to use as a Python variable?New Data
Which statement is used to reference a package in Python?import