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
16 questions
Sistematizacija gradiva IX

Quiz
•
9th Grade - University
20 questions
post test 1

Quiz
•
10th Grade
17 questions
Flowcharts

Quiz
•
10th Grade
15 questions
Programming languages and translators

Quiz
•
9th - 12th Grade
10 questions
Scratch - základy

Quiz
•
6th Grade - University
16 questions
9 Weeks Test

Quiz
•
9th - 12th Grade
20 questions
BÀI KIỂM TRA 15 PHÚT - Môn Tin Học 10 - HK2-PYTHON

Quiz
•
10th Grade - University
20 questions
Câu hỏi trắc nghiệm - Python cơ bản

Quiz
•
10th Grade
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
Discover more resources for Information Technology (IT)
10 questions
Video Games

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

Interactive video
•
6th - 10th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
6 questions
Rule of Law

Quiz
•
6th - 12th Grade
15 questions
ACT Math Practice Test

Quiz
•
9th - 12th Grade
18 questions
Hispanic Heritage Month

Quiz
•
KG - 12th Grade
10 questions
Would you rather...

Quiz
•
KG - University