Python String Methods Quiz

Quiz
•
Information Technology (IT)
•
10th Grade
•
Hard
Used 6+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the following string concatenation in Python: "Hello" + " " + "World"?
"HelloWorld"
"Hello World"
"Hello World"
"HelloWorld "
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following operators is used for string concatenation in Python?
*
+
-
/
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code: print("Python" + "Programming")?
Python Programming
PythonProgramming
Python+Programming
Python Programming
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you concatenate the strings "Data" and "Science" with a space in between?
"Data" + "Science"
"Data" + " " + "Science"
"Data" * "Science"
"Data" - "Science"
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of slicing the string "HelloWorld" with [:5]?
"Hello"
"World"
"HelloWorld"
"oWorld"
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If s = "PythonProgramming", what does s[6:12] return?
"Python"
"Program"
"Progra"
"onProg"
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code: s = "abcdef"; print(s[2:5])?
"abc"
"bcd"
"cde"
"cdef"
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Quiz tentang Google Colab

Quiz
•
10th Grade - University
18 questions
Python Library Routines Quiz

Quiz
•
10th Grade - University
20 questions
Programming Review Quiz

Quiz
•
9th - 12th Grade
20 questions
JavaScript CFE Review #2

Quiz
•
10th Grade
10 questions
Introduction to Computer Science Concepts

Quiz
•
6th Grade - University
10 questions
¿Cuánto sabes de programación?

Quiz
•
10th Grade
20 questions
Introduction to Python Programming Quiz

Quiz
•
10th Grade
12 questions
Review loops

Quiz
•
8th Grade - University
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