Data Science · Matplotlib What function is used to save a plot as an image file in Matplotlib? A save_plot() B export_plot() C savefig() Correct answer D exportfig() MCQSEXAM Show answer Read explanation
Data Science · Matplotlib Which function is used to set the title of a plot in Matplotlib? A plot_title() B title() Correct answer C set_title() D setplot_title() MCQSEXAM Show answer Read explanation
Data Science · Matplotlib Which module of Matplotlib is used for creating plots? A mpl.plot B plt C matplotlib.plot D pyplot Correct answer MCQSEXAM Show answer Read explanation
Data Science · Matplotlib What is the primary purpose of Matplotlib? A Performing statistical analysis B Creating interactive web applications C Visualizing data Correct answer D Generating random numbers MCQSEXAM Show answer Read explanation
Data Science · Matplotlib Which of the following is not a plot type supported by Matplotlib? A Line plot B Bar plot C Histogram plot D Decision tree plot Correct answer MCQSEXAM Show answer Read explanation
Data Science · Matplotlib What is Matplotlib? A A programming language B A numerical computing library C A data visualization library Correct answer D A machine learning framework MCQSEXAM Show answer Read explanation
Data Science · NumPy Which of the following statements is true about NumPy? A It is primarily used for string manipulation B It is not suitable for mathematical operations C It provides efficient numerical arrays and functions for numerical operations Correct answer D It is a graphical user interface library MCQSEXAM Show answer Read explanation
Data Science · NumPy What is the output of np.nanmean([1, np.nan, 3])? A nan B 2.0 Correct answer C 1.5 D 3.0 MCQSEXAM Show answer Read explanation
Data Science · NumPy What function is used to calculate the mean of an array? A np.mean() Correct answer B mean() C Both A and B D None of the above MCQSEXAM Show answer Read explanation
Data Science · NumPy What is the purpose of the np.concatenate() function? A To split an array into multiple sub-arrays B To join arrays along an existing axis Correct answer C To create an array with evenly spaced values D To find the intersection of two arrays MCQSEXAM Show answer Read explanation
Data Science · NumPy Which of the following functions is used to find the unique elements of an array? A unique() B distinct() C np.unique() Correct answer D np.distinct() MCQSEXAM Show answer Read explanation
Data Science · NumPy What is the output of np.random.randint(1, 10, size=(2, 3))? A A 2x3 array with random integers between 1 and 10 Correct answer B An array of random floats between 1 and 10 C A single random integer between 1 and 10 D An error MCQSEXAM Show answer Read explanation
Data Science · NumPy Which function is used to calculate the dot product of two arrays? A np.dot() Correct answer B np.cross() C np.multiply() D np.inner() MCQSEXAM Show answer Read explanation
Data Science · NumPy What is the purpose of broadcasting in NumPy? A To adjust array dimensions to perform arithmetic operations Correct answer B To increase the speed of array operations C To convert arrays into a different data type D None of the above MCQSEXAM Show answer Read explanation
Data Science · NumPy What is the output of np.eye(3)? A Identity matrix of order 3 Correct answer B Array of zeros with diagonal ones C Array of ones with diagonal zeros D Array of ones with all elements zeros MCQSEXAM Show answer Read explanation
Data Science · NumPy What function is used to reshape a NumPy array? A reshape() Correct answer B resize() C Both A and B D None of the above MCQSEXAM Show answer Read explanation
Data Science · NumPy Which of the following is not a valid data type in NumPy? A int32 B string Correct answer C float64 D complex128 MCQSEXAM Show answer Read explanation
Data Science · NumPy What does the dtype attribute of a NumPy array represent? A Data type of the array Correct answer B Dimension of the array C Shape of the array D Size of the array MCQSEXAM Show answer Read explanation
Data Science · NumPy Which function is used to find the maximum value in an array? A max() B maximum() C np.max() Correct answer D np.maximum() MCQSEXAM Show answer Read explanation
Data Science · NumPy What is the result of np.arange(5)? A [0, 1, 2, 3, 4] Correct answer B [1, 2, 3, 4, 5] C [0, 1, 2, 3] D [1, 2, 3, 4] MCQSEXAM Show answer Read explanation
Data Science · NumPy Which function is used to create a new array filled with zeros? A zeros() Correct answer B ones() C empty() D arange() MCQSEXAM Show answer Read explanation
Data Science · NumPy What is the main advantage of using NumPy arrays over Python lists? A NumPy arrays are resizable B NumPy arrays can hold elements of different data types C NumPy arrays support vectorized operations Correct answer D NumPy arrays have built-in sorting functions MCQSEXAM Show answer Read explanation
Data Science · NumPy Which of the following data structures does NumPy primarily work with? A Lists B Sets C Arrays Correct answer D Dictionaries MCQSEXAM Show answer Read explanation
Data Science · NumPy What does NumPy stand for? A Numeric Python Correct answer B Numerical Processing C Natural Python D None of the above MCQSEXAM Show answer Read explanation
Data Science · NumPy Which of the following is not a benefit of using NumPy? A Efficient computations B High-level mathematical functions C Large, multi-dimensional arrays and matrices D Built-in machine learning algorithms Correct answer MCQSEXAM Show answer Read explanation