Python - Unit Test 2

Python - Unit Test 2

9th Grade

25 Qs

quiz-placeholder

Similar activities

Python Final Exam

Python Final Exam

9th Grade

21 Qs

Python Quiz

Python Quiz

6th - 10th Grade

20 Qs

NEWBEEZ_R1_B1

NEWBEEZ_R1_B1

University

20 Qs

g12b

g12b

9th Grade

20 Qs

Python for beginners

Python for beginners

University

20 Qs

Input and Output Devices Quiz

Input and Output Devices Quiz

9th Grade

21 Qs

Fundamentals

Fundamentals

University

20 Qs

Python Basics-02

Python Basics-02

9th - 12th Grade

21 Qs

Python - Unit Test 2

Python - Unit Test 2

Assessment

Quiz

Computers

9th Grade

Medium

Created by

John Miller

Used 7+ times

FREE Resource

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: "))

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?