page-banner
Python M3-R5.1 MCQs SET-12
Q1.
निम्नलिखित expression किस मान का मूल्यांकन करता है?

What value does the following expression evaluate to ?
print(5 + 8 * ((3* 5)-9) /10)
A. 9.0
B. 9.8
C. 10
D. 10.0
View Answer
Q2.
एक निश्चित संख्या में दोहराए जाने वाले ऑपरेशन __________ द्वारा किए जाते हैं।

Operations to be repeated a certain number of times are done by __________.
A. Selection
B. Sequential
C. Simple
D. Loop
View Answer
Q3.
मेमोरी का कौन सा भाग सिस्टम फ़ंक्शन कॉल के पैरामीटर और लोकल वेरिएबल को संग्रहीत करता है?

Which part of the memory does the system store the parameter and local variables of a function call?
A. heap
B. stack
C. Uninitialized data segment
D. None of the above
View Answer
Q4.
निम्नलिखित का आउटपुट क्या होगा?

What will be the output of the following ?
import numpy as np
a = np.array( [2, 3, 4, 5] )
b = np.arange(4)
print(a+b)
A. [2 3 4 5]
B. [3 4 5 6]
C. [1 2 3 4]
D. [2 4 6 8]
View Answer
Q5.
नीचे दिए गए प्रोग्राम का आउटपुट क्या है?

What is the output of below program ?
def say(message, times = 1):
    print(message * times)
say('Hello')
say('World', 5)
A. Hello WorldWorldWorldWorldWorld
B. Hello World 5
C. Hello World,World,World,World,World
D. Hello HelloHelloHelloHelloHello
View Answer
Q6.
किसी समस्या को चरण दर चरण हल करने के तरीके को __________ के रूप में जाना जाता है।

The way for solving a problem step by step is known as __________.
A. Design
B. Planning
C. Algorithm
D. Execution
View Answer
Q7.
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

What will be the output of the following Python code ?
def calc(x):
    r=2*x**2
    return r
print(calc(5))
A. Error
B. 50
C. 100
D. 20
View Answer
Q8.
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

What will be the output of the following Python code ?
def printMax(a, b):
    if a > b:
        print(a, 'is maximum')
    elif a == b:
        print(a, 'is equal to', b)
    else:
        print(b, 'is maximum')
printMax(3, 4)
A. 3
B. 4
C. 4 is maximum
D. None of the mentioned
View Answer
Q9.
निम्नलिखित expression किस मान का मूल्यांकन करता है?

What value does the following expression evaluate to ?
x = 5
while x < 10:
    print(x, end='')
A. Closed loop
B. One time loop
C. Infinite loop
D. Evergreen loop
View Answer
Q10.
निम्नलिखित कोड का परिणाम क्या है?

What is the output of the following code ?
x = 50
def func(x):
    x = 2
func(x)
print('x is now', x)
A. x is now 50
B. x is now 2
C. x is now 100
D. Error
View Answer
Q11.
निम्नलिखित कोड का परिणाम क्या है?

What is the output of the following code ?
def disp(*arg):
    for i in arg:
        print(i)
disp(name="Rajat", age="20")
A. TypeError
B. Rajat 20
C. Name age
D. None of these
View Answer
Q12.
निम्नलिखित में से कौन लाइन दर लाइन प्रोग्रामिंग कोड को क्रियान्वित करता है?

Which of the following executes the programming code line by line?
A. Compiler
B. Interpreter
C. Executer
D. Translator
View Answer
Q13.
निम्नलिखित फ़ंक्शन का रिटर्न प्रकार क्या है?

What is the return type of following function ?
def func1():
    return “mnp”,22
A. List
B. dictionary
C. string
D. tuple
View Answer
Q14.
निम्नलिखित कोड का परिणाम क्या है?

What is the output of the following code ?
def fun(a, b=6):
    a=a+b
    print(a)
fun(5, 4)
A. 11
B. 9
C. 5
D. 4
View Answer
Q15.
निम्न में से कौन सा अमान्य मोड है?

Which of the following is an invalid mode ?
A. a
B. ar+
C. r+
D. w
View Answer
Q16.
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

What will be the output of the following Python code?
from math import pow
print(math.pow(2,3))
A. Nothing is printed
B. 8
C. Error, method pow doesn’t exist in math module
D. Error, the statement should be: print(pow(2, 3))
View Answer
Q17.
निम्नलिखित expression का आउटपुट क्या होगा?

What will be the output of the following expression ?
x = 4
print(x << 2)
A. 4
B. 16
C. 6
D. 2
View Answer
Q18.
निम्नलिखित कोड का परिणाम क्या है?

What is the output of the following code ?
import numpy as np
y = np.array([[11, 12, 13, 14], [32, 33, 34, 35]])
print(y.ndim)
A. 1
B. 2
C. 3
View Answer
Q19.
एक कंप्यूटर प्रोग्राम जो कंप्यूटर की गतिविधि का प्रबंधन और नियंत्रण करता है:

A computer program that manages and controls a computer's activity :
A. इंटरप्रेटर /Interpreter
B. मॉडेम /Modem
C. कम्पाइलर /Compiler
D. ऑपरेटिंग सिस्टम /Operating system
View Answer
Q20.
निम्नलिखित expression का आउटपुट क्या होगा?

What will be the output of the following expression ?
print(7//2)
print(-7//2)
A. 3 -3
B. 4 -4
C. 3 -4
D. 3 3
View Answer