Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 3 out of 18 pages
Exam (elaborations)

Business AI and analytics QUESTIONS AND VERIFIED CORRECT ANSWERS .

Document preview thumbnail
Preview 3 out of 18 pages

Business AI and analytics QUESTIONS AND VERIFIED CORRECT ANSWERS .pdf Business AI and analytics QUESTIONS AND VERIFIED CORRECT ANSWERS .pdf

Content preview

Business AI and analytics
Save




which function is used to A. np.concatenate
concatenate two arrays along a
specific axis
A. np.concatenate
B. np.split
C. np.vstack
D. np.hstack


how do you import NumPy in Python B. import numpy as np
with an alias?
A. import numpy
B. import numpy as np
C. import numpy. npyb as np
D. import load numpy as nmp


how do you create a Pandas Series A
from a list of values [0.25, 0.5, 0.75,
1.0]
A. pd. Series ([o.25, 0.5,0.75, 1.0])
B. pd. Series ((0.25, 0.5, 0.75, 1.0))
C. pd.Series ({"0.25: "0.5", "0.75": "1.0"})
D. pd.Series (0.25, 0.5, 0.75, 1.0)

,What is the result of the following B
code?data = pd.Series([0.25, 0.5,
0.75, 1.0], index=['a', 'b', 'c',
'd'])data['a':'c']
A. Only the value associated with 'a'
B. The values associated with 'a', 'b',
and 'c'
C. An error, as the slicing is incorrect
D. The values associated with 'a' and
'b' only


How do you create a Pandas Series A
from the dictionary {'a': 0.25, 'b': 0.5,
'c': 0.75}?
A. pd.Series({'a': 0.25, 'b': 0.5, 'c': 0.75})
B. pd.Series(0.25, 0.5, 0.75)
C. pd.Series([0.25, 0.5, 0.75], indexall=
['a', 'b', 'c'])
D. pd.Series({'a', 'b', 'c'})


What does np.linspace(0, 10, 5) do? A
A. Creates an array of 5 evenly
spaced numbers between 0 and 10.
B.Creates an array of 5 random
numbers between 0 and 10.
C. Creates an array of all numbers
between 0 and 10.
D. Creates an array of integers
between 0 and 10.

, What does the following code do: D
arr = np.array([1, 2, 3, 4, 5]); arr[arr >
3]?
AReturns [1, 2, 3]
B.Returns [False, False, False, True,
True]
C. Returns [3, 4]
D. Returns [4, 5]


What is the key difference between a D
NumPy array and a Pandas Series?
A. A NumPy array is always faster if
run on silicone hardware
B. A Series does not have an index.
C. A Series cannot hold mixed data
types.
D. A Series has an explicitly defined
index, while a NumPy array has an
implicitly defined integer index.


What does the following code C
return: arr = np.array([10, 20, 30, 40,
50]); arr[1:4]?
A. [10, 30, 50]
B. [30, 40, 50]
C. [20, 30, 40]
D. [10, 20, 30, 40, 50]

Document information

Uploaded on
December 23, 2025
Number of pages
18
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$22.49

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Alzheimer
4.2
(197)
Sold
596
Followers
411
Items
5426
Last sold
1 week ago


Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions