Search Header Logo

Revision Chapter 1 - Algorithm and programming(9adv)

Authored by amani amaneit2003@yahoo.com

Computers

9th Grade

Used 11+ times

Revision Chapter 1 - Algorithm and programming(9adv)
AI

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 • 1 pt

Ali has created a small program in Python, but he wants to store his data in a multi-dimensional array. He would like to use advanced mathematical and scientific calculations in his program. Ali should add the ___________ library to his program.

Sum

NumPy

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In NumPy, the ________ function is used to change the rows to columns, and the columns to rows.

array

transpose

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Python, the data structure that stores elements of the same data type is called an array.

True

False

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Meera has created a small program in Python. She wants to store elements of the same data type in an organized data structure using the NumPy library. To do this Meera should use the NumPy __________ function.

array

transpose

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The line of code to the right will import the NumPy library. The "np" is an assigned name for the library. ( import numpy as np )

true

False

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What would be the printed output of the Python code to the right?


import numpy as np

x= np.array(['hamad',60,80])

print ( x)

np_Hamad

['Hamad' '16' '60']

['Hamad']

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The line of the code to the right, will create an array that carries values from 0 to 10 with step size 2.


array= np.arange(0,20,2)

True

False

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?