Search Header Logo

Checkpoint 1 revision

Authored by Sakhaa Obeidat

Computers

9th - 12th Grade

Used 6+ times

Checkpoint 1 revision
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Nora 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 his program.

list

dictionay

pandas

array

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Python, to import the NumPy library as the name "np", we typically code as:

 

  numpy import as np

np as import numpy

 

import numpy as np

import turtule

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Mahmoud 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?

  1. [ 2 6 10 14 ]

  1. [ 4 6 8 10 12 14 15 ]

  1. [ 2154 ]

  1. [ 0 2 6 10 14 ]

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Ali wants to store the sportscar data in the order below in a NumPy array.

 

 

What is the correct syntax?

import numpy as np
sportsCars =
array.np(["Ferrari","Lamborghini","McLaren"])

import numpy as np
sportsCars = array(["Ferrari","Lamborghini","McLaren"])

    import numpy as np
sportsCars = np.array(["Ferrari","Lamborghini","McLaren"])

import numpy as np
sportsCars = sportsCars.array(["Ferrari","Lamborghini","McLaren"])

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Mohammed 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

reshape

transpose

hstack

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Amal 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?

transpose

vstack

reshape

hstack

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

 Ibrahim created 2 NumPy arrays to store his famous Emirati authors and their books, as shown below.

 

 

 

 

What single function should he use to append the arrays, so the final array is as

  1. reshape

  1. transpose

  1. hstack

  1. vstack

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?