Chapter 1 - Algorithm and programming( 9Gen)

Chapter 1 - Algorithm and programming( 9Gen)

9th Grade

10 Qs

quiz-placeholder

Similar activities

Java 1D Arrays

Java 1D Arrays

9th Grade - University

14 Qs

Quiz Javascript Basic Pertemuan 3

Quiz Javascript Basic Pertemuan 3

9th - 12th Grade

10 Qs

Arrays Intro

Arrays Intro

9th - 12th Grade

12 Qs

Tes Sumatif Fase E

Tes Sumatif Fase E

9th - 12th Grade

10 Qs

Python массив

Python массив

9th - 12th Grade

10 Qs

CODEHS Looping Unit 5 Review

CODEHS Looping Unit 5 Review

9th - 12th Grade

10 Qs

Arrays

Arrays

KG - University

10 Qs

AP CSP - Python Lists and Arrays

AP CSP - Python Lists and Arrays

9th - 12th Grade

10 Qs

Chapter 1 - Algorithm and programming( 9Gen)

Chapter 1 - Algorithm and programming( 9Gen)

Assessment

Quiz

Computers

9th Grade

Medium

Created by

amani amaneit2003@yahoo.com

Used 49+ times

FREE Resource

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

In Python iteration, a(/an) ________ loop repeats the code block as long as the result of the conditional statement is true.

while

for

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

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

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

True

False

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Python iteration, a(/an) ________ loop repeats the code block a set number of times.

for

while

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?