
1/14 AP Daily Do Now
Interactive Video
•
Science
•
9th - 12th Grade
•
Easy
Amy Austin
Used 1+ times
FREE Resource
3 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What type of error occurs when attempting to concatenate a string and a float directly in Python?
SyntaxError
ValueError
TypeError
NameError
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which Python function is used to convert a value into a string data type?
int()
float()
str()
bool()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When using the `input()` function to get a number from the user, why might `int()` cause a `ValueError` if the user enters "89.5"?
The `input()` function always returns an integer.
`int()` can only convert whole numbers, not decimals, from a string.
The `ValueError` indicates a syntax issue in the code.
The number is too large for an integer.
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?