123k views
4 votes
Leah and Santana have been requested to print a daily report of scheduled activities. Their supervisor needs to know if each participant has paid for the activity. The ParticipantPD field will be included in the report. Which data type will allow the report to display a true/false condition for the ParticipantPD field?

User Elad Katz
by
4.8k points

1 Answer

3 votes

Answer:

Boolean

Step-by-step explanation:

Boolean is one of the primitive data types that will only hold either true or false value. This data type is commonly used in a variable that will track a status with only two possible outcomes.

For example, the ParticipantPD field is to track the payment status (paid or unpaid) of a participant. So, declare the ParticipantPD field as boolean data type will meet its purpose.

boolean ParticipantPD = true;

or

boolean ParticipantPD = false;

User Abhishek Khandave
by
5.4k points