Home > Python > Quizzes > Python Data Analysis Quiz
Python Data Analysis Quiz
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 47% Most missed: “What is the output of the following code?”

For Pluralsight Skill Assessments.

Python Data Analysis Quiz
Time left 00:00
17 Questions

1. What is the output of the following code?
def foo(n):
if n==0 or n==1:
return 1
else:
return n*foo(n1)
foo(5)
2. You need help implementing a classification model using support vector machines in Python. Which library documentation would be the most adequate resource to get -more information about your task
3. You have lists A and B.
A = [529, 144, 169, 729]
B = [23, 12, 13, 27]
How can you create B from A
4. What is the output of the following code?
def foo(n):
if n==0 or n==1:
return 1
else:
return n*foo(n1)
foo(5)
5. You are working on a method available under Pandas package to detect null values in a CSV file. You spot a bug in the package's method which is also treating blank -values as null. To add the bug to the official Pandas issue tracker, what should be your next step
6. You must execute a code statement multiple times as long as a certain condition remains valid. What control structure do you select?
7. What will help you create a one-line anonymous function?
8. What will help you create a one-line anonymous function?
9. If a default port is unavailable, how do you set up a custom port (9009) to launch Jupyter Notebook?
10. You need help implementing a classification model using support vector machines in Python. Which library documentation would be the most adequate resource to get -more information about your task
11. Which code snippet stores multi-line string in the variable string ?
12. What is the difference between %matplotlib inline and %matplotlib notebook ?
13. You are designing a function foo that will be called by other applications.Because the functionality provided by your function is applicable for several -applications, the function must accept a variable list of keyworded parameters. How would you write the function signature to comply with the aforementioned needs
14. If a default port is unavailable, how do you set up a custom port (9009) to launch Jupyter Notebook?
15. How is a tuple depicted in Python?
16. You are designing a function foo that will be called by other applications.Because the functionality provided by your function is applicable for several -applications, the function must accept a variable list of keyworded parameters. How would you write the function signature to comply with the aforementioned needs
17. What is a commonality between Python-centric integrated development environments (IDEs) and other general code editors used for software development?