Menu mobile
Home
PYTHON
Python Tutorial
Program Example
Interview Questions
JAVA
Java Tutorial
Program Example
Interview Questions
C Language
C Tutorial
Program Example
Interview Questions
Web Design
HTML
CSS
Java Script
PHP
Assignment
MS Office
HTML
CSS
Java Script
JQuery
AngularJs
QUIZ ON : PYTHON - STRING HANDLING IN PYTHON
STRING HANDLING IN PYTHON
00:00:00
English
Hindi
Question No# :
01
<p>What will be the output of the following Python code?</p> <pre class="de1" style="border-radius: 0px; padding: 0px; font-family: Consolas, Monaco, "Lucida Console", monospace; color: rgb(51, 51, 51); word-break: break-all; overflow-wrap: normal; background: rgb(244, 244, 244); border: 0px; overflow: visible; box-shadow: none; text-align: justify; margin-top: 0px !important; margin-bottom: 0px !important; line-height: 20px !important;"><span class="kw1" style="overflow: visible; padding: 0px; border: 0px; box-shadow: none; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; overflow-wrap: normal; color: rgb(255, 119, 0); font-weight: bold; margin: 0px !important; line-height: 20px !important;">print</span><span class="br0" style="overflow: visible; padding: 0px; border: 0px; box-shadow: none; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; overflow-wrap: normal; color: black; margin: 0px !important; line-height: 20px !important;">(</span><span class="st0" style="overflow: visible; padding: 0px; border: 0px; box-shadow: none; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; overflow-wrap: normal; color: rgb(72, 61, 139); margin: 0px !important; line-height: 20px !important;">'Hello!2@#World'</span>.<span class="me1" style="overflow: visible; padding: 0px; border: 0px; box-shadow: none; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; overflow-wrap: normal; color: black; margin: 0px !important; line-height: 20px !important;">istitle</span><span class="br0" style="overflow: visible; padding: 0px; border: 0px; box-shadow: none; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; overflow-wrap: normal; color: black; margin: 0px !important; line-height: 20px !important;">(</span><span class="br0" style="overflow: visible; padding: 0px; border: 0px; box-shadow: none; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; overflow-wrap: normal; color: black; margin: 0px !important; line-height: 20px !important;">)</span><span class="br0" style="overflow: visible; padding: 0px; border: 0px; box-shadow: none; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; overflow-wrap: normal; color: black; margin: 0px !important; line-height: 20px !important;">)</span></pre>
<p>निम्नलिखित Python कोड का आउटपुट क्या होगा?</p><pre class="de1" lucida="" console",="" monospace;="" color:="" rgb(51,="" 51,="" 51);="" word-break:="" break-all;="" overflow-wrap:="" normal;="" background:="" rgb(244,="" 244,="" 244);="" border:="" 0px;="" overflow:="" visible;="" box-shadow:="" none;="" text-align:="" justify;="" margin-top:="" 0px="" !important;="" margin-bottom:="" line-height:="" 20px="" !important;"="" style="font-size: 12.6px; letter-spacing: 0.14px; border-radius: 0px; padding: 0px;"><span class="kw1" style="overflow: visible; padding: 0px; border: 0px; box-shadow: none; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; overflow-wrap: normal; color: rgb(255, 119, 0); font-weight: bold; margin: 0px !important; line-height: 20px !important;">print</span><span class="br0" style="overflow: visible; padding: 0px; border: 0px; box-shadow: none; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; overflow-wrap: normal; color: black; margin: 0px !important; line-height: 20px !important;">(</span><span class="st0" style="overflow: visible; padding: 0px; border: 0px; box-shadow: none; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; overflow-wrap: normal; color: rgb(72, 61, 139); margin: 0px !important; line-height: 20px !important;">'Hello!2@#World'</span>.<span class="me1" style="overflow: visible; padding: 0px; border: 0px; box-shadow: none; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; overflow-wrap: normal; color: black; margin: 0px !important; line-height: 20px !important;">istitle</span><span class="br0" style="overflow: visible; padding: 0px; border: 0px; box-shadow: none; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; overflow-wrap: normal; color: black; margin: 0px !important; line-height: 20px !important;">(</span><span class="br0" style="overflow: visible; padding: 0px; border: 0px; box-shadow: none; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; overflow-wrap: normal; color: black; margin: 0px !important; line-height: 20px !important;">)</span><span class="br0" style="overflow: visible; padding: 0px; border: 0px; box-shadow: none; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; overflow-wrap: normal; color: black; margin: 0px !important; line-height: 20px !important;">)</span></pre>
A.
True
सही
B.
False
गलत
C.
None
कोई नहीं
D.
error
एरर
Question No# :
02
If wd="Hello World" then which of the following statements will display last five characters of the string object?
If wd="Hello World" then which of the following statements will display last five characters of the string object?
A.
wd[4:]
wd[4:]
B.
wd[:4]
wd[:4]
C.
wd[-5:]
wd[-5:]
D.
wd[:-4]
wd[:-4]
Question No# :
03
<p>What does the following code print ?</p><pre>x = 'mohan'<br>for i in range (len(x)):<br> x[i].upper()<br>print (x)</pre><div><br></div>
<p>निम्नलिखित कोड क्या प्रिंट करता है?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;">x = 'mohan'<br>for i in range (len(x)):<br> x[i].upper()<br>print (x)</pre>
A.
mohan
mohan
B.
MOHAN
MOHAN
C.
Error
Error
D.
None of These
None of These
Question No# :
04
What is the output of >>>’2’ +’3’
>>>'2' +'3' का आउटपुट क्या है
A.
23
23
B.
'2+3'
'2+3'
C.
'23'
'23'
D.
None of These
None of These
Question No# :
05
<p>What will be the output of the following expression?</p><pre><span style="font-size: 14px;">a = 2<br></span><span style="font-size: 14px;">b = 8<br></span><span style="font-size: 14px;">print(a|b )<br></span><span style="font-size: 14px;">print(a >> 1)</span></pre>
<p>निम्नलिखित अभिव्यक्ति का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">a = 2<br></span><span style="font-size: 14px;">b = 8<br></span><span style="font-size: 14px;">print(a|b )<br></span><span style="font-size: 14px;">print(a >> 1)</span></pre>
A.
10 0
10 0
B.
10 2
10 2
C.
2 2
2 2
D.
10 1
10 1
Previous
1
Next
CCC Online Test 2021
CCC Practice Test Hindi
Python Programming Tutorials
Best Computer Training Institute in Prayagraj (Allahabad)
Best Java Training Institute in Prayagraj (Allahabad)
Best Python Training Institute in Prayagraj (Allahabad)
O Level Online Test in Hindi
Bank SSC Railway TET UPTET Question Bank
career counselling in allahabad
Sarkari Naukari Notification
Best Website and Software Company in Allahabad
Sarkari Exam Quiz