page-banner
Chapter-5 (Part-1) Sequence Data Types
Q11.
निम्नलिखित में से कौन सा एक सही है?<break-line><break-line>Which one of the following is correct?
A. Dictionary can have two same keys with different values
B. Dictionary can have two same values with different keys
C. Dictionary can have two same keys or same values but cannot have two same key-value pair
D. Dictionary can neither have two same keys nor two same values
View Answer
Q12.
सूची से दूसरा एलिमेंट प्राप्त करने का सही तरीका क्या है?<break-line><break-line>How to get the 2nd element from a list arr with 5 elements?
A. arr[-2]
B. arr[2]
C. arr[-1]
D. arr[1]
View Answer
Q13.
निम्नलिखित कोड का परिणाम क्या है?<break-line><break-line>What is the output of the following code?<pre><code>ms = ('A', 'D', 'H', 'U', 'N', 'I', 'C') print(ms[1:4])</code></pre>
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
Q14.
निम्न में से कौन सा कथन एक डिक्शनरी बनाता है?<break-line><break-line>Which of the following statements create a dictionary?
A. d = {}
B. d = {"john":40, "peter":45}
C. d = {40:"john", 45:"peter"}
D. All of the mentioned
View Answer
Q15.
निम्न में से कौन सा एरर देगा?<break-line><break-line>Which of the following would give an error?
A. list1 = []
B. list1 = [] * 3
C. list1 = [2, 8, 7]
D. None of the above
View Answer