ExamLookup
Menu mobile
Home
Current Affairs
General Knowledge
Computer
Python
HTML
MCQ PYTHON - OPERATORS EXPRESSIONS AND PYTHON STATEMENTS MCQ Questions
English
Hindi
Question No. -
161
Report Bug
____ is the output you get when '2'==2 is executed
____ वह आउटपुट है जो आपको तब मिलता है जब '2'==2 निष्पादित होता है-
____ वह आउटपुट है जो आपको तब मिलता है जब '2'==2 निष्पादित होता है-
A.
True
सही
B.
false
गलत
C.
ValueError occurs
ValueError होती है
D.
TypeError occurs
TypeError होता है
Question No. -
162
Report Bug
which one is an Assignment Operator
एसाइन्मेंट आपरेटर है :
एसाइन्मेंट आपरेटर है :
A.
#
#
B.
=
=
C.
/
/
D.
&
&
Question No. -
163
Report Bug
Which of the following is an invalid statement in python.
निम्नलिखित में से कौन सा पायथन मे इनवैलिड स्टेटमेन्ट है ।
निम्नलिखित में से कौन सा पायथन मे इनवैलिड स्टेटमेन्ट है ।
A.
abc=2,00,000
abc=2,00,000
B.
a,b,c=200,300,400
a,b,c=200,300,400
C.
a_b_c= 2,00,000
a_b_c= 2,00,000
D.
abc=200 300 400
abc=200 300 400
Question No. -
164
Report Bug
What is the output of the code print(7%2).
कोड print(7%2) का आउटपुट क्या है।
कोड print(7%2) का आउटपुट क्या है।
A.
5.5
5.5
B.
3.5
3.5
C.
1
1
D.
None of the above
इनमें से कोई नहीं
Question No. -
165
Report Bug
The for loop in Python is an ____ .
पॉयथन में फॉर लूप...... है ।
पॉयथन में फॉर लूप...... है ।
A.
Entry Controlled Loop
इंट्री कंट्रोल्ड लूप
B.
Exit Controlled Loop
एक्जिट कंट्रोल्ड लूप
C.
Both of the above
उपर्युक्त दोनों
D.
None of the above
उपर्युक्त में से कोई नहीं
Question No. -
166
Report Bug
Can we write if / else into one line in python?
क्या हम पाइथन में एक लाइन में if / else लिख सकते हैं?
क्या हम पाइथन में एक लाइन में if / else लिख सकते हैं?
A.
Yes
Yes
B.
No
No
C.
if / else not used in python
if / else not used in python
D.
None of the above.
उपर्युक्तमें से कोई नहीं
Explanation
a='good' if 2+2==4 else 'bad'
print(a)
Question No. -
167
Report Bug
A loop block in python starts with a.. -
पायथन में एक लूप ब्लॉक एक... से शुरू होता है
पायथन में एक लूप ब्लॉक एक... से शुरू होता है
A.
; (semicolon)
; (semicolon)
B.
,(Comma)
,(Comma)
C.
: (colan)
: (colan)
D.
None of these
कोई नही
Question No. -
168
Report Bug
Which of the following is not a valid keyword of Python associated with loops?
निम्नलिखित में से कौन लूप से सम्बन्धित पायथन का वैलिड कीवर्ड नहीं है?
निम्नलिखित में से कौन लूप से सम्बन्धित पायथन का वैलिड कीवर्ड नहीं है?
A.
continue
continue
B.
check
चेक
C.
range
रेंज
D.
break
ब्रेक
Question No. -
169
Report Bug
___ in Python is a counter-controlled loop.
पायथन में काउन्टर कन्ट्रोल्ड लूप है ।
पायथन में काउन्टर कन्ट्रोल्ड लूप है ।
A.
for
for
B.
while
while
C.
Both A and B
A तथा B दोनों
D.
None of the above
उपर्युक्त में से कोई नहीं
Question No. -
170
Report Bug
If the else statement is used with a while loop, the else statement is executed when the condition becomes _____ .
यदि else स्टेटमेंट का प्रयोग 'व्हाइल' लूप के साथ किया जाता है, तो else स्टेटमेंट तब निष्पादित होता है जब कंडीशन हो जाती है।
यदि else स्टेटमेंट का प्रयोग 'व्हाइल' लूप के साथ किया जाता है, तो else स्टेटमेंट तब निष्पादित होता है जब कंडीशन हो जाती है।
A.
True
ट्रू
B.
False
फॉल्स
C.
Infinite
इन्फाईनाइट
D.
NULL
शून्य
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
CCC Online Test 2021
CCC Practice Test Hindi
Python Programming Tutorials
Best Computer Training Institute in Prayagraj (Allahabad)
O Level NIELIT Study material and Quiz
Bank SSC Railway TET UPTET Question Bank
career counselling in allahabad
Sarkari Exam Quiz
Website development Company in Allahabad