page-banner
Python M3-R5.1 MCQs SET-1
Q1.
निम्नलिखित कोड का परिणाम क्या है?

What is the output of the following code?

M=['b'* x for x in range(4)]
print(M)
A. [' ', 'b', 'bb', 'bbb']
B. ['b', 'bb', 'bbb','bbbb']
C. ['b', 'bb', 'bbb']
D. इनमें से कोई नहीं / None of these
View Answer
Q2.
निम्नलिखित का आउटपुट क्या है?

What is the output of the following code?

print(max([1, 2, 3, 4], [4, 5, 6], [7]))
A. [4, 5, 6]
B. [7]
C. [1, 2, 3, 4]
D. 7
View Answer
Q3.
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

What will be the output of the following Python code?

example = "helle"
example.rfind("e")
A. 1
B. 2
C. 4
D. 5
View Answer
Q4.
निम्नलिखित स्यूडो कोड का आउटपुट क्या होगा?

What will be the output of the following pseudo code?

Integer a, b
Set a = 10, b = 5
a = a mod (a - 6)
b = b mod (b - 2)
Print a - b
A. 4
B. 0
C. 1
D. 8
View Answer
Q5.
जब हम किसी फाइल को राइट मोड में खोलने का प्रयास करते हैं जो मौजूद नहीं है, तो निम्नलिखित में से कौन सी एरर आती है?

Which of the following error is returned when we try to open a file in write mode which does not exist?
A. फाइल फाउंड एरर / File Found Error
B. फाइल नॉट एग्जिस्ट एरर / File Not Exist Error
C. फाइल नॉट फाउंड एरर / File Not Found Error
D. इनमें से कोई नहीं / None of the above
View Answer
Q6.
निम्नलिखित पायथन कोड का मूल्य क्या है?

What is the value of the following Python code?

print(36 / 4)
A. 9
B. 9.0
C. 4
D. 4.0
View Answer
Q7.
निम्नलिखित पायथन कोड का आउटपुट क्या है?

What is the output of the following Python code?

print(5*(2//3))
A. 3
B. 0
C. 3.3
D. त्रुटि / Error
View Answer
Q8.
निम्नलिखित कोड का परिणाम क्या है?

What is the output of the following code?

import numpy as np
a = np.array([1,2,3])
print(a.ndim)
A. 1
B. 2
C. 3
D. 0
View Answer
Q9.
निम्नलिखित कोड का परिणाम क्या है?

What is the output of the following code?

a = set('abc')
b = set('cdef')
print(a&b)
A. {'c'}
B. {'a','b','c','d','e','f'}
C. {c}
D. इनमें से कोई नहीं / None of these
View Answer
Q10.
एक विस्तृत फ्लो चार्ट को ......... कहा जाता है।

A detailed flow chart is called as ...........
A. स्टैक / Stack
B. माइक्रो / micro
C. मैक्रो / macro
D. यूनियन / union
View Answer
Q11.
फ्लो चार्ट में आउटपुट को दर्शाने के लिए निम्न में से किस चिन्ह का प्रयोग किया जाता है?

Which of the following symbols is used to represent output in a flow chart?
A. वर्ग / Square
B. वृत्त / Circle
C. समांतर चतुर्भुज / Parallelogram
D. त्रिभुज / Triangle
View Answer
Q12.
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

What will be the output of the following Python code?

from math import *
floor(11.7)
A. 12
B. 11
C. 11.0
D. इनमें से कोई नहीं / None of these
View Answer
Q13.
पाइथन ______ नामक एक कंस्ट्रक्ट का उपयोग करते हुए, रनटाइम पर अनाम कार्यों के निर्माण को स्पोर्ट करता है।

Python supports the creation of anonymous functions at runtime, using a construct called -------------.
A. pi
B. anonymous
C. lambda
D. इनमें से कोई नहीं / none of the above
View Answer
Q14.
निम्नलिखित में से कौन सा शब्द Python भाषा का कीवर्ड नहीं है?

Which of the following words is not a keyword of Python language?
A. val
B. try
C. raise
D. with
View Answer
Q15.
निम्नलिखित का आउटपुट क्या होगा?

What will be the output of the following?

print(sum(1,2,3))
A. त्रुटि / Error
B. 6
C. 1
D. 3
View Answer
Q16.
एक स्ट्रिंग x="hello" को देखते हुए x.count ('l') का आउटपुट क्या होगा?

Given a string x="hello" What is the output of x.count('l')?
A. 2
B. 1
C. 0
D. इनमें से कोई नहीं / None
View Answer
Q17.
फ्लो चार्ट में पतंग/डायमंड प्रतीक का उपयोग _____ के लिए किया जाता है।

Kite/diamond symbol in a flow chart is used for _______.
A. निष्पादन / Execution
B. वक्तव्य / Statement
C. निर्णय / Decision
D. उपरोक्त सभी / All of the above
View Answer
Q18.
readlines() मेथड क्या रिटर्न करता है?

What does readlines() method return?
A. डिक्शनरी / Dictionary
B. स्ट्रिंग / String
C. ट्यूपल / Tuple
D. सूची / List
View Answer
Q19.
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

What will be the output of the following Python code?

def func(a, b=5, c=10):
    print('a is', a, 'and b is', b, 'and c is', c)
func(13, 17)
func(a=2, c=4)
func(5,7,9)
A. a is 13 and b is 15 and c is 10
a is 2 and b is 5 and c is 4
a is 5 and b is 7 and c is 9
B. a is 13 and b is 17 and c is 10
a is 2 and b is 4 and c is 4
a is 5 and b is 9 and c is 7
C. a is 13 and b is 17 and c is 10
a is 2 and b is 5 and c is 4
a is 5 and b is 7 and c is 9
D. इनमें से कोई नहीं / None of the above
View Answer
Q20.
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

What will be the output of the following Python code?

list1 = [1, 3]
list2 = list1
list1[0]=4
print(list2)
A. [1, 4]
B. [1, 3, 4]
C. [4, 3]
D. [1, 3]
View Answer
Q21.
निम्नलिखित कोड के लिए आउटपुट क्या होगा?

What will be the output for the following code?

import numpy as np
a = np.array([2, 3, 4, 5])
print(a.dtype)
A. int32
B. float
C. int
D. इनमें से कोई नहीं / None of these
View Answer
Q22.
हार्डवेयर को चलाने के लिए निम्न में से किस सॉफ्टवेयर की आवश्यकता होती है?

Which of the following software is required to run the hardware?
A. कार्य प्रबंधक / Task Manager
B. टास्क बार / Task Bar
C. प्रोग्राम मैनेजर / Program Manager
D. डिवाइस ड्राइवर / Device Driver
View Answer
Q23.
निम्नलिखित का आउटपुट क्या है?

What is the output of the following?

y = 'klmn'
for i in range(len(y)):
    print(y)
A. klmn klmn klmn klmn
B. k
C. kkk
D. इनमें से कोई नहीं / None of these
View Answer
Q24.
एक से अधिक डेवलपर को असाइन करने के लिए स्ट्रक्चर्ड प्रोग्राम को ________________ में विभाजित किया जा सकता है।

Structured program can be broken into ________________ to assign to more than one developer.
A. Segments
B. Units
C. Modules
D. उपरोक्त सभी / All of the above
View Answer
Q25.
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

What will be the output of the following Python code?

len(["hello", 2, 4, 6])
A. त्रुटि / Error
B. 6
C. 4
D. 3
View Answer