answersLogoWhite

0

The most basic logical element of data is the binary digit, or bit, which can represent the numeric value 0 (the bit is unset) or 1 (the bit is set), which can subsequently represent any opposing concept, such as true or false, yes or no, black or white, positive or negative, etc.

However, computer systems do not permit the storage of a single bit because a single bit cannot be addressed in memory. Every memory address represents a group of bits known as a byte (8 bits), thus a boolean value (a value that has only two possible states, such as true or false) is typically composed of 8 bits where the binary value 00000000 (no set bits) is regarded as being false while any other combination of bits (a non-zero value) is regarded as being true. Typically the binary value 11111111 (which is decimal -1 in signed notation) is regarded as being true but any non-zero value is also regarded as being true.

In order to conserve memory, programmers will often combine several boolean values into a single value, such that each individual bit represents something different. Thus a single byte can effectively store up to 8 individual boolean values. In order to determine the state of any one bit, the programmer simply tests the combined bits against the bit-value he's actually interested in. For instance, to test if bit 3 is set (the fourth least-significant digit, from the right), the programmer will logically AND the combined bits with the value 23, which is 00001000 in binary (8 decimal). If the result is non-zero then bit 1 is definitely set, otherwise it is not.

User Avatar

Wiki User

12y ago

What else can I help you with?

Continue Learning about Engineering

Is xor an instruction for the assembly language?

It depends on the specific instruction set for the processor you are programming. Most processors will support the basic logical instructions, but you would have to view the documentation for a particular processor to know for sure.


What is a project data book?

A project data book is your most treasured piece of work. accurate and detailed notes make a logical and winning project. good notes show consistency and thoroughness to the judges and will help you when writing your research paper. Data tables ate also helpful. they may be a little 'messy' but be sure the quantitative data recorded is accurate and that units are included in the data tables. make sure you data each entry.


Why is an array called a data structure?

An array could be called static because it is generally not changed structurally once it is created, meaning that you do not add, delete or swap the nodes themselves, though you will likely modify the data contained by the nodes. This differs from a more dynamic data structure, such as a linked list, where adding, deleting or swapping nodes is relatively simple.


What is a basic structure of HTML?

A HTML file has the below structure <HTML> <HEAD> <TITLE> Title of the Web page <TITLE> Header of the Web page </HEAD> <BODY> Body of the Web Page </BODY> </HTML> The file has a .HTML extension and can be viewed in any web browser like IE or chrome or Mozilla


What is the function of adodc?

Visual Basic is probably the most popular language in which to develop applications for ADO...Because ActiveX Data Objects expose their properties by means of COM interfaces, they can be accessed by any language that can utilize COM...

Related Questions

Does propositional calculus take truth values to be the most basic element of logical analysis?

Yes.


Based on the conceptual framework of levels of data the most basic and smallest logical unit of information is a?

The most basic and smallest logical unit of information is a bit. A bit represents a binary value of either 0 or 1, and is the building block of all digital data.


What is meant by the term element?

An element is a substance that is in its most basic form and cannot be broken down into anything more basic. Therefore, something that is elemental is in its most basic form.


What is the smallest part of a database?

The smallest part of a database is a single data element, which is the most basic unit of information stored in a database. It can be a character, number, date, or other discrete piece of data.


What are the basic recommended steps for troubleshooting a cable problem?

1.Split the system into logical elements. 2.Locate the element that is most likely the cause of the problem. 3.Test the element or install a substitute to verify it as the cause of the problem. 4.If the suspected element is not the cause , move on to the next likely element. 5. After locating the cause of the problem, repair it or replace it.


What is meant by elemental form?

Elemental form refers to the pure, basic form of an element that consists of only atoms of that element. It is the simplest and most basic form in which an element can exist, with no chemical combination with any other element.


What is the most basic element of visual communication of art?

Line... I believe


What is the most basic of all matter?

The basic matter of all is elements. In animals it is the cell.


What is the most basic chemical structure of matter?

The most basic chemical structure of matter is an atom. Atoms are the smallest units of matter that retain the properties of an element.


This element is commonly found combined with another element?

Most basic elements: Calcium, Magnesium, Barium, Sodium, Potassium, etc.


Which group 5A element forms the most basic oxide?

Bi, Bismuth forms the most basic oxide in group 5A because it has the most metallic character.


What Logical record and physical record?

In record design we distinguish between logical and physical records. LOGICAL RECORDS: A logical record maintains a logical relationship among all the data items in the records.It is the way the programmer or user sees the data.IN CONTRAST, A PHYSICAL RECORD is the way data are recorded on a storage medium.The programmer doesnt know about the physical map on the disk.The software presents the logical record in the required sequence.The capability is unique to the data base design. This question is answered by Silpa Sonali Sahoo.I request all the User if you can give some extra knoweldge/idea based on the discussed topic then you are most welcome.