Search Header Logo

Python - Unit Test 2

Authored by John Miller

Computers

9th Grade

Used 7+ times

Python - Unit Test 2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 4 pts

Which of the following correctly allows for the input of "Integers"?

ex = input("Enter something: ")
ex =int(input("Enter something: "))
ex = Integers(input("Enter something: "))
ex = float(input("Enter something: "))
ex = decimals(input("Enter something: "))

2.

MULTIPLE CHOICE QUESTION

1 min • 4 pts

Which of the following is not a data type of Python?

char
int
float
str
complex

3.

MULTIPLE CHOICE QUESTION

1 min • 4 pts

Which of the of the following outputs would generate a "syntax" error?

print(5.0 + 2)
print(5.0 - 2)
print(5.0 # 2)
print(5.0% 2)
print(5.0 * 2)

4.

MULTIPLE CHOICE QUESTION

1 min • 4 pts

Media Image

Given the following program. If the user inputs: 5 and 4, what output would be generated?

9
20
54
Syntax Error
Runtime Error

5.

MULTIPLE CHOICE QUESTION

1 min • 4 pts

Media Image

Given the following program. If the user inputs: 5 and 4, what output would be generated?

9
20
54
Syntax Error
Runtime Error

6.

MULTIPLE CHOICE QUESTION

1 min • 4 pts

Which of the following correctly allows for the input of "Decimals"?

ex = input("Enter something: ")
ex =int( input("Enter something: "))
ex = Integers(input("Enter something: "))
ex = float(input("Enter something: "))
ex = decimals(input("Enter something: "))

7.

MULTIPLE CHOICE QUESTION

1 min • 4 pts

Which of the following correctly allows for the input of "Strings"?

ex = input("Enter something: ")
ex =int( input("Enter something: "))
ex = Integers(input("Enter something: "))
ex = float(input("Enter something: "))
ex = decimals(input("Enter something: "))

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?