PF2- LIST EXAM 2025/2026 QUESTIONS
AND ANSWERS 100% PASS.
What are Data Structures? - ANS Ways to organize data on a computer
What is an Algorithm? - ANS Set of steps to finish a task
Why are Data Structures and Algorithms important? - ANS They help manage data effectively
What is a Python list? - ANS A sequence of values called items or elements
Can list elements be different types? - ANS Yes, they can be int, float, string, etc.
Are lists mutable? - ANS Yes, they can be changed
How do you create a list? - ANS Use square brackets with items inside, e.g. [1,2,3]
Example of empty list? - ANS my_list = []
Example of mixed list? - ANS [1, "Hello", 2.5]
1 @COPYRIGHT 2025/2026 ALLRIGHTS RESERVED.
AND ANSWERS 100% PASS.
What are Data Structures? - ANS Ways to organize data on a computer
What is an Algorithm? - ANS Set of steps to finish a task
Why are Data Structures and Algorithms important? - ANS They help manage data effectively
What is a Python list? - ANS A sequence of values called items or elements
Can list elements be different types? - ANS Yes, they can be int, float, string, etc.
Are lists mutable? - ANS Yes, they can be changed
How do you create a list? - ANS Use square brackets with items inside, e.g. [1,2,3]
Example of empty list? - ANS my_list = []
Example of mixed list? - ANS [1, "Hello", 2.5]
1 @COPYRIGHT 2025/2026 ALLRIGHTS RESERVED.