No student devices needed. Know more
13 questions
what is a string?
any numeric value
any float value
any character value
any special symbol value
how we store string value in variable?
'string'
"string"
%string%
#sring#
For string symbol + means........................
addition
swapp
concatenation
multiplication
str1='101'
x=int(str1)
z=x+400
print(z)
101400
x400
501
none of above
fruit1="kiwi"
fruit2="strawberry"
print(len(fruit1))
print(len(fruit2))
kiwi and strawberry
4
10
4 10
410
index of a string begins with
1
0
a
-1
slicing string X="BOnVoyage"
print X[0:5]
BOnVoy
BOnVo
oyage
bonvo
Slicing string
x="BOnvoyage
print(x[4: ])
BOnvo
bonvo
voyage
VOYAGE
What data type is used for storing a single alphabetical or numerical symbol?
Character
String
Integer
Boolean
Real
A value stored in memory that cannot change while a program runs.
Constant
Variable
Data type
Assignment
Explore all questions with a free account