Python - Unit Test 2

Python - Unit Test 2

Assessment

Flashcard

Computers

9th Grade

Hard

Created by

Quizizz 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

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

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
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?