Page 453 - ComputerScience_Class_11
P. 453
Unsolved Questions
A. Tick ( ) the correct option.
1. Which sequence data type allows modification of its elements after creation?
a. Tuple b. String
c. List d. Boolean
2. Identify the data type in which the collections of items are stored in a particular order.
a. Boolean b. Complex
c. Sequence d. List
3. Which symbol is used to define a tuple in Python?
a. [] b. {}
c. <> d. ()
4. Mark the following is a correct example of a mixed list.
a. [5, 2, 8, 4] b. {6, 2, 8, 9}
c. (1, 7, 3, 9) d. [1, "Hello", 3.5, True ]
5. Which index number represents the first element in a string in Python?
a. 5 b. 3
c. 0 d. 1
B. Fill in the blanks.
1. A float is a numeric data type used to store numbers that contain a ………………… point or fractional part.
2. A numeric variable store only a ………………… number at a time.
3. The ………………… values cannot be modified once they are created.
4. Dictionary is a data type that stores data in the form of ………………… pairs.
5. Ordered immutable data types like strings or tuples allow access but not ………………….
C. Answer the following questions:
1. Explain the characteristic "Support Type Conversion" in numeric data types of Python.
2. Mention two characteristics of set data type in Python.
3. What does the term Automatically Evaluated in Boolean data type mean?
4. Define a tuple in Python.
5. Differentiate between mutable and immutable data types.
6. What are the main characteristics of a None data type in Python?
7. What are the different ways to use a list?
8. What does the string data type represent?
D. Higher Order Thinking Skills (HOTS)
1. A library is designing a system to store book details (ID, title, author and price). The library wants to store the information for
books of different genres and formats (e.g., hardback, paperback, eBook) in a list. How can Python handle storing these different
data types in the same list?
2. A company is building an employee records system where each employee has a unique ID and various attributes like name, salary
and department. Why is it important for the system to ensure that each employee's ID is unique in the dictionary? How would
this affect the integrity of the employee records if duplicate IDs were allowed?
Data Types in Python 451

