NSCT – Arrays & Collections MCQs 20 min Score: 0 Attempted: 0/20 Subscribe 1. What is an array? (A) A single value (B) A type of function (C) A collection of elements stored at contiguous memory locations (D) A loop structureShow All AnswersShow All Answers 2. Which of the following can an array store? (A) Only numbers (B) Only characters (C) Multiple values of different data types (D) Multiple values of the same data typeShow All Answers 3. What is the starting index of most arrays in programming? (A) 0 (B) 1 (C) 1 (D) Depends on the languageShow All Answers 4. Which operation is used to access a specific element in an array? (A) Using a loop (B) Using a function (C) Using its index (D) Using a conditional statementShow All Answers 5. Which of the following is used to store a sequence of values with different data types in Python? (A) Array (B) List (C) Tuple (D) Both List and TupleShow All Answers 6. Which collection does not allow duplicate elements? (A) Set (B) Tuple (C) List (D) ArrayShow All Answers 7. Which collection maintains the order of insertion? (A) Both List and Tuple (B) Dictionary (C) List (D) SetShow All Answers 8. Which collection stores key-value pairs? (A) Dictionary (B) Set (C) List (D) TupleShow All Answers 9. Which of the following is immutable in Python? (A) List (B) Dictionary (C) Set (D) TupleShow All Answers 10. Which collection allows adding and removing elements dynamically? (A) Tuple (B) List (C) String (D) ArrayShow All Answers 11. Which operation finds the number of elements in an array or collection? (A) count (B) length (C) size (D) All of the aboveShow All Answers 12. Which method can be used to combine two lists into one? (A) Append (B) Extend / Concatenate (C) Slice (D) CountShow All Answers 13. Which of the following is a fixed-size collection? (A) List (B) Array in some languages like C (C) Tuple (D) SetShow All Answers 14. Which collection type automatically removes duplicate elements? (A) Set (B) List (C) Tuple (D) DictionaryShow All Answers 15. Which operation retrieves all keys from a dictionary? (A) items (B) values (C) keys (D) allShow All Answers 16. Which operation retrieves all values from a dictionary? (A) values (B) keys (C) items (D) allShow All Answers 17. Which operation retrieves both keys and values from a dictionary? (A) keys (B) values (C) items (D) allShow All Answers 18. Which of the following collections is ordered and mutable? (A) Set (B) Tuple (C) List (D) DictionaryShow All Answers 19. Which collection type is often used for fast membership checking? (A) List (B) Tuple (C) Set (D) ArrayShow All Answers 20. What is the main purpose of arrays and collections? (A) To handle input/output (B) To perform calculations (C) To store and organize multiple values efficiently (D) To define functionsShow All Answers