
Python - Strings
Quiz
•
Computers
•
Professional Development
•
Hard
Lucy Stephenson
Used 12+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In Python, what symbol do you use to concatenate a string?
*
-
+
/
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of this code?
fruit = "apple"
print (len(fruit))
2
3
4
5
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of this code?
message = "I love Computer Science!"
print (len(message))
21
22
23
24
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of this code?
homework = "Mrs Stephenson, can I have extra homework?"
print (len(homework))
12
22
32
42
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of this code?
colour = "Green"
print (colour.upper())
Green
GREEN
Syntax error
green
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of this code?
Subject = "Computer Science"
print (Subject.lower())
16
COMPUTER SCIENCE
computer science
Syntax error
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of this code?
animal = "cat"
print (cat.lower())
CAT
cat
3
Syntax error
Answer explanation
Wrong variable name.
Incorrect
animal = "cat"
print (animal.lower())
Correct
animal = "cat"
print (animal.lower())
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Internet dan Komputer
Quiz
•
Professional Development
20 questions
ASK : : KOD ARAHAN
Quiz
•
10th Grade - Professi...
20 questions
Arrays & Strings
Quiz
•
Professional Development
30 questions
Quiz - Functions in C
Quiz
•
Professional Development
20 questions
1ºDAM/DAW - Entornos de Desarrollo - UD1-6 - Prof. C. Boni
Quiz
•
University - Professi...
20 questions
Dispositivi di Input e Output
Quiz
•
Professional Development
21 questions
Struttura e componenti - Parziale 1
Quiz
•
Professional Development
20 questions
Computers
Quiz
•
7th Grade - Professio...
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
