Python - Unit Test 2

Python - Unit Test 2

9th Grade

25 Qs

quiz-placeholder

Similar activities

KJD X

KJD X

10th Grade

20 Qs

Grade 10 TLE ICT Final Unit Test 1

Grade 10 TLE ICT Final Unit Test 1

10th Grade

20 Qs

Y9 Creative iMedia RO81 Quiz Part 1

Y9 Creative iMedia RO81 Quiz Part 1

9th Grade

21 Qs

CSS 10 - QUIZ

CSS 10 - QUIZ

10th Grade

20 Qs

Trò chơi ôn tập GKI tin 12  lần 2

Trò chơi ôn tập GKI tin 12 lần 2

12th Grade

20 Qs

Sistem Informasi Manajemen

Sistem Informasi Manajemen

University

20 Qs

CHỦ ĐỀ A. MÁY TÍNH VÀ XÃ HỘI TRÍ THỨC P1

CHỦ ĐỀ A. MÁY TÍNH VÀ XÃ HỘI TRÍ THỨC P1

10th Grade

20 Qs

CSS GRADE 9 - QUIZ PECs and EM

CSS GRADE 9 - QUIZ PECs and EM

9th 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?