Python/Pandas MCQ Questions Set 1 Sample Test,Sample questions

Question:
 The data label associated with a particular value of Series is called its ______

1.Data value

2.Index

3.Value

4.None of the above


Question:
 What type of error is returned by following code?
import pandas as pd
S1 = pd.Series(data = (31, 2, -6), index = [7, 9, 3, 2])
print(S1)

1.SyntaxError

2.IndexError

3.ValueError

4.None of the above


Question:
 Which attribute is used to give user defined labels in Series

1.. index

2.data

3.values

4.None of the above


Question:
A Series by default have numeric data labels starting from ______________.

1.3

2.2

3.1

4.0


Question:
A __________ is a collection of data values and operations that can be applied to that data.

1.Data Structure

2.Data Frame

3.Table

4.None of the above


Question:
A _______________ is a one-dimensional array.

1.Data Frame

2.Series

3.Both of the above

4.None of the above


Question:
Fill in the blank to get the ouput as 3
import pandas as pnd
S1=pnd.Series([1,2,3,4], index = ['a','b','c','d'])
print(S1[___________])

1.‘c’

2.2

3.c

4.All the above


Question:
How many elements will be there in the series named “S1”?
>>> S1 = pd.Series(range(5))

>>> print(S1)

1.5

2.4

3.6

4.None of the above


Question:
How many values will be there in array1, if given code is not returning any error?
>>> series4 = pd.Series(array1, index = [“Jan”, “Feb”, “Mar”, “Apr”])

1.1

2.2

3.3

4.4


Question:
Important data structure of pandas is/are _

1. Series

2.Data Frame

3.Both of the above

4.None of the above


Question:
NumPy stands for ____

1.Number Python

2. Numerical Python

3.Numbers in Python

4.None of the above


Question:
Pandas Series can have _________________ data types

1.NumPy

2.Pandas

3.Matplotlib

4.None of the above


Question:
PANDAS stands for _____________

1.Panel Data Analysis

2.Panel Data analyst

3.Panel Data

4.Panel Dashboard


Question:
We can imagine a Pandas Series as a ______________ in a spreadsheet

1.Column

2.Cell

3.Table

4.None of the above


Question:
What type of error is returned by following statement?
import pandas as pnd
pnd.Series([1,2,3,4], index = [‘a’,’b’,’c’])

1.SyntaxError b. c.

2.IndexError

3.ValueError

4.None of the above


Question:
When we create a series from dictionary then the keys of dictionary become ____

1.Index of the series

2.Value of the series

3.Caption of the series

4. None of the series


Question:
When we create a series from dictionary then the keys of dictionary become ____

1.Index of the series

2.Value of the series

3.Caption of the series

4. None of the series


Question:
When we create a series from dictionary then the keys of dictionary become ____

1.Index of the series

2.Value of the series

3.Caption of the series

4. None of the series


Question:
When you print/display any series then the left most column is showing _________ value.

1.Index

2.Data

3.Value

4.None of the above


Question:
Which of the following are modules/libraries in Python?

1.NumPy

2.Pandas

3.Matplotlib

4.All the above


Question:
Which of the following command is used to install pandas?

1.pip install pandas

2.install pandas

3. pip pandas

4.None of the above


Question:
Which of the following function/method help to create Series?

1.series( )

2. Series( )

3.createSeries( )

4.None of the above


Question:
Which of the following libraries allows to manipulate, transform and visualize data easily and efficiently.

1.Pandas

2.NumPy

3.Matplotlib

4.All the above


Question:
Which of the following library in Python is used for plotting graphs and visualization

1.Pandas

2.NumPy

3.Matplotlib

4.None of the above


Question:
Which of the following module is to be imported to create Series?

1.NumPy

2.Pandas

3.Matplotlib

4.None of the above


Question:
Which of the following statement is correct for importing pandas in python?

1.import pandas

2. import pandas as pd

3.import pandas as pds

4.All the above


Question:
Which of the following statement is wrong?

1.We can create Series from Dictionary in Python.

2.Keys of dictionary become index of the series.

3.Order of indexes created from Keys may not be in the same order as typed in dictionary.

4.All are correct


Question:
Which of the following statement will create an empty series named “S1”?

1. S1 = pd.Series(None)

2. S1 = pd.Series( )

3.Both of the above

4.None of the above


Question:
Write the output of the following :
>>> S1=pd.Series(14, index = ['a', 'b', 'c'])
>>> print(S1)

1.a 14 b 14 c 14 dtype: int64

2.a 14 dtype: int64

3.Error

4.None of the above


Question:
Write the output of the following:
>>> S1=pd.Series(14, 7, index = ['a', 'b', 'c'])
>>> print(S1)

1.a 14 b 7 c 7 dtype: int64

2.a 14 b 7 dtype: int64

3.Error

4.None of the above


Question:
____ is an important library used for analyzing data.

1.Math

2.Random

3.Pandas

4. None of the above


More MCQS

  1. Python MCQS - Function
  2. Python MCQS - GUI in python
  3. Python MCQS - Operators
  4. Python MCQS - Data type in python
  5. Python MCQS - loops in python
  6. Python MCQS - Numpy
  7. Python MCQS - sqlite3
  8. Python MCQS - Library
  9. Python MCQS - Pandas
  10. Python MCQs
  11. Dictionary Python MCQ set 1
  12. Dictionary Python MCQ set 2
  13. MCQ For Python Fundamentals
  14. MCQ Introduction to Python Section 1
  15. MCQ Introduction to Python Section 2
  16. MCQ Introduction to Python Section 3
  17. MCQ on Flow of Control in Python Set 1
  18. MCQ on Flow of Control in Python Set 2
  19. MCQ on Python String Set 1
  20. File Handling in Python section 1
  21. File Handling in Python section 2
  22. Python Functions MCQS Set 1
  23. Python Functions MCQS Set 2
  24. MCQ on List in Python
  25. Pandas MCQ Questions Set 1
  26. Pandas MCQ Questions Set 2
  27. Tuple MCQ in Python
  28. Python dataframe MCQ
  29. Python Mcq Set 1
  30. Python Mcq Set 2
  31. Python Mcq Set 3
  32. Python Mcq Set 4
  33. Python Mcq Set 5
  34. Python Mcq Set 6
  35. Python Mcq Set 7
  36. Python Mcq Set 8
  37. Python Mcq Set 9
  38. Python Mcq Set 10
  39. Python Mcq Set 11
  40. Python Mcq Set 12
  41. Python Mcq Set 13
  42. Python Mcq Set 14
  43. Python Mcq Set 15
  44. Python Mcq Set 16
  45. Python Mcq Set 17
  46. Python Mcq Set 18
  47. Python Mcq Set 19
  48. Python Mcq Set 20
  49. Python Mcq Set 21
  50. Python MCQ
  51. Python MCQ Questions with Answer
  52. Python Practice Papers
  53. python mcq question and answer
  54. Test
Learn Pandas MCQ Questions Set 1,Learn Python Objetive choice questions and answers,Python Multiple choice questions and answers,Python objective, Python questions , Python answers,Python MCQs questions and answer
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!