Summer Certification Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code = getmirror

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

Practice at least 50% of the questions to maximize your chances of passing.
Exam Foundations-of-Computer-Science Premium Access

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


537 Students Passed

89% Average Score

95% Same Questions
Viewing page 2 out of 3 pages
Viewing questions 11-20 out of questions
Questions # 11:

What is the first step in the selection sort algorithm?

Options:

A.

Find the highest value and the lowest value in the list.

B.

Swap the first and last elements.

C.

Determine the lowest value starting from the first position.

D.

Sort the list in descending order.

Questions # 12:

What will be the result of performing the slice fam[:3]?

Options:

A.

A list with the first three elements of fam

B.

A list with the first four elements of fam

C.

A list with the first two elements of fam

D.

A list with the last three elements of fam

Questions # 13:

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

Questions # 14:

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

Options:

A.

Ordered list

B.

Linked list

C.

Stack

D.

Queue

Questions # 15:

m = 30

n = 30

What will be the output of print(id(m), id(n)) after executing the following code?

Options:

A.

Two identical numbers

B.

Two different numbers

C.

0 0

D.

Error

Questions # 16:

What is the expected output of calling .shape on a NumPy 2D array?

Options:

A.

The type of elements in the array

B.

The number of rows and columns in the 2D array

C.

The sum of the dimensions of the array

D.

The total number of elements in the array

Questions # 17:

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)

Questions # 18:

What is the correct way to convert an integer to a string in Python?

Options:

A.

tostring(variable)

B.

int_to_str(variable)

C.

string(variable)

D.

str(variable)

Questions # 19:

What is the time complexity of a binary search algorithm?

Options:

A.

O(n^2)

B.

O(n)

C.

O(2^n)

D.

O(log n)

Questions # 20:

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

Viewing page 2 out of 3 pages
Viewing questions 11-20 out of questions
TOP CODES

TOP CODES

Top selling exam codes in the certification world, popular, in demand and updated to help you pass on the first try.