review ck 1 9 adv

review ck 1 9 adv

2nd Grade

10 Qs

quiz-placeholder

Similar activities

Third Day Quiz!

Third Day Quiz!

1st - 5th Grade

10 Qs

AV1\R1 3TEC_Ciência de Dados - Aula 01 a  16

AV1\R1 3TEC_Ciência de Dados - Aula 01 a 16

1st Grade - University

15 Qs

3° Ciencia de Dados - 1° Trimestre

3° Ciencia de Dados - 1° Trimestre

2nd Grade

15 Qs

licencje oprogramowania

licencje oprogramowania

1st - 3rd Grade

10 Qs

Dates in python

Dates in python

2nd Grade - Professional Development

12 Qs

Python Turtle

Python Turtle

KG - Professional Development

11 Qs

Java Fundamental

Java Fundamental

2nd Grade

10 Qs

Logomocja - rysowanie

Logomocja - rysowanie

1st - 5th Grade

10 Qs

review ck 1 9 adv

review ck 1 9 adv

Assessment

Quiz

Computers

2nd Grade

Hard

Created by

sajedah al-hilo

Used 19+ times

FREE Resource

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

Media Image

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

Media Image

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

Media Image

b.     reshape

a.     vstack

d.     hstack

c.     transpose

6.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Media Image

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")

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?