Chapter 1 - Algorithm and programming( 9Gen)

Chapter 1 - Algorithm and programming( 9Gen)

9th Grade

10 Qs

quiz-placeholder

Similar activities

Python Basics

Python Basics

8th - 10th Grade

10 Qs

Arrays += Chan

Arrays += Chan

9th - 12th Grade

12 Qs

Python_R

Python_R

2nd Grade - Professional Development

8 Qs

Python Basics - Year 8

Python Basics - Year 8

7th - 9th Grade

14 Qs

Python strings

Python strings

8th - 9th Grade

11 Qs

Python

Python

9th Grade

15 Qs

GCSE Computer Science - Programming Keywords

GCSE Computer Science - Programming Keywords

9th - 12th Grade

15 Qs

Pandas library

Pandas library

9th 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?