Data Analytics using Python - Quiz 1

Quiz
•
Computers
•
University
•
Medium
Karunya Hacks
Used 5+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code:
A1 = np.array(['Juan','Matt','Tom'])
print (A1[0])
print (A1[-2])
print (A1[-0])
Juan Matt Juan
Juan Tom Tom
Error
Tom Matt Juan
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code:
students = np.array([['Alice','Beth','Cathy','Dorothy'] , [65,78,90,81],[71,82,79,92]])
students[...,1]
array(['Beth', '78', '82'], dtype='<U21')
['Alice','Beth','Cathy','Dorothy']
[65,78,90,81], [71,82,79,92]
error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the code:
heights = [165,170,168,183,172,169]
weights = [61,76,56,81,62,60]
student_bio = np.array([heights,weights])
student_bio.shape
(6, 2)
(2, 6)
array(2, 6)
np.array(6, 2)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the code:
a = np.array([7, 8, 9, 10, 11, 12])
j = np.array([1, 2, 3, 4, 5, 6])
np.copyto(j,a)
print (j)
B: [ 1 2 3 4 5 6 ]
error
[ 7 8 9 10 11 12 ]
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
Quiz 12

Quiz
•
University
10 questions
Quiz 8: Arrays&Vector

Quiz
•
University
15 questions
Round 1 (Tech Utsav)

Quiz
•
University
10 questions
Quiz 11

Quiz
•
University
10 questions
C++ vs Python: A Quiz Introduction

Quiz
•
11th Grade - University
10 questions
CS1010 Lab 4

Quiz
•
University
13 questions
Array of Structure

Quiz
•
University
12 questions
DS_NumPy_TEST1

Quiz
•
University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade