Which of the following are true? Check all that apply. a) Primitive data types can hold several pieces of data and have methods to work on that data. b) String data types hold only one piece of information at a time. c) Class data types hold only one piece of information at a time. d) Primitive data types hold only one piece of information at a time. e) Class data types can hold several pieces of data and have methods to work on that data.

Respuesta :

Answer: d) Primitive data types hold only one piece of information at a time

                e) Class data types can hold several pieces of data and have methods to work on that data.

Explanation:  Primitive datatypes is the datatype that is predefined helps in programming field.They can contain the value of a simple kind at a time .It can be in the type such as int, char, float etc.

Class data types are the datatypes that can be in the form of char, int, float,short , long etc. It can store or hold the large amount of data along with the datatypes. Various concepts can be applied on the class datatypes for functioning like object-oriented concept etc.

Other options are incorrect because  string datatypes contains sequences of characters ,primitive data type cannot hold many data pieces and class data type can hold many piece of data.This, the correct option is option (d) and (e).

ACCESS MORE
EDU ACCESS