null
US
Sign In
Sign Up for Free
Sign Up
We have detected that Javascript is not enabled in your browser. The dynamic nature of our site means that Javascript must be enabled to function properly. Please read our
terms and conditions
for more information.
Next up
Geography - Population
bohcass
Copy and Edit
You need to log in to complete this action!
Register for Free
21296711
Online Test - Strings
Description
Quiz on Online Test - Strings, created by Aparna Dhirde on 15/03/2020.
No tags specified
xi
Quiz by
Aparna Dhirde
, updated more than 1 year ago
More
Less
Created by
Aparna Dhirde
over 5 years ago
139
0
0
Resource summary
Question 1
Question
A string is a sequence of characters enclosed in ………
Answer
single quote
double quote
triple quote
all of the above
Question 2
Question
What will be the output of the following Python statement? >>>”a”+“bc”
Answer
a
bc
bca
abc
Question 3
Question
What arithmetic operators cannot be used with strings?
Answer
+
*
-
All of the mentioned
Question 4
Question
The format function, when applied on a string returns ___________
Answer
Error
int
bool
str
Question 5
Question
Python does not have a character data type.
Answer
True
False
Question 6
Question
Strings in Python are mutable
Answer
True
False
Question 7
Question
Retrieving a portion of a string is called slicing
Answer
True
False
Question 8
Question
Indexing is used for accessing individual characters within a string.
Answer
True
False
Question 9
Question
Each character of a string can be accessed either using a for loop or while loop.
Answer
True
False
Question 10
Question
What will be the output of the following Python statement? >>>”abcd”[2:]
Answer
a
ab
cd
dc
Show full summary
Hide full summary
Want to create your own
Quizzes
for
free
with GoConqr?
Learn more
.
Similar
Geography - Population
bohcass
A2 Level OCR: Communication & Homeostasis
Ollie O'Keeffe
Psychology | Unit 4 | Addiction - Explanations
showmestarlight
Polymers, alkanes and alkenes
amira-2000
Sociology: Crime and Deviance Flash cards
Beth Morley
Urbanisation
Jess Molyneux
Tests for Positive Ions: Flame Test Colours
bella.mort
OCR GCSE History-Paper Two: The Liberal Reforms 1906-14 Poverty to Welfare State NEW FOR 2015!!!
I Turner
Data Types
Jacob Sedore
Forces and Motion Practice Test
Fernanda Silva2990
Système circulatoire sanguin
Martin Fortier
Browse Library