advanced storage techniques ( arrays , DataFrame)

Quiz
•
Computers
•
9th - 10th Grade
•
Hard
Amna D
Used 55+ times
FREE Resource
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
8.
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 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("books.csv")
import pandas as pd
df_books = pd.to_csv("books.csv")
import pandas as pd
df_books = pd.index("books.csv")
import pandas as pd
df_books = pd("books.csv")
9.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Abdul has stored the data in a Pandas dataframe called df_results .
To print only Lewis Hamilton’s results, like below, what is the correct code?
print(df_results.append["Lewis Hamilton"])
print(df_results.type["Lewis Hamilton"])
print(df_results.read_csv["Lewis Hamilton"])
d.
print(df_results.loc["Lewis Hamilton"])
Similar Resources on Wayground
11 questions
Trabajando con ArrayList

Quiz
•
9th - 12th Grade
10 questions
QUIZ 1

Quiz
•
9th Grade
12 questions
نشاط لتعويض درجات الواجبات

Quiz
•
10th Grade
10 questions
NumPy

Quiz
•
9th Grade - University
10 questions
Embed System#2

Quiz
•
10th - 12th Grade
9 questions
056. Extra Help

Quiz
•
9th - 12th Grade
11 questions
CodeHS 5.3 Using Arrays

Quiz
•
9th - 12th Grade
10 questions
Jak zadbać o swój wizerunek w sieci

Quiz
•
5th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade