0% found this document useful (0 votes)
24 views6 pages

Quiz Questions

The questions are about Data visualization

Uploaded by

Harleen queenzel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views6 pages

Quiz Questions

The questions are about Data visualization

Uploaded by

Harleen queenzel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

1.Which of the following is commonly considered an aesthetic mapping in data visualization?

Ø Position
Ø Shape
Ø Size
Ø Color
Ø Line width
Ø Line type

2.What are the three layers of Matplotlib?


Ø Scripting Layer:
• Mostly consists of "pyplot" API
• Easy-to-use interface, designed for everyday users
Ø Artist Layer:
• The "painters" of Matplotlib
• Handles the fine details of creating figures
Ø Backend Layer
• The canvas, renderer, and events
• Low-level interface, interaction with the environment

3.In Python, using the “matplotlib” library, which of the following code will correctly plot a
line chart for the given data? x=np.linspace(0, 10, 100) and y=sin(x).

import matplotlib.pyplot as plt; plt.plot(x,y); plt.show()

4. Given a dataset that contains the annual sales of various car brands across different cities,
which of the following visualizations would be MOST appropriate for comparing the sales of
each car brand in each city?

A bar chart with car brands on the x axis and sales on the y axis, where each brand is
represented by a group of bars, each corresponding to a different city.

5. Which Seaborn function is used to set the theme of the plots?

sns.set_palette()

Qualitative palette : Categorical data

Distinct colors with no implied meaning

Deep, muted,pastel,dark,colorblind,bright

Sequential palette : Ordinal data or data with consistent range


Smooth gradient of colors from light to dark.

Diverging palette : To highlight high and low values.

Distinct colors diverging from neutral.

6. A climate scientist wants to plot annual average temperatures over the last century. The
trend shows a gradual increase in temperature. What kind of palette would be most fitting?

Sequential palette

7. What are the advantages of histograms and density plots

8. What are the limitations of histograms and density plots?

Advantages:

Intuitive

Simple

Visually appealing

Limitations:

Depend significantly on user defined parameters

Bin width for histogram

Bandwidth for density plots

9. What information could you gain from a box-plot

 Range : Min/Max value

 Lower/Upper quartile

 Median

 The Interquartile range

 Skewness

 Outliers
10. What is the primary purpose of a Q-Q plot?

To visually assess how the data’s distribution compares with a theoretical distribution

11.In a Q-Q plot, if the data points closely follow the 45-degree reference line, what does it
suggest about the data?

The data follows reference distribution

12.Which distribution is most commonly used as the reference distribution in Q-Q plots?

Standard Normal distribution

13. In creating a data visualization, it's imperative that the chosen visual elements (like color,
size, and shape) accurately convey the underlying data values and relationships. Which of the
following statements best reflects this principle?

The choice of visual aesthetics should enhance clarity and understanding without
misinterpreting the data

14. Ordinal data represents categorical data that has a specific order or ranking. True

15. Which type of data consists of infinite possible values within a specific range?

Continuous data

16.“pyplot”, a scripting interface, is a component of the Scripting Layer in Matplotlib True

17. The primary purpose of a histogram is to visualize relationships between two continuous
variables . False

18. Density plots are useful for visualizing the distribution of two or more groups of data on
the same plot. True

19. A density plot uses discrete bins to represent data distributions False

20. Which of the following changes will most likely affect the shape of a histogram?

Adjusting the number of bins

21. What type of data are box plots most commonly used for?

Continuous data
22. Given a dataset that contains the annual sales of various car brands across different cities,
which of the following visualizations would be MOST appropriate for comparing the sales of
each car brand in each city?

A bar chart with car brand on the x axis and sales on the y axis, where each brand is represented
by a group of bars, each corresponding to a different city.

23. To create a 3D plot in Matplotlib, which command should you use?

Using the matplotlib module and using ax=fig.add_subplot(111,projection=’3d’)

24. Let a= [x1 y1], b=[x2 y2], if c= a+b, d=2c, what is the y-component of d?

2y1+2y2

25. When scaling the zero vector by any scalar, the result is:

The zero vector

26. Scaling a vector by a scalar value affects its magnitude but not its direction.

False

27. Which of the following sets of vectors form a basis for two-dimensional space

[1 0][0 1]
[2 3][-3 2]

28. Given a vector space V of dimension n, how many vectors are needed in a basis for V

29. Any two non-zero vectors in two-dimensional space V will form a basis for V

False

30. If a set of vectors in three-dimensional space V is linearly independent, it automatically


forms a basis for V

False

31. The zero vector space has an empty set as its basis
True
32. If u and v form a basis for two-dimensional space, then any vector in the two-dimensional
space can be written as a linear combination of u and v

True

33. In Tableau, which of the following best describes a Dimension?

Qualitative data, typically used for segmenting data

34. Measures in Tableau can be aggregated, while Dimensions are typically used for
segmenting or categorizing data

True

35. Two different matrices can represent the same linear transformation by choosing different
bases

True

36. If a vector v in the three-dimensional space is reflected about the xy-plane, what is the
effect on its z-component?

The z component is multiplied by -1.

37. What happens to the determinant of a matrix that represents a reflection with x-axis and
y-axis in the two-dimensional space

The determinant becomes -1.

38. A shear transformation along the x-axis in a 2-dimensional space with a shear factor of k
transforms a point (x, y) to:

[x+ky y]

39. In a logarithmic scale, equal distances on the axis represent

Equal percentages of increase

40. A log scale can be used for data that includes negative numbers

False
41. If a point in the Cartesian coordinate system is at (0, -7),what is its radial distance r in
polar coordinates?

42. Which of the following represents the Cartesian coordinates corresponding to the polar
coordinates (5, pi/2)

(0,5)

43. The Cartesian coordinates (1, 0) and the polar coordinates (1,0) represent the same point

True

44. A log scale in a chart

Changes the way data is displayed by adjusting the axis to a logarithmic scale
Is not suitable for handling 0 or negative values

45. Using a log scale in visualization means that the actual data values are transformed.

False

46. What is the purpose of the "Get Data" feature in Power BI?

To connect to different data sources and import data into Power BI

47. Which of the following data sources can you connect to using Power BI’s "Get Data"
feature?

Excel spreadsheets, SQL server databases, Online servers like salesforce

48. In Power BI, what is the Query Editor used for?

To edit the M code generated by the ‘Get Data’ process

49. What does DAX stand for in Power BI?

Data Analysis Expressions

You might also like