VERIFIED MASTER FILE
◉ What are examples of primitive data types? Answer: Integer,
float/double, char, bool.
◉ What are examples of composite data types? Answer: Arrays and
structures.
◉ What are user-defined data types? Answer: Data types created by
the user, like classes, enums, or structs.
◉ What is an enumeration (enum)? Answer: A set of predefined
named constants representing specific values.
◉ What are the advantages of using enums? Answer: Improved
readability, maintainability, and type safety.
◉ How do data types affect memory allocation and operations?
Answer: Data types determine how much memory is allocated and
what operations are supported.
, ◉ What is a data structure? Answer: A way to organize and store
data efficiently for access and modification.
◉ What are examples of common data structures? Answer: Arrays,
linked lists, stacks, queues, trees, graphs, hash tables.
◉ What is an abstract data type (ADT)? Answer: A theoretical model
defining operations and expected behavior without specifying
implementation.
◉ What are examples of ADTs? Answer: List, stack, queue,
map/dictionary.
◉ What are the differences between data types, data structures, and
ADTs? Answer: Data types define storage/operations; data
structures organize data; ADTs define behavior abstractly.
◉ What is an array? Answer: A collection of homogeneous elements
in contiguous memory locations.
◉ What is the access complexity of an array? Answer: O(1).
◉ What is the linear search complexity of an array? Answer: O(n).