Search Header Logo
1/14 AP Daily Do Now

1/14 AP Daily Do Now

Assessment

Interactive Video

Science

9th - 12th Grade

Easy

Created by

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?