answersLogoWhite

0


Best Answer

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.
User Avatar

Wiki User

14y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

14y ago

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.
This answer is:
User Avatar

User Avatar

Wiki User

13y ago

A boolean can only have 1 of 2 values, either true or false.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is a Boolean or logical data type is used to store?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is logical or boolean data?

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.


What is boolean data type?

what is boolean data type


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 field with a Yes and No data type can store only one of two values The choices are?

boolean?


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.


What is the width of Boolean data type in java?

1 bit


Where string is primitive data type of string data type?

String is not primitive data. Only char,int,double,and boolean are!


What Is bool data type?

There are a number of data types that we use in computer science. Bool data type stands for boolean data type. In boolean data type the data is stored in form of 0 ans 1s. On boolean data type logical functions like AND, OR ,NOT ,XOR etc functions can be performed.


What data or variable type is used for variables that will only have the values true or false?

Boolean


Why Boolean is not considered in C as primitive data type?

primitive data types are those which are independent and boolean expression is never independent it's existence always depends on some conditions or voltage signals


What is the size of a Java primitive data types and how can you find it?

byte - 8 bits short - 16 bits char - 16 bits int - 32 bits long - 64 bits float - 32 bit double - 64 bit The boolean primitive type is only required to store two values (true or false), but the implementation may actually use a larger data type to store it. For example, Sun's implementation of Java uses a byte to store each boolean. You can find the size of each type in the Java Language Specification, linked below.


What is logical file?

Logical file is a type of file that provides a view of the data stored into the Physical file. It does not contain data. A logical file contains only an index to the data stored into the physical file.