page-banner
Python M3-R5.1 MCQs SET-17
Q1.
यदि हम किसी फाइल को खोलते समय फाइल मोड निर्दिष्ट नहीं करते हैं, तो फाइल ......... मोड में खुलेगी

If we do not specify file mode while opening a file, the file will open in .............mode
A. read
B. write
C. append
D. will give an error
View Answer
Q2.
निम्नलिखित में से कौन सा पायथन में एक रिलेशनल ऑपेरटर नहीं है?

Which of the following is not a relational operator in Python?
A. >=
B. <=
C. =
D. !=
View Answer
Q3.
किस प्रारूप में बाइनरी फ़ाइल में जानकारी होती है

In which format Binary file contains information
A. Zebra way
B. Quick response code
C. same format in which the data is held in memory.
D. ASCII Format
View Answer
Q4.
इनमें से कौन सा बाइनरी फ़ाइल मोड है?

Which is of this is binary file mode?
A. ’r’
B. ’rb’
C. ’w’
D. ’a’
View Answer
Q5.
किसी प्रोग्राम के लिए पढ़ने और लिखने में क्या आसान है।

What is easier for a program to read and write.
A. Binary file
B. Text file
C. Doc file
D. Excel file
View Answer
Q6.
readlines() फंक्शन क्या रिटर्न करेगा

readlines() will return
A. list of characters
B. list of strings
C. list of lines
D. list of tuples
View Answer
Q7.
निम्न में से कौन सा फ़ाइल-मोड फ़ाइल डेटा को बनाए रखता है और नए डेटा को जोड़ता है।

Which of the following file-modes does retains file data and append new data.
A. ’a+’
B. ’a’
C. ’w+’
D. ’r+’
View Answer
Q8.
निम्न में से किस फंक्शन का प्रयोग फाइल में LIST OF STRINGS लिखने के लिए किया जाता है?

Which of the following function is used to write LIST OF STRINGS in a file?
A. write()
B. writeline()
C. writelines()
D. write(all)
View Answer
Q9.
एक फ़ाइल में एक सूची लिखने के लिए कमाण्ड।

Command to write a list in a file.
A. write()
B. writeline()
C. writelines()
D. writepara()
View Answer
Q10.
फ़ाइल से कुछ बाइट पढ़ता है और इसे एक स्ट्रिंग के रूप में लौटाता है।

Reads some bytes from the file and returns it as a string.
A. read()
B. readline()
C. readpara()
D. readlines()
View Answer
Q11.
एक बार में एक लाइन पढ़ता है।

Reads a line at a time.
A. read()
B. readline()
C. readpara()
D. readlines()
View Answer
Q12.
पायथन प्रोग्रामिंग भाषा किसके द्वारा विकसित की गई थी

Python programming language was developed by
A. Guido van Rossum
B. Tim berner lee
C. Harly speector
D. Donso bener
View Answer
Q13.
पायथन में सही असाइनमेंट कौन सा है?

Which is the correct assignment in python?
A. a=b=c=10
B. x,y,z=10,20,30
C. x,y=y,x
D. all are correct
View Answer
Q14.
NumPy array ___ हो सकती हैं

NumPy arrays can be ___
A. Indexed
B. Sliced
C. Iterated
D. All of the mentioned above
View Answer
Q15.
निम्नलिखित में से क्या पायथन में फंक्शन का उपयोग है?

What of the following is the use of function in python?
A. They are reusable
B. They don’t provide molularity
C. You cant create your own functions
D. All of the mentioned
View Answer
Q16.
पायथन में NumPy का उद्देश्य क्या है?

What is the purpose of NumPy in Python?
A. To do numerical calculations
B. To do scientific computing
C. Both A and B
D. None of the mentioned above
View Answer
Q17.
आउटपुट क्या होगा?

What will be the output?
def f(x,y,z):
    return x+ y+ z
f(2,30,400)
A. 432
B. 24000
C. 430
D. No output
View Answer
Q18.
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

What will be the output of the following Python code?
from numpy import random
x = random.randint(100)
print(x)
A. 56
B. 26
C. 40
D. All of the mentioned above
View Answer
Q19.
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

What will be the output of the following python code?
min = (lambda x,y: x if x<y else y)
print(min(101*99, 102*98))                                    
A. 9997
B. 9999
C. 9996
D. None of the mentioned
View Answer
Q20.
निम्नलिखित में से कौन सा निर्णय लेने वाला कथन नहीं है:

Which of following is not a decision-making statement:
A. if-elif statement
B. for statement
C. if -else statement
D. if statement
View Answer