
#Sg_Spaic Last season Quiz (ML and Python)
Authored by ouhammouch hanane
Other
KG - Professional Development
Used 4+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following Python code snippet?
print('abcdefcdghcd'.split('cd', 2))
[‘ab', ‘ef', ‘ghcd']
[‘ab', ‘efcdghcd']
[‘abcdef', ‘ghcd']
none of the mentioned
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following Python code snippet? print('abcd'.translate('a'.maketrans('abc', 'bcd')))
bcde
abcd
error
bcdd
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following Python code?
Error
0
[-20, -60, -80]
[0, 0, 0]
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following functions cannot be used on heterogeneous sets?
pop
remove
update
sum
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements is false about recursion?
Every recursive function must have a base case
Infinite recursion can occur if the base case isn't properly mentioned
A recursive function makes the code easier to understand
Every recursive function must have a return value
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Why is “Naive” Bayes naive?Naive Bayes is considered “Naive” because it makes an assumption that is virtually impossible to see in real-life data
True
False
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Recall Is known as the false positive rate
True
False
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?