Unit 3 Python TEST

Unit 3 Python TEST

Assessment

Flashcard

Computers

11th - 12th Grade

Hard

Created by

Quizizz Content

FREE Resource

Student preview

quiz-placeholder

20 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What is the final result of the expression 4 + 5 * 3?

Back

19

2.

FLASHCARD QUESTION

Front

What is the final result of the expression 7 / 2 + 6?

Back

9.5

3.

FLASHCARD QUESTION

Front

Choose the print statement below that will cause an error. Assume that num has the value 6, and name has the value Isabella.
Options:
print(name + “:” )
print(num)
print(name + ” wants ” + “num ” + “candies”)
print(name + “: ” + str(num))
print(name + “: ” + num)

Back

print(name + “: ” + num)

4.

FLASHCARD QUESTION

Front

Which one of the statements below will cause an error? ans = “hi” * 8, ans = “hi” + 9, ans = “hi” + “hi” + “hi”, ans = (“a” * 4) + “b”

Back

ans = “hi” + 9

5.

FLASHCARD QUESTION

Front

What does the following program print?
a = "hi"
b = 4
c = a * b
print(class(c))

Back

6.

FLASHCARD QUESTION

Front

Suppose you have a variable defined a = "4". What is the variable type of a?

Back

str

7.

FLASHCARD QUESTION

Front

Choose the option that correctly prints out the variable(s). Options: x = "codehs" print(int(x)), num = 8 print("num"), name = "Alyx" age = 32 print(name + "is " + age), language = "Python" print("I'm learning " + language)

Back

language = "Python" print("I'm learning " + language)

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?