Brand Logo
Login
Search
Brand Logo

Edzy for Classes 6-12

Edzy is a personal AI tutor for CBSE and State Board students, with curriculum-aligned guidance, practice, revision, and study plans that adapt to each learner.

  • Email: always@edzy.ai
  • Phone: +91 96256 68472
  • WhatsApp: +91 96256 68472
  • Address: Sector 63, Gurgaon, Haryana

Follow Edzy

Browse by Class

  • CBSE Class 6
  • CBSE Class 7
  • CBSE Class 8
  • CBSE Class 9
  • CBSE Class 10
  • CBSE Class 11
  • CBSE Class 12
Explore the CBSE resource hub

Explore Edzy

  • About Us
  • Why We Built Edzy
  • Search Learning Resources
  • Blog
  • CBSE News & Updates
  • Contact Us
  • CBSE AI Tutor
  • CBSE Resource Hub

Support & Legal

  • Help & FAQs
  • Accessibility
  • Privacy Policy
  • Terms & Conditions
  • Refund Policy
  • Cookie Policy
  • Site Directory

© 2026 Edzy. All rights reserved.

Curriculum-aligned learning paths for students in Classes 6-12.

CBSE
Class 11
Informatics Practices
Informatics Practices
Introduction to NumPy

Question Bank

Practice Hub

Question Bank: Introduction to NumPy

This chapter introduces NumPy, a key library for numerical computing in Python, focusing on its array structure and operations.

Structured practice
Question Practice

Practice chapter questions in a cleaner, exam-ready flow

Start with curated question sets, move into full module views when needed, and keep discovering related practice without losing your place in the chapter.

Question Bank - Introduction to NumPy

View all (153)
Q1.

Which of the following is a primary feature of NumPy?

Single Answer MCQ
Q-00066745
View explanation
Q2.

What is the primary use of the NumPy library?

Single Answer MCQ
Q-00066747
View explanation
Q3.

Which programming languages can NumPy interface with?

Single Answer MCQ
Q-00066749
View explanation
Q4.

What is the term used for a collection of items in NumPy?

Single Answer MCQ
Q-00066751
View explanation
Q5.

Which command would you use to import the NumPy library in Python?

Single Answer MCQ
Q-00066753
View explanation
Q6.

What kind of arrays can NumPy handle?

Single Answer MCQ
Q-00066755
View explanation
Q7.

Which function is used to create an array in NumPy?

Single Answer MCQ
Q-00066757
View explanation
Q8.

What will be the shape of a 2D array with 3 rows and 4 columns created by NumPy?

Single Answer MCQ
Q-00066759
View explanation
Q9.

What does the np.split() function do?

Single Answer MCQ
Q-00066761
View explanation
Q10.

Which NumPy function is used for finding the maximum value in an array?

Single Answer MCQ
Q-00066763
View explanation
Q11.

In NumPy, which axis corresponds to rows in a 2D array?

Single Answer MCQ
Q-00066765
View explanation
Q12.

What will happen if you try to access an index that is out of bounds in a NumPy array?

Single Answer MCQ
Q-00066767
View explanation
Q13.

What is the purpose of NumPy's statistical functions?

Single Answer MCQ
Q-00066769
View explanation
Q14.

How does NumPy enhance performance compared to regular Python lists?

Single Answer MCQ
Q-00066771
View explanation
Q15.

What is the output of the following code: array = np.array([1, 2, 3, 4]); array[2]?

Single Answer MCQ
Q-00066773
View explanation
Q16.

In a 2-dimensional NumPy array, how would you access the element in the 2nd row and 1st column?

Single Answer MCQ
Q-00066774
View explanation
Q17.

What does the slicing operation array[1:3] return in a given NumPy array?

Single Answer MCQ
Q-00066775
View explanation
Q18.

What will the output of np.array([[1, 2], [3, 4], [5, 6]])[:, 1] be?

Single Answer MCQ
Q-00066776
View explanation
Q19.

What will array[0:4:2] return for the NumPy array array = np.array([10, 20, 30, 40, 50])?

Single Answer MCQ
Q-00066777
View explanation
Q20.

How many dimensions does the array np.array([[1, 2], [3, 4]]) have?

Single Answer MCQ
Q-00066778
View explanation
Q21.

If array = np.array([[1, 2], [3, 4], [5, 6]]), what is the result of array[:, 1]?

Single Answer MCQ
Q-00066779
View explanation
Q22.

What does the command array9[1:3, 0:2] return if array9 = np.array([[-7, 0, 10, 20], [-5, 1, 40, 200], [-1, 1, 4, 30]])?

Single Answer MCQ
Q-00066780
View explanation
Q23.

What does the slicing operation array[::-1] do?

Single Answer MCQ
Q-00066781
View explanation
Q24.

Which function creates a 2D array in NumPy?

Single Answer MCQ
Q-00066782
View explanation
Q25.

In the following code, what will marks[2, 1] return for the student marks array from the context? marks = np.array([[78, 67, 56], [76, 74, 57], [84, 59, 60], [67, 72, 54]])

Single Answer MCQ
Q-00066783
View explanation
Q26.

What will be the output of np.arange(6).reshape(2, 3)?

Single Answer MCQ
Q-00066784
View explanation
Q27.

What is the output of the following slicing operation array[1:4] if array = np.array([5, 10, 15, 20, 25])?

Single Answer MCQ
Q-00066785
View explanation
Q28.

What would the command np.array([[5, 10], [15, 20]])[0, :] return?

Single Answer MCQ
Q-00066786
View explanation
Q29.

What is the result of the operation array[1:5:2] for an array defined as array = np.array([0, 1, 2, 3, 4, 5])?

Single Answer MCQ
Q-00066787
View explanation
Q30.

If array7 = np.array([[1, 2], [3, 4], [5, 6]]), what does array7[1:, 0] yield?

Single Answer MCQ
Q-00066788
View explanation
Q31.

How can you extract the last two elements from a NumPy array array = np.array([10, 20, 30, 40, 50])?

Single Answer MCQ
Q-00066789
View explanation
Q32.

Given the 2D array np.array([[7, 8], [9, 10]]), how would you access the element '10'?

Single Answer MCQ
Q-00066790
View explanation
Q33.

What error occurs when you try to access an out-of-bounds index in a NumPy array?

Single Answer MCQ
Q-00066791
View explanation
Q34.

How can you concatenate two 2D arrays horizontally in NumPy?

Single Answer MCQ
Q-00066792
View explanation
Q35.

If array = np.array([[10, 20], [30, 40]]), how would you access the element 20?

Single Answer MCQ
Q-00066793
View explanation
Q36.

What does using np.zeros((2, 3)) create?

Single Answer MCQ
Q-00066794
View explanation
Q37.

What does array[1:3, 0] provide if array = np.array([[5, 10], [15, 20], [25, 30]])?

Single Answer MCQ
Q-00066795
View explanation
Q38.

In the context of NumPy, what does 'shape' describe?

Single Answer MCQ
Q-00066796
View explanation
Q39.

How do you access all the elements of the last row in a 2D NumPy array?

Single Answer MCQ
Q-00066797
View explanation
Q40.

Given an array a = np.array([[1, 2], [3, 4]]), what does a.flatten() do?

Single Answer MCQ
Q-00066798
View explanation
Q41.

How would you get the transpose of a 2D array in NumPy?

Single Answer MCQ
Q-00066799
View explanation
Q42.

What might be a common misconception about slicing arrays in NumPy?

Single Answer MCQ
Q-00066800
View explanation
Q43.

What does NumPy stand for?

Single Answer MCQ
Q-00066801
View explanation
Q44.

Which of the following is the primary data structure of NumPy?

Single Answer MCQ
Q-00066802
View explanation
Q45.

How do you create a NumPy array from a list?

Single Answer MCQ
Q-00066803
View explanation
Q46.

What method would you use to check the shape of a NumPy array?

Single Answer MCQ
Q-00066804
View explanation
Q47.

If you have an array of shape (3, 4), how many elements does it contain?

Single Answer MCQ
Q-00066805
View explanation
Q48.

What is the default data type of a NumPy array?

Single Answer MCQ
Q-00066806
View explanation
Q49.

How can you specify the dtype of a NumPy array?

Single Answer MCQ
Q-00066807
View explanation
Q50.

When creating a NumPy array with a nested list, what will the shape be if the inner lists are of varying lengths?

Single Answer MCQ
Q-00066808
View explanation
Q51.

What does ndarray.itemsize return?

Single Answer MCQ
Q-00066809
View explanation
Q52.

What function would you use to read data from a CSV file using NumPy?

Single Answer MCQ
Q-00066810
View explanation
Q53.

Which statement is true regarding the difference between np.array() and np.zeros()?

Single Answer MCQ
Q-00066811
View explanation
Q54.

How do you reshape a NumPy array named 'arr' to have 2 rows?

Single Answer MCQ
Q-00066812
View explanation
Q55.

Which of the following would correctly yield the second item of a 1D NumPy array 'arr'?

Single Answer MCQ
Q-00066813
View explanation
Q56.

If 'arr' is a 2D array, how would you access all elements in the second row?

Single Answer MCQ
Q-00066814
View explanation
Q57.

What type of data structure does NumPy primarily use for numerical operations?

Single Answer MCQ
Q-00066815
View explanation
Q58.

Which of the following statements about NumPy arrays is true?

Single Answer MCQ
Q-00066816
View explanation
Q59.

What will be the result of adding two NumPy arrays, A = np.array([1, 2]) and B = np.array([3, 4])?

Single Answer MCQ
Q-00066817
View explanation
Q60.

How can you reshape a NumPy array from 4 elements into a 2x2 array?

Single Answer MCQ
Q-00066818
View explanation
Q61.

In NumPy, what does the function np.split do?

Single Answer MCQ
Q-00066819
View explanation
Q62.

What will occur if you attempt to perform element-wise addition between arrays of different shapes?

Single Answer MCQ
Q-00066820
View explanation
Q63.

What does the axis parameter in NumPy functions such as np.sum specify?

Single Answer MCQ
Q-00066821
View explanation
Q64.

If A = np.array([[1, 2], [3, 4]]), what does A[0, 1] return?

Single Answer MCQ
Q-00066822
View explanation
Q65.

Which of the following operations is NOT supported by NumPy arrays?

Single Answer MCQ
Q-00066823
View explanation
Q66.

If A = np.array([1, 2, 3]), what is the output of A * 2?

Single Answer MCQ
Q-00066824
View explanation
Q67.

What will be the output of np.array([[1, 2], [3, 4]]) + np.array([[5, 6], [7, 8]])?

Single Answer MCQ
Q-00066825
View explanation
Q68.

Which function is used to create an array in NumPy from a list?

Single Answer MCQ
Q-00066826
View explanation
Q69.

What is the main advantage of using NumPy arrays over Python lists for numerical operations?

Single Answer MCQ
Q-00066827
View explanation
Q70.

What happens if you attempt to multiply a NumPy array and a scalar?

Single Answer MCQ
Q-00066828
View explanation
Q71.

In a 2-D NumPy array, which argument would you use to sum across rows?

Single Answer MCQ
Q-00066829
View explanation
Q72.

Which function in NumPy would return the maximum value from an array?

Single Answer MCQ
Q-00066830
View explanation
Q73.

For the array A = np.array([[1, 2], [3, 4]]), what will np.sum(A, axis=0) return?

Single Answer MCQ
Q-00066831
View explanation
Q74.

What function is used to concatenate arrays in NumPy?

Single Answer MCQ
Q-00066832
View explanation
Q75.

When using np.concatenate() to join 2-D arrays, what must be true about the dimensions?

Single Answer MCQ
Q-00066833
View explanation
Q76.

What does the default axis value in np.concatenate() indicate?

Single Answer MCQ
Q-00066834
View explanation
Q77.

If you have two arrays A with shape (2, 3) and B with shape (2, 2), which of the following concatenations is valid?

Single Answer MCQ
Q-00066835
View explanation
Q78.

What error might you get if you try to concatenate two arrays with mismatched dimensions along the concatenation axis?

Single Answer MCQ
Q-00066836
View explanation
Q79.

What will be the result of np.concatenate((array1, array2), axis=1) if array1 has shape (2, 2) and array2 has shape (2, 3)?

Single Answer MCQ
Q-00066837
View explanation
Q80.

If you wish to combine two 1-D arrays using np.concatenate(), which axis should you specify?

Single Answer MCQ
Q-00066838
View explanation
Q81.

Given arrays A = [1, 2] and B = [3, 4], what is the result of np.concatenate((A, B))?

Single Answer MCQ
Q-00066839
View explanation
Q82.

What is the pattern of indices that the np.concatenate((A, B), axis=0) will use when A and B are of different row lengths but identical columns?

Single Answer MCQ
Q-00066840
View explanation
Q83.

Why is np.concatenate() generally preferred over manual concatenation methods?

Single Answer MCQ
Q-00066841
View explanation
Q84.

If an array is 3-dimensional, which of the following statements about concatenation is correct?

Single Answer MCQ
Q-00066842
View explanation
Q85.

Consider two arrays of different shapes (3, 4) and (3, 2). What result should you expect when trying to concatenate these arrays along axis=1?

Single Answer MCQ
Q-00066843
View explanation
Q86.

What is the primary function of reshape() in NumPy?

Single Answer MCQ
Q-00066844
View explanation
Q87.

What will happen if you try to reshape an array into a shape that requires more elements than it has?

Single Answer MCQ
Q-00066845
View explanation
Q88.

Given an array of shape (6,) can it be reshaped to (2, 3)?

Single Answer MCQ
Q-00066846
View explanation
Q89.

What will the following code snippet return: np.array([1, 2, 3, 4, 5]).reshape(5, 1)?

Single Answer MCQ
Q-00066847
View explanation
Q90.

In the context of reshaping arrays, what does the term 'contiguous memory' refer to?

Single Answer MCQ
Q-00066848
View explanation
Q91.

Which of the following statements is true about the reshape function?

Single Answer MCQ
Q-00066849
View explanation
Q92.

Given a NumPy array a = np.arange(0, 12), what will a.reshape(3, 4) yield?

Single Answer MCQ
Q-00066850
View explanation
Q93.

If an array has the shape (3, 4, 2) and you call reshape with (4, 3, 2), what is the outcome?

Single Answer MCQ
Q-00066851
View explanation
Q94.

Which of these options correctly reshapes a 1D array of 8 elements into a 2D array of 2x4?

Single Answer MCQ
Q-00066852
View explanation
Q95.

If you want to flatten a given 2D NumPy array into 1D, which reshape command would you use?

Single Answer MCQ
Q-00066853
View explanation
Q96.

What does numpy.split() do?

Single Answer MCQ
Q-00066854
View explanation
Q97.

What is a requirement for reshaping an array using reshape()?

Single Answer MCQ
Q-00066855
View explanation
Q98.

Which of the following represents a valid reshape operation for a 1D array with 16 elements?

Single Answer MCQ
Q-00066856
View explanation
Q99.

What function is used to split a NumPy array into subarrays?

Single Answer MCQ
Q-00066857
View explanation
Q100.

By default, which axis does numpy.split() split an array along?

Single Answer MCQ
Q-00066858
View explanation
Q101.

Which of the following correctly splits an array into two equal parts along axis 1?

Single Answer MCQ
Q-00066859
View explanation
Q102.

What will be the output of numpy.split(array, [1, 3]) if 'array' has 5 rows?

Single Answer MCQ
Q-00066860
View explanation
Q103.

How do you split a NumPy array into three equal subarrays assuming the array size is divisible by three?

Single Answer MCQ
Q-00066861
View explanation
Q104.

Which of the following statements is true regarding the numpy.split function?

Single Answer MCQ
Q-00066862
View explanation
Q105.

If you split an array with numpy.split(array, [1, 4]), and the array only has two rows, what will happen?

Single Answer MCQ
Q-00066863
View explanation
Q106.

What will be the shape of the subarray returned by numpy.split(array, [1], axis=1) on a (4, 4) array?

Single Answer MCQ
Q-00066864
View explanation
Q107.

When using numpy.split with an index array, what are you specifying?

Single Answer MCQ
Q-00066865
View explanation
Q108.

What function in NumPy is used to find the maximum value of an array?

Single Answer MCQ
Q-00066866
View explanation
Q109.

If an array of shape (3, 6) is split into (1, 6) and (2, 6), what parameter is used?

Single Answer MCQ
Q-00066867
View explanation
Q110.

Which NumPy function computes the sum of all elements in an array along the specified axis?

Single Answer MCQ
Q-00066868
View explanation
Q111.

What happens if you call numpy.split(array, [1,1]) on a multidimensional array?

Single Answer MCQ
Q-00066869
View explanation
Q112.

What will np.array([7, 1, -5, 9]).min() return?

Single Answer MCQ
Q-00066870
View explanation
Q113.

How do you specify the number of subarrays when using numpy.split?

Single Answer MCQ
Q-00066871
View explanation
Q114.

If an array has values [10, 20, 30], what will the standard deviation be?

Single Answer MCQ
Q-00066872
View explanation
Q115.

Given np.array([[1, 2], [3, 4]]), what does np.mean(array, axis=0) compute?

Single Answer MCQ
Q-00066873
View explanation
Q116.

What is the output of np.array([3, 5, 1]).sum()?

Single Answer MCQ
Q-00066874
View explanation
Q117.

If an array B is defined as np.array([[1, 2], [3, 4]]), what is B.max(axis=1)?

Single Answer MCQ
Q-00066875
View explanation
Q118.

How do you find the average of values in array C = np.array([10, 20, 30])?

Single Answer MCQ
Q-00066876
View explanation
Q119.

What will the output of np.std([1, 2, 3, 4]) be?

Single Answer MCQ
Q-00066877
View explanation
Q120.

What does the function np.sum() do when an axis is not specified?

Single Answer MCQ
Q-00066878
View explanation
Q121.

In a NumPy array, what does the function np.max(array, axis=0) do?

Single Answer MCQ
Q-00066879
View explanation
Q122.

What is the output of np.array([2, 4, 6]).std()?

Single Answer MCQ
Q-00066880
View explanation
Q123.

Which of the following functions would return the second highest value in a given NumPy array?

Single Answer MCQ
Q-00066881
View explanation
Q124.

Which statistical function would you use to find out how much values deviate from the average?

Single Answer MCQ
Q-00066882
View explanation
Q125.

Which function in NumPy is primarily used for loading data from a text file?

Single Answer MCQ
Q-00066883
View explanation
Q126.

What function is used to save a NumPy array to a text file?

Single Answer MCQ
Q-00066884
View explanation
Q127.

What argument must be set to skip the header row when using numpy.loadtxt()?

Single Answer MCQ
Q-00066885
View explanation
Q128.

Which parameter in np.savetxt() specifies the format of the saved data?

Single Answer MCQ
Q-00066886
View explanation
Q129.

What format does the delimiter in numpy.loadtxt() default to if not explicitly set?

Single Answer MCQ
Q-00066887
View explanation
Q130.

To save a NumPy array named 'data' to a file named 'output.txt' with a comma as delimiter, which command is correct?

Single Answer MCQ
Q-00066888
View explanation
Q131.

When loading multiple arrays using numpy.loadtxt() with unpack=True, what does the function return?

Single Answer MCQ
Q-00066889
View explanation
Q132.

What happens if you omit the delimiter parameter when using np.savetxt()?

Single Answer MCQ
Q-00066890
View explanation
Q133.

If you load data using numpy.loadtxt() and want it in integer format, which dtype option should you use?

Single Answer MCQ
Q-00066891
View explanation
Q134.

Which of the following methods can be used to load a saved NumPy array?

Single Answer MCQ
Q-00066892
View explanation
Q135.

Which of the following file types is compatible for reading with numpy.loadtxt()?

Single Answer MCQ
Q-00066893
View explanation
Q136.

When saving an array, what is the default format used by the savetxt() function?

Single Answer MCQ
Q-00066894
View explanation
Q137.

Consider a .txt file containing numerical data; which statement ensures each row is loaded into separate arrays?

Single Answer MCQ
Q-00066895
View explanation
Q138.

If you want to save an array with both its data and shape, which NumPy function would you prefer?

Single Answer MCQ
Q-00066896
View explanation
Q139.

What will be the data type of the array when no dtype argument is passed to numpy.loadtxt()?

Single Answer MCQ
Q-00066897
View explanation
Q140.

What is the correct command to save an array with integer format while using savetxt()?

Single Answer MCQ
Q-00066898
View explanation
Q141.

If a CSV file has different numbers of columns in each row, what would occur when attempting to load it with numpy.loadtxt()?

Single Answer MCQ
Q-00066899
View explanation
Q142.

Which function can be used to save multiple NumPy arrays to a single file?

Single Answer MCQ
Q-00066900
View explanation
Q143.

In the context of loading data, why would you specify 'delimiter=',' in numpy.loadtxt()?

Single Answer MCQ
Q-00066901
View explanation
Q144.

If you wanted to save an array to a specified path, which part of the filepath is crucial to include?

Single Answer MCQ
Q-00066902
View explanation
Q145.

What does the 'dtype' parameter in numpy.loadtxt() do?

Single Answer MCQ
Q-00066903
View explanation
Q146.

What is a potential consequence of not using a proper format specifier when saving an array?

Single Answer MCQ
Q-00066904
View explanation
Q147.

What is the effect of using 'skiprows=2' in numpy.loadtxt()?

Single Answer MCQ
Q-00066905
View explanation
Q148.

In the context of saving NumPy arrays, what does the term 'delimiter' refer to?

Single Answer MCQ
Q-00066906
View explanation
Q149.

Which of the following is TRUE when using numpy.genfromtxt() compared to numpy.loadtxt()?

Single Answer MCQ
Q-00066907
View explanation
Q150.

When saving a NumPy array, what would happen if the file already exists?

Single Answer MCQ
Q-00066908
View explanation
Q151.

In a CSV file, what does each line typically represent when loaded into a NumPy array?

Single Answer MCQ
Q-00066909
View explanation
Q152.

In what scenario would you choose to use np.savez() over np.savetxt()?

Single Answer MCQ
Q-00066910
View explanation
Q153.

What is the outcome of storing NumPy arrays in text format using np.savetxt()?

Single Answer MCQ
Q-00066911
View explanation
Learn Better On The App
Practice-first experience

Practice Makes Perfect

Sharpen concepts with MCQs, quizzes, and focused topic-based practice.

Endless questions
Topic-wise prep

Faster access to practice, revision, and daily study flow.

Edzy mobile app preview