Python - Unit Test 2

Python - Unit Test 2

Assessment

Flashcard

Computers

9th Grade

Practice Problem

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

13 questions

Show all answers

1.

FLASHCARD QUESTION

Front

Which of the following correctly allows for the input of "Integers"? Options: ex = input("Enter something: "), ex =int(input("Enter something: ")), ex = Integers(input("Enter something: ")), ex = float(input("Enter something: ")), ex = decimals(input("Enter something: "))

Back

ex =int(input("Enter something: "))

2.

FLASHCARD QUESTION

Front

Which of the following is not a data type of Python? char, int, float, str, complex

Back

char

3.

FLASHCARD QUESTION

Front

Which of the following outputs would generate a "syntax" error? Options: print(5.0 + 2), print(5.0 - 2), print(5.0 # 2), print(5.0% 2), print(5.0 * 2)

Back

print(5.0 # 2)

4.

FLASHCARD QUESTION

Front

Given the following program. If the user inputs: 5 and 4, what output would be generated? Options: 9, 20, 54, Syntax Error, Runtime Error

Media Image

Back

54

5.

FLASHCARD QUESTION

Front

Given the following program. If the user inputs: 5 and 4, what output would be generated? Options: 9, 20, 54, Syntax Error, Runtime Error

Media Image

Back

9

6.

FLASHCARD QUESTION

Front

Which of the following correctly allows for the input of "Decimals"? Options: ex = input("Enter something: "), ex =int( input("Enter something: ")), ex = Integers(input("Enter something: ")), ex = float(input("Enter something: ")), ex = decimals(input("Enter something: "))

Back

ex = float(input("Enter something: "))

7.

FLASHCARD QUESTION

Front

Which of the following correctly allows for the input of "Strings"? Options: ex = input("Enter something: "), ex =int( input("Enter something: ")), ex = Integers(input("Enter something: ")), ex = float(input("Enter something: ")), ex = decimals(input("Enter something: "))

Back

ex = input("Enter something: ")

Create a free account and access millions of resources

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?