0% found this document useful (0 votes)
9 views2 pages

Python Data Science Exam Questions

This document presents a final exam of 15 questions on basic concepts of Python for data science. The questions cover topics such as data types, operations with lists, dictionaries and strings, basic functions like len() and min(), and the Pandas package for data manipulation and analysis.

Translated by

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

Python Data Science Exam Questions

This document presents a final exam of 15 questions on basic concepts of Python for data science. The questions cover topics such as data types, operations with lists, dictionaries and strings, basic functions like len() and min(), and the Pandas package for data manipulation and analysis.

Translated by

ScribdTranslations
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

INTRODUCTION TO PYTHON FOR DATA SCIENCE

FINAL COURSE EXAM

Instruction 1
Read each question and select the correct answer. Mark your answer on the questionnaire.
the website of Netzun.

# Question Response options

1 If we have a variable that is height [Link]


= 180y we create a variable height_2 = [Link]
height*2 what type of variable will it be [Link]
height_2?

2 The following line of Python will throw [Link]


an error true or false? [Link]
A multiplication of two integers c. It cannot be determined
as
whole

3 If we have the following list: distances = supermarket


[{"word":"school","value1":11.25,"value2":8.9},{"word":"hospital","value1":18.0}] b.11,25
supermarket, 20.0, What does it return to us c.["hospital", 18.0]
distances[0][1]?

4 What are the keys of the following a.[0,1,2]


diccionario?dicc_temp = { b.[“Brasil”, “Mexico”, “Peru”]
“Brasil”: 2, c. [2, [1,2,3], “abc”]
“Mexico”:[1,2,3],
“Peru”:”abc”}

5 What are the values of the following a.[0, 1, 2]


diccionario?dicc_temp = { b. [“Brasil”, “Mexico”, “Peru”]
“Brasil”: 2, c.[2, [1,2,3], “abc”]
“Mexico”:[1,2,3],
“Peru”:”abc”}

6 If we have distance = 20, what does it tell us? a. True


is return distance != 10? [Link]

7 What is the last value of the list that we a. 21


generate range(20)? b.18
c. 19
INTRODUCTION TO PYTHON FOR DATA SCIENCE

8 If we have the following list: distances = a. 11.25


What value do we b.0
regresamin(distances)? c.8.90

9 If we have the following list: distances = a. 2


What value do we b. 5
return(distances)? c. 4

10 What is Pandas in Python? a. A function that helps us to


perform mathematical operations
b.A package of functions of
Python that helps us manipulate
data and conduct analysis
c.A function to print values

11 How is it commonly abbreviated? [Link]


Pandas? [Link]
[Link]

12 What does the first parameter tell us about [Link] del archivo
open to open a file? [Link] is the location of the file
None of the above

13 What does 'w' tell us when we use it? [Link] a file


mode("r")? [Link] a file
[Link] information to a
file

14 What is the difference between a a. They are the same only that the
method and a function? functions have arguments and
the methods are executed
after the variable
b. The methods will depend
of the object and the function is not a
attribute of the object
[Link] of the above

15 What does [Link]() return? a. The names of the columns


of df
b.A description of the
columns of a dataframe with
certain statistical variables
[Link] values of the
columns of the dataframe

You might also like