
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
Basics of programming - Quiz - 01

Quiz
•
University - Professi...
27 questions
Python Quiz

Quiz
•
Professional Development
23 questions
OCA Unit 1

Quiz
•
11th Grade - Professi...
22 questions
Python Training

Quiz
•
Professional Development
20 questions
C-Quest

Quiz
•
Professional Development
20 questions
QUIZ-5 static, String and StringBuffer

Quiz
•
Professional Development
20 questions
Quiz 5.1

Quiz
•
Professional Development
21 questions
Quiz 3.1

Quiz
•
Professional Development
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade