Quiz-1

Q 1. To which of the following the “in” operator can be used to check if an item is in it? / निम्नलिखित में से किसके लिए "in" ऑपरेटर का उपयोग यह जांचने के लिए किया जा सकता है कि कोई आइटम उसमें है या नहीं?

  1. Lists
  2. Dictionary
  3. Set
  4. All of the mentioned
View Answer Watch Solution Video

Q 2. Which one of the following is False regarding data types in Python? / पायथन में डेटा प्रकारों के संबंध में निम्नलिखित में से कौन सा गलत है?

  1. In python, explicit data type conversion is possible
  2. Mutable data types are those that can be changed
  3. Immutable data types are those that cannot be changed
  4. None of the above
View Answer Watch Solution Video

Q 3. Which of the following function is used to know the data type of a variable in Python? / निम्नलिखित में से कौन सा फ़ंक्शन पायथन में एक वेरिएबल के डेटा प्रकार को जानने के लिए उपयोग किया जाता है?

  1. datatype()
  2. typeof()
  3. type()
  4. vartype()
View Answer Watch Solution Video

Q 4. Which of the following statements is used to create an empty set? / खाली सेट बनाने के लिए निम्नलिखित में से किस कथन का उपयोग किया जाता है?

  1. []
  2. {}
  3. ()
  4. set()
View Answer Watch Solution Video

Q 5. What is the output of following: set([1,1,2,3,4,2,3,4]) / निम्नलिखित का आउटपुट क्या है: सेट ([1,1,2,3,4,2,3,4])

  1. [1,1,2,3,4,2,3,4]
  2. {1,2,3,4}
  3. {1,1,2,3,4,2,3,4}
  4. Invalid Syntax
View Answer Watch Solution Video

Q 6. Which of the following data type is used to store values in Key & Value format? / निम्नलिखित में से किस डेटा प्रकार का उपयोग कुंजी और मूल्य प्रारूप में मूल्यों को संग्रहीत करने के लिए किया जाता है?

  1. List
  2. Tuple
  3. Dictionary
  4. Set
View Answer Watch Solution Video

Q 7. Which of the following are the keys in the given statement : / दिए गए कथन में निम्नलिखित में से कौन सी कुंजियाँ हैं:
abc = {"first":10, "second":20}

  1. 10, 20
  2. first, second
  3. first, 10, second, 20
  4. first, 20
View Answer Watch Solution Video

Q 8. Which of these about a dictionary is false? / शब्दकोश के बारे में इनमें से कौन सा झूठा है?

  1. The values of a dictionary can be accessed using keys
  2. The keys of a dictionary can be accessed using values
  3. Dictionaries aren't ordered
  4. Dictionaries are mutable
View Answer Watch Solution Video

Q 9. Which of these is not a core data type? / इनमें से कौन कोर डेटा टाइप नहीं है?

  1. List
  2. Tuple
  3. Dictionary
  4. Class
View Answer Watch Solution Video

Q 10. What will be the output of the following code? / निम्नलिखित कोड का आउटपुट क्या होगा?

arr = [1,2,3,4,5,6]

  print(a[::2])

  1. [1,3,5]
  2. [2,4,6]
  3. [1,2]
  4. [5,6]
View Answer Watch Solution Video