Numpy MCQs with answers Page - 1

Here, you will find a collection of MCQ questions on Numpy. Go through these questions to enhance your preparation for upcoming examinations and interviews.

To check the correct answer, simply click the View Answer button provided for each question.

Have your own questions to contribute? Click the button below to share your MCQs with others!

+ Add Question

A

Admin • 799.53K Points
Coach

Q. What does NumPy stand for?

  • (A) Numerical Python
  • (B) Number Python
  • (C) New Python
  • (D) None of the above

A

Admin • 799.53K Points
Coach

Q. Which function is used to create a NumPy array?

  • (A) array()
  • (B) arr()
  • (C) create_array()
  • (D) makearray()

A

Admin • 799.53K Points
Coach

Q. What is the output type of np.array([1, 2, 3])?

  • (A) list
  • (B) ndarray
  • (C) tuple
  • (D) dict

A

Admin • 799.53K Points
Coach

Q. Which method returns the shape of a NumPy array?

  • (A) shape()
  • (B) size()
  • (C) shape
  • (D) length()

A

Admin • 799.53K Points
Coach

Q. How do you create an array of zeros in NumPy?

  • (A) np.zeros()
  • (B) np.zeroes()
  • (C) np.null()
  • (D) np.blank()

A

Admin • 799.53K Points
Coach

Q. Which of the following creates an identity matrix?

  • (A) np.eye()
  • (B) np.identity()
  • (C) np.ones()
  • (D) np.matrix()

A

Admin • 799.53K Points
Coach

Q. What is broadcasting in NumPy?

  • (A) A way of resizing arrays
  • (B) A way of combining arrays of different shapes
  • (C) A method to display arrays
  • (D) A function for sorting arrays

A

Admin • 799.53K Points
Coach

Q. Which function returns the number of elements in a NumPy array?

  • (A) len()
  • (B) count()
  • (C) size
  • (D) shape()

A

Admin • 799.53K Points
Coach

Q. How do you reshape a NumPy array?

  • (A) np.change_shape()
  • (B) reshape()
  • (C) np.reform()
  • (D) np.modify()

A

Admin • 799.53K Points
Coach

Q. Which method is used to concatenate two arrays?

  • (A) np.append()
  • (B) np.concatenate()
  • (C) np.extend()
  • (D) np.join()

Add MCQ in this Category

If you want to share an MCQ question in this category, it's a great idea! It will be helpful for many other students using this website.

Share Your MCQ