Python - Unit Test 2

Python - Unit Test 2

9th Grade

25 Qs

quiz-placeholder

Similar activities

Quiz1_12&11_2t_20214

Quiz1_12&11_2t_20214

12th Grade

20 Qs

Briefing Besar PIM III

Briefing Besar PIM III

University

20 Qs

Google

Google

7th - 12th Grade

20 Qs

Lecture Exercise Topic 1.3

Lecture Exercise Topic 1.3

12th Grade

21 Qs

Types of Computers

Types of Computers

10th Grade

20 Qs

แบบทดสอบบทที่ 1 เรื่อง ข้อมูลมีคุณค่า ม.5

แบบทดสอบบทที่ 1 เรื่อง ข้อมูลมีคุณค่า ม.5

10th Grade

20 Qs

Computer Science - X

Computer Science - X

8th - 10th Grade

20 Qs

CCEA Digital Technology Chapter 14 Multimedia Applications

CCEA Digital Technology Chapter 14 Multimedia Applications

11th Grade

20 Qs

Python - Unit Test 2

Python - Unit Test 2

Assessment

Quiz

Computers

9th Grade

Practice Problem

Medium

Created by

John Miller

Used 7+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?