Computer Science, asked by abhidhakne322, 15 days ago

Stuti is making a questionnaire of True-false questions. She wants to define a

data-type which stores the response of the candidate for the question. What is the

most-suited data type for this purpose?​

Answers

Answered by rajgangula983
3

Answer:

boolean

Explanation:

it is a

boolean data type

Answered by varshamittal029
0

Answer: Boolean datatype is the most-suited data type for this purpose.

Concept:

Datatypes are used for the declaration of variables. The type and size of data linked with variables are determined by this.

Given:

Stuti wants to define a data type that stores the response of the candidate for a questionnaire of True-false questions.

Find:

What is the most-suited data type for this purpose?​

Solution:

A boolean data type can have possibly two possible values: true or false.

It's possible that a true boolean value indicates that the item is valid. A false boolean value indicates that the item is invalid and that it was not completed properly. These are represented by 1 and 0 in binary.

∴ For a questionnaire of True-false questions, Boolean datatype is the most-suited data type.

Similar questions
Math, 7 days ago