Given the following string: h = "Hello", which code results in an error? Options: print (h), print(h.lower()), h = 's', print(h+1)

Unit 1 Review: Python Basics

Flashcard
•
Computers
•
9th - 12th Grade
•
Hard
Quizizz Content
FREE Resource
Student preview

18 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Back
print(h+1)
2.
FLASHCARD QUESTION
Front
What is the output of the following code?
Back
An error message
3.
FLASHCARD QUESTION
Front
What does the input() function return? Options: an integer value, a string value, a float value, all of the above
Back
a string value
4.
FLASHCARD QUESTION
Front
What is the value of x after the following code is run?
Back
22
5.
FLASHCARD QUESTION
Front
Which statement sets the variable t to a value of "Total Credits: 25"? Options: t = "Total Credits:" + 25, t = "Total Credits:" + str(25), t = input("Total Credits:" + str(25)), print("Total Credits", "25")
Back
t = "Total Credits:" + str(25)
6.
FLASHCARD QUESTION
Front
What is "print" used for?
Back
To display output
7.
FLASHCARD QUESTION
Front
What is the output of the following code?
print("He said, \"I'm coming to school tomorrow.\"")
Back
He said, "I'm coming to school tomorrow."
Create a free account and access millions of resources
Similar Resources on Quizizz
19 questions
Python Essentials 119

Flashcard
•
9th - 12th Grade
20 questions
Python Basics Review (TSK)

Flashcard
•
9th - 12th Grade
15 questions
Python

Flashcard
•
10th - 12th Grade
12 questions
CSP-A114 Flashcard

Flashcard
•
9th - 12th Grade
12 questions
CS Python Fundamentals Unit 4 Review

Flashcard
•
9th - 12th Grade
17 questions
Python -- Arithmetic Operators

Flashcard
•
9th - 12th Grade
20 questions
Midterm YWLA AP CSP

Flashcard
•
9th - 12th Grade
17 questions
Python Basics

Flashcard
•
9th - 12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University