answersLogoWhite

0


Best Answer

Boolean

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What data or variable type is used for variables that will only have the values true or false?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Is declaration of variables allocated memory?

Constants, static variables and global variables are allocated in the program's data segment at compile time. Local variables are allocated on the stack at runtime. Variables cannot be allocated on the heap, you must use a constant, static variable, global variable or local variable to store the start address of a dynamic memory allocation. The variable must be a raw pointer or a reference handle (a smart pointer).


What are primitive variables?

Primitive variables are variables that are not objects and carry primitive values like numbers, boolean etc. The primitive data types in java are:intbytefloatcharlongbooleanshortdouble


Is it mandatory to declare the structure variable of a structure to access the data members?

true or false


How pointer differs from normal variable?

Usual variable used so called value type mechanism, meaning that if you have passed the variable to a function the variable itself was not passed, only its copy. Which makes value type mechanism safe. The only problem is that you use a lot of memory because a copy of your variable has been created.Pointers allow to avoid creating copies and operate with addresses of variables. It means when you pass your variable to any function, you actually pass only the variable's address. This mechanism is called reference type.Pointers work much faster and allow to use memory more effectively. The only problem is you have to take extra care when you are working with pointers. Using pointers any area of memory including protected by OS can be accessed. Such event will cause "blue screen" (under windows).


Java variables act as object or not?

How a Java variable would act depends on the variable's data type. Variables of the primitive data types like int, char, float etc would not act as objects. But apart from them, all other data types would act as Objects. Almost all data types would extend from java.lang.Object and would behave as objects.

Related questions

Data values can be referenced as?

INFO-101 Data values can be referenced: Answeras variables local to a routine as a variable in another control as variables global to a routine all of the above


What is the difference between continuous and discontinuous and discrete variables?

A continuous variable is a variable for which all possible representations are valid. A discrete variable is a variable for which only some representations are valid. Discontinuous variables apply to data sets where values recorded during particular periods are missing from the set.


What is constant variable in c?

Constant variables refers to those variables whose values cannot be changed. These variables should be initialized along with their declaration. Attempt to change the value of a constant variable will generate compile error. The syntax for declaring a constant variable is:const data-type variableName = value;


What are categorical variables?

Categorical variables take on a limited and at times a fixed number of value possibilities. If in fields such as Compute Science or Mathematics, they are referred to as enumerated types. In some cases possible values of a variable may be classified as levels.


What data can have only 2 values?

A binary variable.


Different types of variables?

In statistics or data management, there are two main types of variables. Each of these types of variables can then be divided into two more types of variables.1. Categorical variableA categorical variable is commonly known as a qualitative variable. Every response can be placed into a category. A response may fit into a specific category (mutually exclusive), or it may fit into a category such as "other" along with other responses (exhaustive). Categorical variables are either nominal or ordinal. A nominal variable is a word that describes a category (i.e. horse, dog, cat) and the order does not matter. An ordinal variable uses categories that have to be placed in an order (i.e. very bad, bad, ok, good, very good).2. Numeric variableA numeric variable is a variable that is expressed by a real number. It is commonly referred to as a quantitative variable. Numeric variables can either be continuous or discrete. A continuous variable is variable that can assume an infinite number of real values (i.e. 2.345....). These variables are often grouped into class intervals. A discrete variable is a variable with a finite number of real values (i.e. shoe size).Grade 12 Data Management class


Data involving two variables?

i need some real life examples for two variable data.


Is the value of a variable for an element called data set?

The observed values of a variable form the data set. Not sure where "element" fits into it.


Quantities that have different values at different times are called?

Variables or data


How can you compare values in tables of two variable categorical data?

The answer depends on what aspect you wish to compare: If you wish to find out if the two variables are correlated one statistical technique is the chi-square test.


What is a example of discrete data?

Discrete data are observations on a variable that which take values from a discrete set.


What is one variable data What is two variable data?

One variable data are measurements or recordings of the values of one characteristic of the subjects which are being studied. Two variable data refer to two characteristics. Examples of one variable data: hair colour, or height Examples of two variable data: hair colour and eye colour, or height and mass.