🚀 Hurry! Offer Ends In
00 Days
00 Hours
00 Mins
00 Secs
Enroll Now
X

Sequence Data Types

Question: 51 Report Error

मान लीजिए कि आप नीचे दिए गए टुपल को परिभाषित कर रहे हैं: टुप = (1, 2, 3, 4, 5) अब, आप इस टुपल के मान को दूसरे इंडेक्स पर 10 तक अपडेट करना चाहते हैं। आप निम्न में से कौन सा विकल्प चुनेंगे?

Suppose you are defining a tuple given below : tup = (1, 2, 3, 4, 5 ) Now, you want to update the value of this tuple at 2nd index to 10. Which of the following option will you choose ?

A)
B)
C)
D)

Question: 52 Report Error

राउंड (0.5) – राउंड (-0.5) का परिणाम क्या है?

What is the result of round (0.5) – round (-0.5) ?

A)
B)
C)
D)
Explanation
n many programming languages, the round() function rounds towards the nearest even integer when the value is exactly halfway between two integers (this is known as "bankers' rounding"). So: round(0.5) is 0 (rounded to the nearest even integer). round(-0.5) is also 0 (rounded to the nearest even integer). Therefore: 0 ? 0 = 0 0?0=0 So, the correct result of round(0.5) - round(-0.5) is 0.

Correct Answer: B) 2.0


Question: 53 Report Error

निम्नलिखित में से कौन सा फ़ंक्शन हमें किसी सूची की वस्तुओं को यादृच्छिक बनाने में मदद करता है?

Which of the following functions helps us to randomize the items of a list?

A)
B)
C)
D)

Question: 54 Report Error

लूप पर else क्लॉज कब निष्पादित होता है?

When does the else clause on a loop execute?

A)
B)
C)
D)

Question: 55 Report Error

किस कीवर्ड का उपयोग यह जांचने के लिए किया जाता है कि कोई मान सूची या स्ट्रिंग जैसी अनुक्रम में मौजूद है?

Which keyword is used to check if a value exists in a sequence like a list or a string?

A)
B)
C)
D)

Question: 56 Report Error

पायथन में एक मल्टी-लाइन टिप्पणी को परिभाषित करने का सही तरीका कौन सा है?

Which of the following is a correct way to define a multi-line comment in Python?

A)
B)
C)
D)

Question: 57 Report Error

पायथन में एक फ़ंक्शन या विधि घोषित करने के लिए कौन सा कीवर्ड उपयोग किया जाता है?

Which keyword is used to declare a function or method in Python?

A)
B)
C)
D)

Question: 58 Report Error

निम्नलिखित में से कौन सा एक मान्य पायथन कीवर्ड नहीं है?

Which of the following is NOT a valid Python keyword?

A)
B)
C)
D)

Question: 59 Report Error

पायथन में None कीवर्ड का उद्देश्य क्या है?

What is the purpose of the keyword None in Python?

A)
B)
C)
D)

Question: 60 Report Error

निम्नलिखित में से किस कमांड का उपयोग 'xyz' सूची में फेरबदल करने के लिए किया जाता है?

Which of the following command is used to shuffle a list ‘xyz’ ?

A)
B)
C)
D)

Question: 61 Report Error

Function के लिए कौन सा कीवर्ड प्रयोग किया जाता है?

Which keyword is used for function ?

A)
B)
C)
D)

Question: 62 Report Error

टिंकर क्या है?

What is tkinter ?

A)
B)
C)
D)

Question: 63 Report Error

Sys.argv कितने प्रकार का होता है?

What is the type of sys.argv ?

A)
B)
C)
D)

Question: 64 Report Error

दिया गया है tup=(5,3,1,9,0), निम्नलिखित में से कौन से दो कथन समान आउटपुट देंगे?

Given tup=(5,3,1,9,0), which of the following two statements will give the same output

A)
B)
C)
D)

Question: 65 Report Error

सूची स्लाइसिंग में नकारात्मक सूचकांक-1 का तात्पर्य है

In list slicing negative index-1 refers to

A)
B)
C)
D)

Question: 66 Report Error

स्ट्रिंग और सूची के बीच किस बिंदु को अंतर माना जा सकता है

Which point can be considered as difference between string and list

A)
B)
C)
D)

Question: 67 Report Error

शब्दकोशों को के नाम से भी जाना जाता है।

Dictionaries are also known as

A)
B)
C)
D)

Question: 68 Report Error

निम्नलिखित में से कौन सा कथन सही है

Which of the following statement is correct

A)
B)
C)
D)

Question: 69 Report Error

निम्न कोड का आउटपुट क्या होगा

What will be the output after the following statements

x = [5, 4, 3, 2, 1]
print(x.index(1))
A)
B)
C)
D)

Question: 70 Report Error

निम्नलिखित कथनों के बाद आउटपुट क्या होगा?

What will be the output after the following statements

x = {'day':'Sunday', 'week':10} print(x['year'])
A)
B)
C)
D)

Question: 71 Report Error

निम्नलिखित कथनों के बाद आउटपुट क्या होगा

What will be the output after the following statements.

x = ('Python',) 
print(x)
A)
B)
C)
D)

Question: 72 Report Error

निम्नलिखित कथनों के बाद आउटपुट क्या होगा

What will be the output after the following statements

x = 'Python' 
print(tuple(x))
A)
B)
C)
D)

Question: 73 Report Error

निम्नलिखित कथनों के बाद आउटपुट क्या होगा

What will be the output after the following statements

x = 'Python' 
print(tuple(x))
A)
B)
C)
D)

Question: 74 Report Error

निम्नलिखित कथनों के बाद आउटपुट क्या होगा

What will be the output after the following statements

x = {'day':'Sunday', 'week':10} 
print(x['year'])
A)
B)
C)
D)

Question: 75 Report Error

निम्नलिखित में से कौन परिवर्तनशील

Which of the following is mutable

A)
B)
C)
D)

Question: 76 Report Error

निम्नलिखित कथनों के बाद आउटपुट क्या होगा

What will be the output after the following statements

x = ['a', 'b', 'c', 'A', 'B', 'C']
x.sort() 
print(x)
A)
B)
C)
D)

Question: 77 Report Error

नीचे दिए गए कथनों में से कौन सा/से सत्य है/हैं

Which of the following statements given below is/are true

A)
B)
C)
D)

Question: 78 Report Error

List किस bracket में लिखी जाती है

A list in Python is enclosed in

A)
B)
C)
D)

Latest Updates