Python - Unit Test 2

Python - Unit Test 2

9th Grade

25 Qs

quiz-placeholder

Similar activities

Python while loops

Python while loops

12th Grade

20 Qs

Python basics yr7

Python basics yr7

6th - 9th Grade

20 Qs

Input and Output Devices

Input and Output Devices

7th Grade - University

20 Qs

CISModule1

CISModule1

9th - 12th Grade

26 Qs

Python basics

Python basics

2nd - 9th Grade

20 Qs

Python Basics Recap

Python Basics Recap

8th - 11th Grade

23 Qs

Programming Quiz

Programming Quiz

1st - 10th Grade

20 Qs

Computer Parts

Computer Parts

3rd - 12th Grade

20 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?