advanced storage techniques ( arrays , DataFrame)
Quiz
•
Computers
•
9th - 10th Grade
•
Practice Problem
•
Hard
Amna D
Used 55+ times
FREE Resource
Enhance your content in a minute
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
Farah created a small program in Python that uses NumPy library. She used this library to store his data in a multi-dimensional _______ data structure. This structure allowed her to perform advanced mathematical and scientific calculations in her program.
list
dictionary
array
pandas
2.
MULTIPLE CHOICE QUESTION
1 min • 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?
numpy import as np
import numpy as npLibrary
np as import numpy
import numpy np
3.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
Khaled wants to create a NumPy array using a range of values. He has typed and ran the following statement.
import numpy as np
array = np.arange(2, 15, 4)
print(array)
What is the output?
[ 4 6 8 10 12 14 15 ]
[ 2154 ]
[ 0 2 6 10 14 ]
[ 2 6 10 14 ]
4.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
Ahmed wants to store the sportscar data in the order below in a NumPy array.
What is the correct syntax?
import numpy as np
sportsCars = np.array([["Ferrari","Lamborghini","McLaren"]])
import numpy as np
sportsCars = array.np(["Ferrari","Lamborghini","McLaren"])
import numpy as np
sportsCars = array(["Ferrari","Lamborghini","McLaren"])
import numpy as np
sportsCars = sportsCars.array(["Ferrari","Lamborghini","McLaren"])
5.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
Abdulla created a single dimension NumPy array, as shown below.
What single function should he use to split the array into 6 rows and 2 columns?
append
transpose
hstack
reshape
6.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
Jamila created a NumPy array, as shown below.
What single function should she use to change each of the rows to be a column and each column to a row?
vstack
reshape
transpose
hstack
7.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
What single function should he use to append the arrays, so the final array is as follows?
vstack
reshape
transpose
hstack
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?
Similar Resources on Wayground
10 questions
Berfikir Komputesional
Quiz
•
9th - 12th Grade
10 questions
python
Quiz
•
10th Grade
10 questions
on cuoi ki 2 tin 10 cde 5 python
Quiz
•
10th Grade
12 questions
COMPUTER SCIENCE 0478
Quiz
•
10th - 11th Grade
10 questions
Podstawowe znaczniki HTML
Quiz
•
10th Grade
10 questions
Desafios de Lógica de Programação
Quiz
•
9th - 12th Grade
8 questions
Numpy Revision Test
Quiz
•
10th Grade
10 questions
Python
Quiz
•
5th - 10th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
