
Numpy Quiz 1

Quiz
•
Computers
•
University
•
Medium
Vishnuvardhan Reddy Avija
Used 6+ times
FREE Resource
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What function is used to create an array in NumPy?
numpy.createArray()
numpy.makeArray()
numpy.newArray()
numpy.array()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method is used to reshape a NumPy array?
transform
resize
reshape
adjust
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you concatenate two NumPy arrays?
Use numpy.concatenate((array1, array2), axis=0) to concatenate two NumPy arrays.
Use numpy.add(array1, array2) to concatenate two NumPy arrays.
Combine arrays with array1 + array2 for concatenation.
Use numpy.stack((array1, array2), axis=1) to concatenate two NumPy arrays.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of np.arange(5)?
[0, 1, 2, 3, 4]
[0, 1, 2, 3, 4, 5]
[0, 1, 2, 3]
[1, 2, 3, 4, 5]
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function computes the mean of a NumPy array?
numpy.average
numpy.sum
numpy.mean
numpy.median
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the np.zeros() function return?
A list of empty strings.
An array filled with ones.
An array filled with zeros.
A matrix of random numbers.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you change the data type of a NumPy array?
Use the `astype()` method to change the data type of a NumPy array.
Change the data type by reassigning the array to a new variable.
Use the `convert()` function to change the data type.
Use the `change_type()` method to modify the data type.
Create a free account and access millions of resources
Similar Resources on Wayground
16 questions
PSC ALM QUIZ

Quiz
•
University
11 questions
Array

Quiz
•
University
14 questions
1D Array Java

Quiz
•
9th Grade - University
14 questions
Data Structure

Quiz
•
University
10 questions
Data Analytics using Python - Quiz 1

Quiz
•
University
12 questions
SAIMLDS

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

Quiz
•
11th Grade - University
7 questions
Java Programming Game

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University