What is the result of `print("3" + str(4))`?

G8 Python Programming Quiz

Quiz
•
Computers
•
8th Grade
•
Hard
Kiers McFarlane
Used 10+ times
FREE Resource
40 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
7
"34"
"7"
Error
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Why is `print("Age is", age)` better than `print("Age is" + age)` if age = 12?
It saves memory
It avoids a type error by using comma separation
It removes the need for quotation marks
It converts age to float
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does `print("Hi".lower().count("h"))` return?
1
0
2
Error
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If `msg = "hi there"`, what does `msg.find("e")` return?
6
7
True
"e"
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the main difference between `input("Age: ")` and `int(input("Age: "))`?
The second one saves more memory
The second converts the string to an integer
The first checks type
The second is only used for decimals
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In `user_age = input("Enter age: ") + 1`, what kind of error occurs?
SyntaxError
TypeError
IndexError
RuntimeError
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will `x = input("Enter number: "); print(type(x))` show if the user enters 8?
int
float
str
bool
Create a free account and access millions of resources
Similar Resources on Quizizz
45 questions
ICT REVISION

Quiz
•
8th Grade
44 questions
Python Test 2

Quiz
•
7th - 12th Grade
35 questions
Python procedures and functions

Quiz
•
8th - 10th Grade
40 questions
Python Assessment 1

Quiz
•
7th - 9th Grade
40 questions
FBLA Exploring Computer Science

Quiz
•
6th - 12th Grade
40 questions
M2 Reviewer for Final Test

Quiz
•
8th Grade
35 questions
الصف الثامن للشعب ( أ+ ب )

Quiz
•
8th Grade
40 questions
Ucertify Programming and Logic Review

Quiz
•
7th - 8th 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
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
17 questions
Parts of Speech

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

Quiz
•
KG - University
44 questions
El fin del año- 7th

Quiz
•
7th - 12th Grade
40 questions
Word Study Assessment: Roots, Prefixes, Suffixes, and Vocabulary

Quiz
•
8th Grade
17 questions
guess the logo

Quiz
•
8th Grade
16 questions
Function or Non-Function?

Quiz
•
8th - 10th Grade
15 questions
Sentence Fragments and Run-ons

Quiz
•
8th Grade