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 Wayground
17 questions
Python -- Arithmetic Operators

Flashcard
•
9th - 12th Grade
19 questions
Python Essentials 119

Flashcard
•
9th - 12th Grade
20 questions
Python Math & Random Review

Flashcard
•
9th - 12th Grade
13 questions
Functions and Parameters

Flashcard
•
9th - 12th Grade
15 questions
Python

Flashcard
•
10th - 12th Grade
14 questions
Javascript Control Structures Practice

Flashcard
•
9th - 12th Grade
16 questions
Code.org CSP Unit 4 Review

Flashcard
•
9th - 12th Grade
18 questions
Python Basics Review

Flashcard
•
10th Grade
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade
Discover more resources for Computers
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade