answersLogoWhite

0


Best Answer

Two, True or False.

User Avatar

Wiki User

10y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How many values can a boolean variable have?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is a boolean variable?

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


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

Boolean


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.


When you combine AND and OR operators the OR operators take precedence meaning their Boolean values are evaluated first?

in some cases, aloop control variable does not have to be initialized.


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.


What values can the boolean variables take in boolean algebra?

true or false


What is the size of a boolean variable?

One bit.


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.


How many values can a variable have?

It can have many


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.


What is boolean in C Sharp?

A boolean is a variable type that can only be two different values True or False same as it is in most programming languages but in C# booleans are stated as: public bool var = True; or public bool var = False;