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 structure
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 type
3. What is the starting index of most arrays in programming?
(A) 0
(B) 1
(C) 1
(D) Depends on the language
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 statement
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 Tuple
6. Which collection does not allow duplicate elements?
(A) Set
(B) Tuple
(C) List
(D) Array
7. Which collection maintains the order of insertion?
(A) Both List and Tuple
(B) Dictionary
(C) List
(D) Set
8. Which collection stores key-value pairs?
(A) Dictionary
(B) Set
(C) List
(D) Tuple
9. Which of the following is immutable in Python?
(A) List
(B) Dictionary
(C) Set
(D) Tuple
10. Which collection allows adding and removing elements dynamically?
(A) Tuple
(B) List
(C) String
(D) Array
11. Which operation finds the number of elements in an array or collection?
(A) count
(B) length
(C) size
(D) All of the above
12. Which method can be used to combine two lists into one?
(A) Append
(B) Extend / Concatenate
(C) Slice
(D) Count
13. Which of the following is a fixed-size collection?
(A) List
(B) Array in some languages like C
(C) Tuple
(D) Set
14. Which collection type automatically removes duplicate elements?
(A) Set
(B) List
(C) Tuple
(D) Dictionary
15. Which operation retrieves all keys from a dictionary?
(A) items
(B) values
(C) keys
(D) all
16. Which operation retrieves all values from a dictionary?
(A) values
(B) keys
(C) items
(D) all
17. Which operation retrieves both keys and values from a dictionary?
(A) keys
(B) values
(C) items
(D) all
18. Which of the following collections is ordered and mutable?
(A) Set
(B) Tuple
(C) List
(D) Dictionary
19. Which collection type is often used for fast membership checking?
(A) List
(B) Tuple
(C) Set
(D) Array
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 functions