JavaScript isn't enabled in your browser, so this file can't be opened. Enable and reload.
XII COMPUTER SCIENCE EM TEST 8
8. STRINGS AND STRING MANIPULATION
one mark questions :
prepard by
S. SAMINATHAN,GHSS-MUKHASAPARUR, CUDDALORE DT.
https://sites.google.com/view/tn-computer-science/home
Sign in to Google
to save your progress.
Learn more
* Indicates required question
Name :
*
Your answer
Register Number
*
Your answer
school
*
GHSS MUKHASAPARUR
OTHERS
1. Which of the following is the output of the following python code?
str1="TamilNadu"
print(str1[::-1])
*
1 point
tamilnadu
tmlau
udanlimat
udaNimaT
2. What will be the output of the following code?
str1 = "Chennai Schools"
str1[7] = "-"
*
1 point
chennai
type error
Chennai-school
chenna-school
3. Which of the following operator is used for concatenation?
*
1 point
+
*
=
&
4. Defining strings within triple quotes allows creating:
*
1 point
Single line Strings
Multiline Strings
Double line Strings
Multiple Strings
5. Strings in python:
*
1 point
Changeable
flexible
Mutable
Immutable
6. Which of the following is the slicing operator?
*
1 point
[ ]
( )
<>
{ }
7. What is stride?
*
1 point
first argument of slice operation
second argument of slice operation
index value of slide operation
third argument of slice operation
8. Which of the following formatting character is used to print exponential notation in upper case?
*
1 point
%e or %E
%n
%g
%f
9. Which of the following is used as placeholders or replacement fields which get replaced along with format( ) function?
*
1 point
[ ]
{ }
^^
++
10. The subscript of a string may be:
*
1 point
Positive
Negative
Both (a) and (b)
Either (a) or (b)
Submit
Clear form
Never submit passwords through Google Forms.
This content is neither created nor endorsed by Google.
Report Abuse
-
Terms of Service
-
Privacy Policy
Forms