NSCT – Arrays & Collections MCQs

20 min Score: 0 Attempted: 0/20 Subscribe
1. What is an array?





2. Which of the following can an array store?





3. What is the starting index of most arrays in programming?





4. Which operation is used to access a specific element in an array?





5. Which of the following is used to store a sequence of values with different data types in Python?





6. Which collection does not allow duplicate elements?





7. Which collection maintains the order of insertion?





8. Which collection stores key-value pairs?





9. Which of the following is immutable in Python?





10. Which collection allows adding and removing elements dynamically?





11. Which operation finds the number of elements in an array or collection?





12. Which method can be used to combine two lists into one?





13. Which of the following is a fixed-size collection?





14. Which collection type automatically removes duplicate elements?





15. Which operation retrieves all keys from a dictionary?





16. Which operation retrieves all values from a dictionary?





17. Which operation retrieves both keys and values from a dictionary?





18. Which of the following collections is ordered and mutable?





19. Which collection type is often used for fast membership checking?





20. What is the main purpose of arrays and collections?





All Copyrights Reserved 2025 Reserved by T4Tutorials