100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
1.4 Data Representation and Data Types $7.31   Add to cart

Class notes

1.4 Data Representation and Data Types

 28 views  0 purchase
  • Course
  • Institution
  • Book

Full notes for module 1.4 Data Representation and Data Types

Preview 1 out of 4  pages

  • June 11, 2019
  • 4
  • 2016/2017
  • Class notes
  • Unknown
  • All classes
avatar-seller
AS Computing

Unit 1.4 Data Representation and Data Types

Data can be represented in many forms. The most basic form is what we call Binary. Binary is also
known as Base-2 and only allows for 1’s ad 0’s.

So for example;

124 in binary is 01111011:

128 64 32 16 8 4 2 1
0 1 1 1 1 0 1 1


Computers use binary because at their bases computers are just switches. So, computers can
understand one of two conditions: On and Off. We use 1 and 0 to represent these states. Another
way of representing data is using hexadecimal (Base-16), this is used because it easier for humans to
read. Humans are thought to have started to use Base-10 (Decimal) because we have ten fingers and
thumbs.

Binary

Some examples of Decimal -> Binary number and vice versa conversions are:

1) What is 1 in 8-Bit Binary?

128 64 32 16 8 4 2 1
0 0 0 0 0 0 0 1
1 is 00000001 in 8-Bit Binary.

2) What is 00100101 in Decimal

128 64 32 16 8 4 2 1
0 0 1 0 0 1 0 1
00100101 in decimal is 32+4 +1 which is 37 .

The largest number we can represent in 8-Bit binary is 255, which is the result of the conversion of
the number 11111111 to decimal. To represent larger numbers, we would need a larger store of
numbers e.g. a 16-Bit decimal number. The numbers in an 8-Bit binary conversion table (Show
above) double each time as you go from right to left from 1 to 128.

Data Types

There are many data types that we use to represent different types of data inside computers. We
only need to know about a few of them. The ones that we need to know about are:

Data Type Example Usage
String “Hello” Names, addresses etc.
Real Number 0.234 Decimals, Currency
Integer 63 Age, whole numbers
Boolean True True or False
Character ‘E’ One character




Page |1 Luca Passariello AS Computing

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller luca_pass. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $7.31. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

83225 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$7.31
  • (0)
  Add to cart