PADMANVANI ARTS AND COLLEGE FOR WOMEN, 8.
Which function generates an array with evenly spaced values
SALEM-11
DEPARTMENT OF COMPUTER SCIENCE
between a start and stop value?
FUNDAMENTALS OF DATA SCIENCE A)np.linspace() B)np.arange() C)np.repeat() D)np.zeros()
INTERNAL –II 9. Which attribute is used to check the data type of elements in a
Class: II B.Sc [Computer Science] - [Artificial Intelligence & Data Science]
Duration: NumPy array?
Date: Max. Marks: A)arr.dtype B)arr.type C)arr.data_type D)arr.get_type()
10. What does np.array([1, 2, 3]) * np.array([4, 5, 6]) return?
PART- A 10*1=10 A) [4, 10, 18] B)[1, 2, 3, 4, 5, 6]
Answer all Questions C) Error: Arrays cannot be multiplied. D) [5, 7, 9]
1. In a normal distribution, if the data is skewed to the right, it is: PART –B 5*2=10
A) A standard normal distribution B)Not a normal distribution Answer any two
C) A bimodal distribution D) A left-skewed distribution
1. What is the purpose of finding proportions in a normal distribution,
2. What is the probability of observing a value within 2 standard
and how is it done?
deviations from the mean in a normal distribution? 2. What is the computational formula for the correlation coefficient, and
A) 68% B)75% C) 95% D) 99.7% how is it used?
3. In a normal distribution, which of the following is true about the 3. Describe how data indexing and selection work in NumPy
mean, median, and mode?
A) Mean = Median = Mode B)Mean> Median > Mode PART – C 10*3=30
C) Mean < Median < Mode D) Mean and median are equal Answer any three
4. If a z-score is negative, it means the data point is: 4. Describe how z-scores are used in statistical analysis. Explain how to
A) Above the mean B)Below the mean calculate a z-score and how it helps in comparing data points across
C) Equal to the mean different distributions.
5. Explain how to compute the correlation coefficient for quantitative
D) Greater than one standard deviation away from the mean data. Provide the formula for the correlation coefficient and explain
5. What is the shape of a normal distribution curve? each term.
A) Skewed to the right B)Skewed to the left 6. Explain the basics of NumPy arrays, including their creation and
C) Bell-shaped D) Uniform various methods for accessing, modifying, and manipulating data.
6. Which of the following methods can NOT be used to create a How do NumPy arrays improve performance over Python lists?
NumPy array? 7. Explain the difference between aggregation and grouping in data
analysis. How does NumPy handle these operations, and how do
A)np.array() B)np.zeros() C)np.ones() D)np.list()
you apply grouping techniques to summarize data?
7. What is the output of the following code?
import numpy as np
arr = np.array([10, 20, 30, 40, 50])
print(arr[3])
A) 20 B)30 C) 40 D) 50