Quiz Summary
0 of 20 Questions completed
Questions:
Information
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
Results
Results
0 of 20 Questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)
Categories
- Not categorized 0%
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- Current
- Review
- Answered
- Correct
- Incorrect
-
Question 1 of 20
1. Question
What is the result of computing the square root of
300
in Python?CorrectIncorrect -
Question 2 of 20
2. Question
How can you extract ‘500’ from the string stock_index = “SP500” using indexing?
CorrectIncorrect -
Question 3 of 20
3. Question
Which line of code correctly uses the
.format()
method to print “The SP500 is at 300 today”?CorrectIncorrect -
Question 4 of 20
4. Question
What function would you use to count the case-insensitive occurrences of ‘price’ in a given string?
CorrectIncorrect -
Question 5 of 20
5. Question
Which method is used to ensure the case-insensitive counting of substrings in a string?
CorrectIncorrect -
Question 6 of 20
6. Question
What error will occur if you try to call a function that has not been defined in your script?
CorrectIncorrect -
Question 7 of 20
7. Question
What does the following Python command return:
len("SP500")
?CorrectIncorrect -
Question 8 of 20
8. Question
What is NumPy primarily used for in Python?
CorrectIncorrect -
Question 9 of 20
9. Question
How do you create a basic array in NumPy?
CorrectIncorrect -
Question 10 of 20
10. Question
Which function in NumPy can create a sequence of numbers?
CorrectIncorrect -
Question 11 of 20
11. Question
What does
np.zeros((2,3))
return?CorrectIncorrect -
Question 12 of 20
12. Question
What is the result of
np.eye(3)
?CorrectIncorrect -
Question 13 of 20
13. Question
How does
np.linspace(0, 10, 5)
distribute its elements?CorrectIncorrect -
Question 14 of 20
14. Question
What is the main difference between
np.random.rand()
andnp.random.randn()
?CorrectIncorrect -
Question 15 of 20
15. Question
Which method finds the maximum value in a NumPy array?
CorrectIncorrect -
Question 16 of 20
16. Question
What does the
reshape
method do in NumPy?CorrectIncorrect -
Question 17 of 20
17. Question
What is a DataFrame in pandas primarily used for?
CorrectIncorrect -
Question 18 of 20
18. Question
Which command is used to create a DataFrame from a dictionary?
CorrectIncorrect -
Question 19 of 20
19. Question
What does the
.iloc
indexer do?CorrectIncorrect -
Question 20 of 20
20. Question
How do you select a single column from a DataFrame and keep it as a DataFrame?
CorrectIncorrect