page-banner
Python M3-R5.1 MCQs SET-7
Q1.
एक __________ संरचना द्वारा की गई कार्रवाई अंततः लूप को समाप्त करने का कारण बनती है।

The action performed by a __________ structure must eventually cause the loop to terminate.
A. sequence
B. process
C. repetition
D. case
View Answer
Q2.
निम्नलिखित कोड के लिए आउटपुट क्या होगा?

What will be output for the following code ?

import numpy as np
a = np.array([11,2,3])
print(a.min())
A. 2
B. 1
C. 11
D. 3
View Answer
Q3.
कथन 4 के लिए उत्तर चुनें।

Choose the answer for statement 4.

import ___________ # statement 1
rec = [ ]
while True:
    rn = int(input("Enter"))
    nm = input("Enter")
    temp = [rn, nm]
    rec.append(temp)
    ch = input("Enter choice (Y/N)")
    if ch.upper == "N":
        break
f = open("stud.dat", "____________") #statement 2
__________ .dump(rec, f) #statement 3
_______.close( ) # statement 4
A. f
B. rec
C. file
D. stud
View Answer
Q4.
निम्नलिखित सूडो कोड का आउटपुट क्या होगा, जहां ʌ XOR ऑपरेशन का प्रतिनिधित्व करता है?

What will be the output of the following pseudo code, where ʌ represent XOR operation ?

Integer a, b, c
Set b = 5, a = 1
c = a ^ b
print c
A. 4
B. 3
C. 5
D. 7
View Answer
Q5.
सुन्न सरणी के गुण क्या हैं?

What are the attributes of numpy array ?
A. shape, dtype, ndim
B. objects, type, list
C. objects, non vectorization
D. Unicode and shape
View Answer
Q6.
कंप्यूटर विज्ञान में, एल्गोरिथ्म एक फ़्लोचार्ट के सचित्र प्रतिनिधित्व को संदर्भित करता है।

In computer science, algorithm refers to a pictorial representation of a flowchart.
A. True
B. False
C. Can’t say
D. May be
View Answer
Q7.
निम्नलिखित का आउटपुट क्या है?

What is the output of the following ?

for i in range(10):
    if i == 5:
        break
    else:
        print(i)
else:
    print("Here")
A. 0 1 2 3 4 Here
B. 0 1 2 3 4 5 Here
C. 0 1 2 3 4
D. 1 2 3 4 5
View Answer
Q8.
मान लीजिए एक tuple arr में 10 तत्व होते हैं। आप टपल के 5वें तत्व को 'Hello' पर कैसे सेट कर सकते हैं?

Suppose a tuple arr contains 10 elements. How can you set the 5th element of the tuple to 'Hello' ?
A. arr[4] = 'Hello'
B. arr(4) = 'Hello'
C. Elements of tuple cannot be changed
D. arr[5] = 'Hello'
View Answer
Q9.
एक फ़्लोचार्ट जो एक कार्यक्रम के मुख्य खंडों की रूपरेखा तैयार करता है।

A flowchart that outlines the main segments of a program.
A. Queue
B. Macro
C. Micro
D. Union
View Answer
Q10.
निम्नलिखित कोड का परिणाम क्या है ?

What is the output of the following code ?

a = 15
b = 6
print(a and b)
print(a or b)
A. True True
B. False False
C. 6 15
D. 15 6
View Answer
Q11.
यदि उपयोगकर्ता ने 55 दर्ज किया है तो आउटपुट क्या होगा?

What is the output, if user has entered 55 ?

a=input("Enter a number")
print(type(a))
A. int
B. float
C. double
D. str
View Answer
Q12.
a=5, b=8, c=6 के लिए निम्नलिखित एल्गोरिथम का आउटपुट क्या होगा?

What will be the output of the following algorithm for a=5, b=8, c=6 ?

Step 1: Start
Step 2: Declare variables a,b and c.
Step 3: Read variables a,b and c.
Step 4: If a > b
    If a > c
        Display a is the largest number.
    Else
        Display c is the largest number.
Else
    If b > c
        Display b is the largest number.
    Else
        Display c is the greatest number.
Step 5: Stop
A. b is the largest number
B. a is the largest number
C. c is the largest number
D. stop
View Answer
Q13.
निम्नलिखित में से कौन सा फ़ंक्शन दो तर्क लेता है?

Which of the following function takes two arguments?
A. load()
B. dump()
C. both of the above
D. none of the above
View Answer
Q14.
Pseudo कोड में पदानुक्रम को __________ द्वारा दिखाया जा सकता है।

Hierarchy in a pseudo-code can be shown by __________.
A. Curly Braces
B. Round Brackets
C. Indentation
D. Semicolon
View Answer
Q15.
यदि फाइल मौजूद नहीं है तो कौन सा मोड एक नई फाइल बनाता है?

Which mode creates a new file if the file does not exist?
A. write mode
B. append mode
C. both (A) & (B)
D. none of the above
View Answer
Q16.
पायथन में कौन सा फंक्शन फाइल को खोलता है?

Which function opens file in python ?
A. open()
B. Open()
C. new()
D. None of the above
View Answer
Q17.
निम्नलिखित कोड का आउटपुट क्या है?

What is the output of following code ?

a1={1:"A",2:"B",3:"C"}
b1={4:"D",5:"E"}
b1.update(a1)
print(b1)
A. {4: 'D', 5: 'E', 1: 'A', 2: 'B', 3: 'C'}
B. {1: 'A', 2: 'B', 3: 'C', 4: 'D', 5: 'E'}
C. {4: 'D', 5: 'E'}
D. None of these
View Answer
Q18.
कौन सा कथन फ़ाइल से 5 वर्ण पढ़ेगा file(file object „f‟)?

Which statement will read 5 characters from a file(file object „f‟) ?
A. f.read()
B. f.read(5)
C. f.reads(5)
D. None of the above
View Answer
Q19.
प्रोग्राम में फंक्शन नाम के बाद __________ लिखकर फंक्शन को कॉल किया जा सकता है।

The function can be called in the program by writing function name followed by __________.
A. [ ]
B. { }
C. ( )
D. None of the above
View Answer
Q20.
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

What will be the output of the following Python code ?

from math import *
ceil(3.4)
A. 4
B. 3
C. 3.5
D. None of these
View Answer
Q21.
निम्नलिखित वस्तु का डेटा प्रकार क्या है?

What is the data type of following object ?

A = [5,'abc',3.2,6]
A. tuple
B. array
C. list
D. dictionary
View Answer
Q22.
एक __________ पूरे प्रोग्राम को स्कैन करता है और इसे पूरे मशीन कोड में ट्रांसलेट करता है।

A __________ scans the entire program and translates it as a whole into machine code.
A. Compiler
B. Interpreter
C. Debugger
D. None of the above
View Answer
Q23.
वेरिएबल के बदलते वैल्यूज को स्टेपिंग कहा जाता है।

The examination of changing values of variables is called stepping.
A. True
B. False
C. Can’t say
D. May be
View Answer
Q24.
निम्नलिखित कोड का आउटपुट क्या है?

What is the output of following code ?

A=[[1,2,3],
   [4,5,6],
   [7,8,9]]
print(A[1][:])
A. [1, 2, 3]
B. [4, 5, 6]
C. [2, 5, 8]
D. None of these
View Answer
Q25.
NumPY का मतलब है?

NumPY stands for ?
A. Numbering Python
B. Number In Python
C. Numerical Python
D. None of the above
View Answer
Q26.
निम्नलिखित का मिलान करें:

Match the following:

a) Unix        (1) Antivirus
b) Trojan      (2) Virus
c) SSD         (3) Operating System
d) Kaspersky   (4) Storage device
A. a-3, b-2, c-4, d-1
B. a-3, b-4, c-2, d-1
C. a-2, b-3, c-1, d-4
D. a-1, b-2, c-3, d-4
View Answer