
Python String Operations Quiz
Quiz
•
Computers
•
University
•
Hard
ANKUSH JOSHI
Used 1+ times
FREE Resource
58 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code? print("Python"[0])
P
y
t
Error
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct way to define a string in Python?
str = 'Hello'
str = "Hello"
str = '''Hello'''
All of the above
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you find the length of a string in Python?
len(string)
length(string)
string.size()
string.length()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you concatenate two strings in Python?
str1 + str2
str1.concat(str2)
str1.add(str2)
str1 & str2
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code? print("Python" + " Programming")
PythonProgramming
Python Programming
Python + Programming
Python
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code? print("Hello"[1:4])
ell
llo
Hel
lo
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of "Python"[-1]?
P
n
y
Error
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
60 questions
JavaScript -MIDTERM EXAM
Quiz
•
University
53 questions
System Analysis and Design (Prelim Exam)
Quiz
•
University
53 questions
Modules 1-2
Quiz
•
University
55 questions
Information Security Management System - Kuis 1
Quiz
•
University
55 questions
Microsoft Azure Fundamentals AZ-900 ENG #1
Quiz
•
University - Professi...
60 questions
ISFORM Online Midterm Exam
Quiz
•
University
60 questions
Bài kiểm tra tin học văn phòng đề 1
Quiz
•
University
62 questions
SAINS KOMPUTER TING 4 - 1.2 ALGORITMA
Quiz
•
12th Grade - University
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Computers
10 questions
Halloween Movies Trivia
Quiz
•
5th Grade - University
12 questions
Halloween
Quiz
•
3rd Grade - University
5 questions
Using Context Clues
Interactive video
•
4th Grade - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
14 questions
Eat Healthy,Be Healty
Quiz
•
4th Grade - University
7 questions
History of Halloween: Pagan or Christian?
Interactive video
•
11th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
