
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
Chapter 3 : Flowchart & Pseudocode

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

Quiz
•
Professional Development
21 questions
Quiz 3.1

Quiz
•
Professional Development
23 questions
OCA Unit 1

Quiz
•
11th Grade - Professi...
23 questions
JSON

Quiz
•
Professional Development
27 questions
Python Quiz

Quiz
•
Professional Development
20 questions
Quiz 5.1

Quiz
•
Professional Development
20 questions
JS - Practice 1

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade