Python String Slicing
Quiz
•
Computers
•
University
•
Practice Problem
•
Medium
Sarju S
Used 44+ times
FREE Resource
Enhance your content in a minute
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of above Python code?
str1="6/4"
print("str1")
1
6/4
1.5
str1
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following will result in an error?
print(str1[2])
str1[1]="x"
print(str1[0:9])
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of below Python code?
str1="Information"
print(str1[2:8])
format
formatio
orma
ormat
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the code given below?
# Code snippet starts
org = ‘QuizOrbit’
print(org[-1:-6:-1])
# Code snippet ends
tibrO
Orbit
Quiz
QuizOrbit
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Find the output of the code given below?
# Code snippet starts
org = ‘QuizOrbit’
print(org[::-1])
# Code snippet ends
tibrOziuQ
QuizOrbit
OrbitQuiz
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of below code:
s=’cppbuzz chicago’
print(s[3:5])
buzzc
pbuzz
bu
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A string is an _______ data type.
Mutable
Immutable
Access all questions and much more by creating a free account
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
Already have an account?
Similar Resources on Wayground
10 questions
Module 09 - Day 3
Quiz
•
University
10 questions
Q1 - Python
Quiz
•
University
10 questions
Python-Quiz-Basic-Datatypes
Quiz
•
12th Grade - Professi...
12 questions
Microsoft Excel
Quiz
•
University
12 questions
Python Quiz 1.4
Quiz
•
University
10 questions
CodeMonkey for B.Ed IT
Quiz
•
University
10 questions
FOP - CHAPTER 4
Quiz
•
University
10 questions
McCall factor model
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
