answersLogoWhite

0

What is a boolean variable?

Updated: 4/28/2022
User Avatar

Wiki User

11y ago

Best Answer

A Boolean variable is a variable from Boolean algebra having one of only two values.

User Avatar

Wiki User

8y ago
This answer is:
User Avatar

Add your answer:

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

What is the size of a boolean variable?

One bit.


What is default value of Boolean type variable?

False will be the default value of the boolean datatype in java


What do you mean by literals in boolean algebra?

A literal is either a variable or a negated variable.


How many values can a boolean variable have?

Two, True or False.


What is the difference between algebra and Boolean algebra?

Algebra is a very broad topic covering all sorts of things, including Boolean algebra. Boolean algebra in itself is the study of a variable called "Boolean." This variable can only take two values: true and false. See 'related links' for more information.


How does the absolute beginner to Browser-side scripting supposed to know what boolean or string means?

Boolean means yes or no, true or false, 0 or 1. There can only be 2 alternatives in boolean. In JavaScript there is a function typeof which will show whether variable is boolean, string, integer or any other. I am providing a few examples. Try those and you will understand what type of variable is providedvar a = 12;alert("Variable is of type: "+typeof(a));var a = "hello";alert("Variable is of type: "+typeof(a));


What Is a Boolean variable that signals when some condition exists in the program.?

flag


What is a name for a variable used for storing true false statements?

Usually, the name of the variable can be most anything. This type of variable is called a LOGICAL variable.


Write an if statement that sets the variable fees to 50 if the boolean variable max is true?

class d { private int fees=0; static void main(boolean max) { if(max) fees=50; } }


What is a name for a variable used for storing true false statements - 48k?

boolean


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

Boolean


Why boolean variable size in java is jvm dependent?

A boolean variable is one that has only two values; true and false. The storage required depends on the underlying implementation, and could be as small as one bit, or as large as a full word in the underlying hardware. You should not be concerned with the size of a boolean variable, because the size is immaterial to the program, and because any such consideration would represent non-portable programming practices.