answersLogoWhite

0

What is logical or boolean data?

Updated: 11/9/2022
User Avatar

Wiki User

8y ago

Best Answer

The logical or boolean data type is used to store true/false data. In some databases it can also be expressed as yes/no, 1/0, etc. For example you're either 21 or older or you're not 21 or older. In the US, you have to be 21 or older to drink alcohol legally. So you might store that kind of information about a person in a boolean/logical field named 'legal' and get that information by asking 'Are you 21 or older?'
Logical data is generally represented as a diagram and described in business language.

User Avatar

Wiki User

8y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is logical or boolean data?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Which data type stores only one of two values?

In Java, such a data type is called boolean. In other programming languages it may be known by different names, including variations of "boolean" such as "bool", and "logical".


What are logical functions?

A logical or boolean function is one that works with logical or boolean values - values that can only be either true, or false.


What is boolean data type?

what is boolean data type


What is a Boolean or logical data type is used to store?

A Boolean or logical data type can be used to store anything that can answer a "yes/no" question. In other words, anything that has two options. For example:Does the checkbox have a check mark?Is the person underage?Does a certain file exist on disk?etc.A Boolean or logical data type can be used to store anything that can answer a "yes/no" question. In other words, anything that has two options. For example:Does the checkbox have a check mark?Is the person underage?Does a certain file exist on disk?etc.A Boolean or logical data type can be used to store anything that can answer a "yes/no" question. In other words, anything that has two options. For example:Does the checkbox have a check mark?Is the person underage?Does a certain file exist on disk?etc.A Boolean or logical data type can be used to store anything that can answer a "yes/no" question. In other words, anything that has two options. For example:Does the checkbox have a check mark?Is the person underage?Does a certain file exist on disk?etc.


What logical operator is used to reverse the boolean operator?

NOT


What data type is the is Yes or No?

In Java, that would be called "boolean". In other languages it may have different names, for example, "logical". In C, there is no true boolean data type, so people just use integer and if you want the integer to be true, you set it to 1 and if you want it to be false, you set it to 0.


Define Boolean Algebra?

Boolean algebra is a division of mathematics that deals with operations on logical values and incorporates binary variables.


Difference between relational and logical operators?

Logical operators don't Compare values they combine Boolean values and produce a Boolean result. Examples of logical operators are && (and), , (or), ! (not). If you have two Boolean values and you combined them with the && operator the result will be (TRUE) only if both values were (TRUE). Relational operators compare two values and produce a Boolean result. Most of the time we use logical operators to combine the results of two or more comparison expressions that use relational operators.


What is the boolean algebra?

It is a system of logical calculus on which logic axioms are based on.


List the eight basic data types used in java and give examples?

The 8 primitive data types are byte, short, int, long, float, double, boolean and char boolean is used to store logical values true/false char is used to store single digit characters. 'Y', 'X' etc the remaining data types are used to store a wide variety of numbers.


How many bytes does an Boolean take in a c program?

There is no boolean in C, we usually use int/short/char to store logical values.


When working with predefined formulas in excel what category contains the boolean functions?

They are under the category of Logical Functions.