
NumPy and Pandas Quiz

Quiz
•
Computers
•
12th Grade
•
Hard
BALRAJ E
Used 7+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of the following code? import numpy as np
a = np.arange(10)
print(a[2:5])
[2, 3, 4]
[0, 1, 2]
[2,3,4,5]
[2, 4, 6]
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is used to create an identity matrix in NumPy?
zeros()
ones()
arange()
eye()
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of the following code?
import numpy as np
a = np.array([1,2,3,5,8])
b = np.array([0,3,4,2,1])
c = a + b
c = c*a
print (c[2])
21
35
15
Error
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of the following?
import numpy as np
a = np.array([[0, 1, 2], [3, 4, 5]])
b = a.sum(axis=1)
print (b)
3
12
[3, 12]
[3, 5, 7]
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is a correct syntax to print the number 8 from the array below:
arr = np.array([[1,2,3,4,5], [6,7,8,9,10]])
print(arr[7,2])
print(arr[1.2])
print(arr[2,3])
print(arr[2,2])
print(arr[7,2])
print(arr[1.2])
print(arr[2,3])
Print(arr[2,2])
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following statement for creating dataframe is valid?
df = pd.DataFrame(dict1)
df = pd.Dataframe(dict1)
df = pd.dataFrame(dict1)
df = pd.dataframe(dict1)
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
A dataframe has two axes, where axes = 0 represents
Index
Row
Column
Values
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Computer Software

Quiz
•
9th - 12th Grade
10 questions
MOAC Excel 2016 Lesson 03

Quiz
•
8th - 12th Grade
15 questions
Moja cyfrowa tożsamość

Quiz
•
10th - 12th Grade
9 questions
Checkpoint 1 revision

Quiz
•
9th - 12th Grade
10 questions
Quiz sobre Desenvolvimento de Sistemas

Quiz
•
12th Grade
10 questions
C++ vs Python: A Quiz Introduction

Quiz
•
11th Grade - University
14 questions
Exploring Computer Science

Quiz
•
10th - 12th Grade
10 questions
Class-XII_IP_Revision-3

Quiz
•
12th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
62 questions
Spanish Speaking Countries, Capitals, and Locations

Quiz
•
9th - 12th Grade
20 questions
First Day of School

Quiz
•
6th - 12th Grade
6 questions
Maier - AMDM - Unit 1 - Quiz 1 - Estimation

Quiz
•
12th Grade
21 questions
Arithmetic Sequences

Quiz
•
9th - 12th Grade
21 questions
9th Grade English Diagnostic Quiz

Quiz
•
9th - 12th Grade
7 questions
Characteristics of Life

Interactive video
•
11th Grade - University