A block may refer to any of the following:
When referring to a hard drive or other storage devices, a block is a segment of a large area that can be assigned to store data.
With a text cursor, a block cursor is a cursor that indicates text will be overwritten. See our insert key definition for further information on this cursor and how text insertion can be changed.
In computer programming, a code block or enclosing block is a group of declarations and statements that operates as a unit, usually with its own level of lexical scope. For instance, a block of code may define a function, a conditional statement, or a loop. Below is an example of a conditional statement structured as a code block.
if ($question eq “answered”) { print(“Thanks Computer Hope!”); }
- When referring to a radio frequency or spectrum, a block is a subset range of radio frequencies in a larger band.
A programming block should not be confused with block-based programming, a type of programming.
Related pages
- How to create a computer program.
With IP addresses, a block is an allocation of addresses assigned to a network or business. For example, it’s the responsibility of ICANN to assign blocks of IP addresses to a company to use on the Internet.
In general, block describes anything that’s restricted. For example, a parent may block a website from being visited so their children are not exposed to anything they shouldn’t be seeing.
Ban, Band, Block indent, Block of text, Burst, Hard drive terms, Memory terms, Phone terms, Programming terms, Super block
Related information
- How to block a website.
- How to block YouTube videos or channels.
- Why can I not access a web page or chat at school or work?
- Protect children from harmful material and people on the Internet.
- How to block a phone number.