Abhay Excel Computer

25 Python MCQ | Python Multiple-Choice Questions (MCQs) and Answers | O LEVEL M3R5

25 Python MCQ | Python Multiple-Choice Questions (MCQs) and Answers | O LEVEL M3R5

1-Who developed Python Programming Language?
पायथन प्रोग्रामिंग लैंग्वेज का विकास किसने किया था?
a) Wick van Rossum
b) Rasmus Lerdorf
c) Guido van Rossum
d) Niene Stom

.2-Which is the following number can never be generated by the following code:
निम्नलिखित में से कौन सी संख्या निम्नलिखित कोड द्वारा कभी भी उत्पन्न नहीं की जा सकती है:
random.randrange(0,50)

  1. 0
  2. 1
  3. 49
  4. 50

3- What is the output for −
‘python ‘ [-3]?
A- ‘o’
B- ‘t’
C- ‘h’
D- Negative index error.

4- Python is a case sensitive language when dealing with identifiers.
पहचानकर्ताओं के साथ व्यवहार करते समय पायथन एक संवेदनशील भाषा है।

  1. True
  2. False
  3. Sometimes
  4. Never

 

 

 

5- Which type of Programming does Python support?
पायथन किस प्रकार की प्रोग्रामिंग का समर्थन करता है?
a) object-oriented programming
b) structured programming
c) functional programming
d) all of the mentioned

6.Which of the following is true for variable names?
चर नामों के लिए निम्न में से कौन सा सही है?
A. Unlimited length
B. Limited length
C. Ampersand can be used in its name
इसके नाम में एम्परसेंड का प्रयोग किया जा सकता है
D. None of the Above

7-The examination of changing values of variables is called stepping.
चरों के बदलते मूल्यों की परीक्षा को स्टेपिंग कहा जाता है।
A. True tracing
B. False
C. Can’t s say
D. May be

9- What will be the output of the following?
Import numpy as np
Print(np.minimum([2,3,4],[1,5,2]))
A. [1 2 5]
B. [1 5 2]
C. [2 3 4]
D. [1 3 2]

10- Which of the following is the correct extension of the Python file?
निम्न में से कौन सा Python फ़ाइल का सही एक्सटेंशन है?
a) .python
b) .pl
c) .py
d) .p

11-What is the data type of following object?
निम्नलिखित वस्तु का डेटा प्रकार क्या है?
A = [5,’abc’,3,2,6]
A. Tuple
B. Array
C. List
D. Dictionary

12- Which is not a feature of Python language?
पायथन भाषा की कौन सी विशेषता नहीं है?
A.Interpreted language
B.Portable
C.High level language
D.Case Insensitive

13- Is Python code compiled or interpreted?
क्या पायथन कोड संकलित या व्याख्या किया गया है?
a) Python code is both compiled and interpreted
b) Python code is neither compiled nor interpreted
c) Python code is only compiled
d) Python code is only interpreted

14- Flowcharts and algorithms are used for
फ़्लोचार्ट और एल्गोरिदम का उपयोग किया जाता है
A. Better programming
B. Efficient coding
C. Easy testing and debugging
D. All of the Above

16- Determine the output:
for i in range(20,30,10):
j=i/2
print(j)
A.10 15
B. 10.0 15.0
C. 10.0
D. None of these

17- Python is a .………….object-oriented programming language.
A.Special purpose
B.General purpose
C.Medium level programming language
D.All of the mentioned above

18- Method which uses a list of well defined instructions to complete a task starting from a given initial state to end state is called as———-
वह विधि जो किसी दिए गए प्रारंभिक अवस्था से लेकर अंतिम अवस्था तक किसी कार्य को पूरा करने के लिए अच्छी तरह से परिभाषित निर्देशों की सूची का उपयोग करती है, उसे ——— कहा जाता है
A. Program
B. Algorithm
C. Flowchart
D. Both A and C

19- All keywords in Python are in _________
a) Capitalized True ,False ,None
b) lower case
c) UPPER CASE
d) None of the mentioned

20- ——– is a connector showing the relationship between the representative shapes.
——– प्रतिनिधि आकृतियों के बीच संबंध दिखाने वाला एक कनेक्टर है।
A.Line
B. Arrow
C. Process
D. Box

21- What is the output in python language?
Round(.4)-Round(-.5)
A.0
B.1
C.2
D.9

22- ———————- scans the entire program and translates it as a whole into machine code.
———————- पूरे प्रोग्राम को स्कैन करता है और इसे मशीन कोड में पूरी तरह से अनुवादित करता है
A.Compiler
B.Interpreter
C.Debugger
D.None of Above

23- What will be the value of the following Python expression?
4+3%5
a) 7
b) 2
c) 4
d) 1

24.What is the output of below python code?
def say(message, times=1):
print(message*times)
say(‘Hello’)
say(‘World’,5)
A. Hello
WorldWorldWorldWorldWorld
B. Hello
World5
C. Hello
World,World,World,World,World
D. Hello
HelloHelloHelloHelloHello

25- Which are the application areas of Python programming?
A.Web Development
B.Game Development
C.Artificial Intelligence and Machine Learning
D.All of the above

 

 

Leave a Comment