065. Extra Help

065. Extra Help

9th - 12th Grade

9 Qs

quiz-placeholder

Similar activities

A1 IIIB - Introducción a Data Science

A1 IIIB - Introducción a Data Science

11th Grade - University

10 Qs

Пајтон Табеле 2/8

Пајтон Табеле 2/8

10th Grade

12 Qs

Matplotlib Quiz_2

Matplotlib Quiz_2

12th Grade

8 Qs

Python: matlpotlib Online Quiz

Python: matlpotlib Online Quiz

9th - 10th Grade

10 Qs

12cs cha16

12cs cha16

12th Grade

9 Qs

Python Charts - Line chart

Python Charts - Line chart

12th Grade

8 Qs

NumPy

NumPy

9th Grade - University

10 Qs

Matplotlib

Matplotlib

10th Grade

10 Qs

065. Extra Help

065. Extra Help

Assessment

Quiz

Computers

9th - 12th Grade

Hard

Created by

Robert Giordano

FREE Resource

9 questions

Show all answers

1.

DRAG AND DROP QUESTION

1 min • 1 pt

Complete the code to make a list of the 2 lists

list1 = ['a', 'b']

list2 = ['c', 'd']

bothLists = [​ (a)   , ​ (b)   ]

list1
list2

2.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Fill in the blank to import the random module

import ______

3.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Fill in the blank to import the module to create bar and pie charts and give it the alias plt

import ___________________ as plt

4.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Fill in the blank to import the Cars.py module

import ____

5.

DRAG AND DROP QUESTION

1 min • 1 pt

Set up the for loop to traverse the list called rows

row1 = [9, 4, 1]

row2 = [5, 5, 2]

rows = [row1, row2]

for ​ (a)   in ​ (b)   :

print(row)

row
rows

6.

DRAG AND DROP QUESTION

1 min • 1 pt

Media Image

Set up the for loop to print the sum of each row of the rows list

loop2: ​ (a)  

command: ​ (b)  

for x in num
sum += x
while num < len(row)
x += sum

7.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Fill in the blank to determine if the list has the value 7 and print "Hello" if it is.

myList = [1, 9, 5, 3, 9, 7, 3, 10, 23, 11, 75, 9, 100, 22, 65, 45, 58, 81]

if ______________:

print("Hello")

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is the correct syntax to create a pie chart with the percs list?

import matplotlib.pyplot as plt

percs = [25, 35, 40]

_______________

plot(pie(percs))

plt.pie(percs))

pie.plot(percs)

percs.pie( )

9.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is the correct syntax to create a bar chart with the freq list?

import matplotlib.pyplot as plt

freq = [17, 8, 30]

_______________

plot(bar(freq))

plt.bar(freq))

bar.plot(freq)

freq.bar( )