Final answer:
The correct statements are that primitive data types hold only one piece of information at a time, and class data types can hold several pieces of data and have methods to work on that data.
Step-by-step explanation:
The question pertains to data types in programming. Here are the correct statements from the options given:
Primitive data types hold only one piece of information at a time.
Class data types can hold several pieces of data and have methods to work on that data.
For clarity:
a) This statement is false. Primitive data types, such as int, char, float, and double in languages like Java and C++, are the simplest forms of data with no methods attached and can hold a single value at a time.
b) This statement is false. String data types are typically considered to be objects or non-primitive data types in many programming languages and can contain a sequence of characters, essentially holding more than one piece of information.
c) This statement is false. Class data types (or objects) can encapsulate multiple pieces of data and functionality, with the capability to hold multiple pieces of information and methods to operate on that data.
d) As mentioned earlier, this statement is true. Primitive data types store single values like a number or character.
e) This is also true. Class data types, defined by the programmer, can hold multiple data attributes and related methods.