MCQs – Python Programming Language – 1

Online Multiple Choice Questions about Learning Python Programming. It will help the learners to get knowledge of Python not only for learning the language but also to get some practices about Statistics with reference to Python Programming.

1. We have a data frame called df, choose the correct pandas property that shows you the number of rows and columns in the data frame.


2. Why is Python such a popular language?


3. We have a data frame called df. Which pandas property is used to check the columns’ data types?


4. What is a Python library?


5. Which is not important when writing Python code?


6. How do you print “X is large” if $X$ is greater than 28 in Python?


7. What datatype would the following variable have main_data=read.csv("path/to/myfile.csv")


8. What function(s) would print out the total missing data values for all columns of the data frame main_data?


9. Suppose you have a data frame named dfWhat does the following method do to the data frame df.head(12).


10. Which of the following is not a comparison operator (these return a boolean value of true or false).


11. Which command will grab the last few rows of a dataframe?


12. Before using pandas which code must first be run to make the library available?


13. Which data structure is [1,2,3,4].


14. How can wel tell what version of python we aer currently using?


15. Which data structure is {'one':1, 'two':2}.