Sequence Data Types
मान लीजिए कि आप नीचे दिए गए टुपल को परिभाषित कर रहे हैं: टुप = (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 ?
राउंड (0.5) – राउंड (-0.5) का परिणाम क्या है?
What is the result of round (0.5) – round (-0.5) ?
Correct Answer: B) 2.0
निम्नलिखित में से कौन सा फ़ंक्शन हमें किसी सूची की वस्तुओं को यादृच्छिक बनाने में मदद करता है?
Which of the following functions helps us to randomize the items of a list?
लूप पर else क्लॉज कब निष्पादित होता है?
When does the else clause on a loop execute?
किस कीवर्ड का उपयोग यह जांचने के लिए किया जाता है कि कोई मान सूची या स्ट्रिंग जैसी अनुक्रम में मौजूद है?
Which keyword is used to check if a value exists in a sequence like a list or a string?
पायथन में एक मल्टी-लाइन टिप्पणी को परिभाषित करने का सही तरीका कौन सा है?
Which of the following is a correct way to define a multi-line comment in Python?
पायथन में एक फ़ंक्शन या विधि घोषित करने के लिए कौन सा कीवर्ड उपयोग किया जाता है?
Which keyword is used to declare a function or method in Python?
निम्नलिखित में से कौन सा एक मान्य पायथन कीवर्ड नहीं है?
Which of the following is NOT a valid Python keyword?
पायथन में None कीवर्ड का उद्देश्य क्या है?
What is the purpose of the keyword None in Python?
निम्नलिखित में से किस कमांड का उपयोग 'xyz' सूची में फेरबदल करने के लिए किया जाता है?
Which of the following command is used to shuffle a list ‘xyz’ ?
Function के लिए कौन सा कीवर्ड प्रयोग किया जाता है?
Which keyword is used for function ?
Sys.argv कितने प्रकार का होता है?
What is the type of sys.argv ?
दिया गया है tup=(5,3,1,9,0), निम्नलिखित में से कौन से दो कथन समान आउटपुट देंगे?
Given tup=(5,3,1,9,0), which of the following two statements will give the same output
सूची स्लाइसिंग में नकारात्मक सूचकांक-1 का तात्पर्य है
In list slicing negative index-1 refers to
स्ट्रिंग और सूची के बीच किस बिंदु को अंतर माना जा सकता है
Which point can be considered as difference between string and list
शब्दकोशों को के नाम से भी जाना जाता है।
Dictionaries are also known as
निम्नलिखित में से कौन सा कथन सही है
Which of the following statement is correct
निम्न कोड का आउटपुट क्या होगा
What will be the output after the following statements
x = [5, 4, 3, 2, 1]
print(x.index(1)) निम्नलिखित कथनों के बाद आउटपुट क्या होगा?
What will be the output after the following statements
x = {'day':'Sunday', 'week':10} print(x['year']) निम्नलिखित कथनों के बाद आउटपुट क्या होगा
What will be the output after the following statements.
x = ('Python',)
print(x) निम्नलिखित कथनों के बाद आउटपुट क्या होगा
What will be the output after the following statements
x = 'Python'
print(tuple(x)) निम्नलिखित कथनों के बाद आउटपुट क्या होगा
What will be the output after the following statements
x = 'Python'
print(tuple(x)) निम्नलिखित कथनों के बाद आउटपुट क्या होगा
What will be the output after the following statements
x = {'day':'Sunday', 'week':10}
print(x['year']) निम्नलिखित में से कौन परिवर्तनशील
Which of the following is mutable
निम्नलिखित कथनों के बाद आउटपुट क्या होगा
What will be the output after the following statements
x = ['a', 'b', 'c', 'A', 'B', 'C']
x.sort()
print(x) नीचे दिए गए कथनों में से कौन सा/से सत्य है/हैं
Which of the following statements given below is/are true
List किस bracket में लिखी जाती है
A list in Python is enclosed in