page-banner
Python M3-R5.1 MCQs SET-10
Q1.
निम्नलिखित का आउटपुट क्या होगा?

What will be the output of the following ?
import numpy as np
a = np.array([[1,2,3,4], [5,6,7,8], [9,10,11,12]])
print(a[2,2])
A. 7
B. 11
C. 10
D. 8
View Answer
Q2.
निम्नलिखित कोड का परिणाम क्या है?

What is the output of the following code ?
def add(a, b):
    return a+5, b+5
result = add(3, 2)
print(result)
A. 15
B. 8
C. (8,7)
D. Error
View Answer
Q3.
निम्नलिखित में से कौन सी भाषा कंप्यूटर द्वारा समझी जाती है?

Which of the following language is understood by computer ?
A. Machine language
B. Assembly language
C. High-level language
D. None of the above
View Answer
Q4.
identifier की अधिकतम संभव लंबाई क्या है?

What is the maximum possible length of an identifier ?
A. 16
B. 32
C. 64
D. None of these above
View Answer
Q5.
एल्गोरिदम निर्माण के तीन अलग-अलग प्रकार क्या हैं?

What are the three different types of algorithm constructions ?
A. Input/Output, Decision, Repeat
B. Input, Output, Process
C. Loop, Input/Output, Process
D. Sequence, Selection, Repeat
View Answer
Q6.
मान लीजिए q = [3, 4, 5, 20, 5, 25, 1, 3], तो q.pop(1) के बाद q सूची में क्या आइटम होंगे?

Assume q = [3, 4, 5, 20, 5, 25, 1, 3], then what will be the items of q list after q.pop(1) ?
A. [3, 4, 5, 20, 5, 25, 1, 3]
B. [1, 3, 3, 4, 5, 5, 20, 25]
C. [3, 5, 20, 5, 25, 1, 3]
D. [1, 3, 4, 5, 20, 5, 25]
View Answer
Q7.
निम्नलिखित में से किस डेटा प्रकार में डुप्लीकेट आइटम की अनुमति नहीं है?

In which of the following data type, duplicate items are not allowed ?
A. list
B. dictionary
C. set
D. None of the above
View Answer
Q8.
निम्नलिखित कोड का परिणाम क्या है?

What is the output of the following code?
import numpy as np
a = np.array([1,2,3,5,8])
b = np.array([0,1,5,4,2])
c = a + b
c = c * a
print(c[2])
A. 6
B. 24
D. None of these
View Answer
Q9.
निम्नलिखित कोड का परिणाम क्या है?

What is the output of the following code ?
import numpy as np
a = np.array([[1,2,3]])
print(a.shape)
A. (2, 3)
B. (3, 1)
C. (1, 3)
D. None of these
View Answer
Q10.
कोड में त्रुटियां खोजने की प्रक्रिया को __________ कहा जाता है।

The process of finding errors in code is called as __________.
A. Compiling
B. Running
C. Testing
D. Debugging
View Answer
Q11.
निम्नलिखित कोड का परिणाम क्या है?

What is the output of the following code ?
ms = ('A', 'D', 'H', 'U', 'N', 'I', 'C')
print(ms[1:4])
A. ('D', 'H', 'U')
B. ('A', 'D', 'H', 'U', 'N', 'I', 'C')
C. ('D', 'H', 'U', 'N', 'I', 'C')
D. None of these
View Answer
Q12.
>>> '2' + '3' का आउटपुट क्या है

What is the output of >>> '2' + '3'
A. 2 3
B. '2+3'
C. '23'
D. None of these
View Answer
Q13.
निम्नलिखित पायथन प्रोग्राम का आउटपुट क्या होगा?

What will be the output of the following Python program ?
def addItem(listParam):
    listParam += [1]
mylist = [1, 2, 3, 4]
addItem(mylist)
print(len(mylist))
A. 5
B. 8
C. 2
D. 1
View Answer
Q14.
एक विस्तृत फ़्लोचार्ट के रूप में जाना जाता है:

A detailed flowchart is known as :
A. Micro
B. Union
C. Macro
D. Stack
View Answer
Q15.
एल्गोरिदम को __________ द्वारा प्रदर्शित नहीं किया जा सकता है।

Algorithms cannot be represented by __________.
A. pseudo codes
B. syntax
C. flowcharts
D. programs
View Answer
Q16.
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

What will be the output of the following Python code?
from math import *
floor(3.7)
A. 3
B. 4
C. 3.0
D. None of these
View Answer
Q17.
पायथन प्रोग्राम कमांड लाइन से कितने arguments स्वीकार कर सकता है?

How many arguments a Python program can accept from the command line ?
A. one
B. Two
C. Three
D. Any
View Answer
Q18.
निम्नलिखित का आउटपुट क्या है?

What is the output of the following ?
print(int())
A. Any random number
B. 1
C. Zero
D. Error
View Answer
Q19.
निम्नलिखित कोड का परिणाम क्या है?

What is the output of the following code ?
a = set('dcma')
b = set('mlpc')
print(a^b)
A. {'d', 'c', 'm', 'a', 'm', 'l', 'p', 'c'}
B. {'m', 'l', 'p', 'c'}
C. {'d', 'c', 'm', 'a'}
D. None
View Answer
Q20.
निम्नलिखित कथन का आउटपुट क्या है?

What is the output of the following statement ?
print((2, 4) + (1, 5))
A. (2 , 4), (4 , 5)
B. (3 , 9)
C. (2, 4, 1, 5)
D. Invalid Syntax
View Answer