
review ck 1 9 adv
Authored by sajedah al-hilo
Computers
2nd Grade
Used 19+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Ali created a small program in Python that uses NumPy library. He used this library to store his data in a multi-dimensional _______ data structure. This structure allowed him to perform advanced mathematical and scientific calculations in his program.
panda
array
a. list
2.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
In Python, to import the NumPy library as the name "np", we typically code as:
import numpy as np
Which one of the following would also be valid for importing the NumPy library?
a. numpy import as np
a. import numpy as npLibrary
a. np as import numpy
3.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Ahmed wants to store the sportscar data in the order below in a NumPy array.
What is the correct syntax?
a. import numpy as np sportsCars = np.array(["Ferrari","Porsche","Lamborghini","McLaren"])
a. import numpy as np sportsCars = array.np(["Ferrari","Porsche","Lamborghini","McLaren"])
a. import numpy as np sportsCars = array(["Ferrari","Porsche","Lamborghini","McLaren"])
4.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What single function should he use to split the array into 5 rows and 3 columns?
a. hstack
a. transpose
a. reshape
a. append
5.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
b. reshape
a. vstack
d. hstack
c. transpose
6.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What single function should she use to change each of the rows to be a column and each column to a row?
b. reshape
a. vstack
d. hstack
c. transpose
7.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Noora was given all her school’s library book details in a comma-separated values (csv) file. The file was called library_books.csv , and it contained the title, author, ISBN and date published for each book.
To store the data from the file into a Pandas dataframe, what should Noora type?
import pandas as pd
df_books = pd.read_csv("library_books.csv")
import pandas as pd
df_books = pd.to_csv("library_books.csv")
df_books = pd.index("library_books.csv")
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?