Data Representation and Storage

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Listen to an AI-generated conversation about this lesson
Download our mobile app to listen on the go
Get App

Questions and Answers

Which of the following is the most accurate definition of "multimedia" in the computer industry?

  • Information solely composed of numbers and text.
  • Information with only images and text.
  • Information presented solely through video and audio.
  • Information that contains a combination of numbers, text, images, audio, and video. (correct)

Data must be decompressed before it can be stored in a computer.

False (B)

What is the name of the universal representation that all data types are transformed into when stored in a computer?

bit pattern

In computers, whole numbers without a fractional part are called ________.

<p>integers</p>
Signup and view all the answers

Match the representation method with its respective characteristic regarding the storage of the decimal point.

<p>Fixed-point = Decimal point position is fixed and assumed but not stored. Floating-point = Decimal point position is explicitly indicated using a shifter.</p>
Signup and view all the answers

Which of the following accurately describes an 'unsigned integer'?

<p>An integer that can never be negative and can take only 0 or positive values. (B)</p>
Signup and view all the answers

In the sign-and-magnitude representation, the leftmost bit of an integer indicates the magnitude of the number.

<p>False (B)</p>
Signup and view all the answers

What is the decimal value of the bit string 00101011 when it's stored in memory as an unsigned integer?

<p>43</p>
Signup and view all the answers

In sign-and-magnitude representation, if the leftmost bit is _____ , the integer is positive.

<p>0</p>
Signup and view all the answers

Match the following bit patterns with their corresponding integers in sign-and-magnitude representation, assuming an 8-bit format.

<p>01001101 = +77 10100001 = -33</p>
Signup and view all the answers

What is the result of applying the one's complement operation to a binary number?

<p>Each bit is reversed (flips). (A)</p>
Signup and view all the answers

Applying the one's complement operation to a binary number twice will not result in the original binary number.

<p>False (B)</p>
Signup and view all the answers

What are the two-steps in taking the two's complement in binary?

<p>First, we copy bits from the right until a 1 is copied; then, we flip the rest of the bits.</p>
Signup and view all the answers

In two's complement representation, the leftmost bit defines the sign of the integer. If it is 1, the integer is _________.

<p>negative</p>
Signup and view all the answers

Match the following bit patterns with their corresponding integers in two's complement representation, assuming an 8-bit format.

<p>00001101 = +13 11100110 = -26</p>
Signup and view all the answers

Which of the following is generally true about two's complement notation?

<p>There is only one representation for zero. (C)</p>
Signup and view all the answers

Real numbers (with very large integral parts or very small fractional parts) should be stored in fixed-point representation.

<p>False (B)</p>
Signup and view all the answers

Name the three parts that a floating-point number is made up of. Seperate each with a comma.

<p>sign, shifter, fixed-point number</p>
Signup and view all the answers

To make the fixed part of the representation uniform in both scientific and floating-point methods, only one non-zero digit is used on the left of the decimal point. This is called ___________ .

<p>normalization</p>
Signup and view all the answers

Match each component of the floating point representation with its role

<p>Mantissa = Treated like an integer stored in sign-and-magnitude representation. Excess System = Positive and negative integers are stored as unsigned integers.</p>
Signup and view all the answers

What is the main purpose of the 'Excess system' in representing exponents in floating-point numbers?

<p>To store both positive and negative integers as unsigned integers. (B)</p>
Signup and view all the answers

According to the IEEE Standard, the point and the bit 0 to the left of the fixed-point section are stored.

<p>False (B)</p>
Signup and view all the answers

What is the bias value for single precision floating point numbers under the IEEE standard?

<p>127</p>
Signup and view all the answers

In floating-point representation, the fractional part which, together with the sign, is treated like an integer stored in sign-and-magnitude representation is called the _________.

<p>mantissa</p>
Signup and view all the answers

Match the IEEE floating-point precision standard with its total bit size:

<p>Single precision = 32 bits Double precision = 64 bits</p>
Signup and view all the answers

The English language, for text, uses which of these?

<p>26 Symbols (C)</p>
Signup and view all the answers

MP3 is a dominant standard for storing audio and is short for Motion Picture Experts Group Layer 3.

<p>False (B)</p>
Signup and view all the answers

What are the three steps to store audio?

<p>sampling quantization encoding</p>
Signup and view all the answers

The process that rounds the value of an audio sample to the closest integer value is called _________.

<p>quantization</p>
Signup and view all the answers

Match the follow audio terms with their correct definitions:

<p>Bit depth = Number of bits per sample Bit rate = Number of bits per second</p>
Signup and view all the answers

What is the main difference between audio and photographs described in the text?

<p>The intensity (color) of data varies in space instead of in time in potographs (C)</p>
Signup and view all the answers

In image storage, sampling is typically referred to as vectoring.

<p>False (B)</p>
Signup and view all the answers

What is image scanning rate in image processing called?

<p>resolution</p>
Signup and view all the answers

The number of bits used to represent a pixel is called __________.

<p>color depth</p>
Signup and view all the answers

Match the image encoding methods with the color scheme they use:

<p>JPEG = True-Color GIF = Indexed Color</p>
Signup and view all the answers

Which of the following is considered a disadvantage of using a raster graphics?

<p>Images can appear ragged when enlarged. (A)</p>
Signup and view all the answers

Vector graphic image encoding stores bit patterns for each pixel

<p>False (B)</p>
Signup and view all the answers

Name the two different image storing techniques.

<p>raster graphics vector graphics</p>
Signup and view all the answers

In raster graphics, samples are usually called _________.

<p>pixels</p>
Signup and view all the answers

Match the following main pieces programs use to draw circles with its explanation:

<p>radius and equation of a circle: = A value that specifies the distance from the center of the circle to its outer edge. location of the center point of the circle. = The place on the panel where the precise center of the circle is defined.</p>
Signup and view all the answers

Flashcards

What is multimedia?

Information containing numbers, text, images, audio, and video.

What is a bit pattern?

A uniform representation of all data types in a computer.

What are integers?

Whole numbers (numbers without a fractional part).

What is fixed-point representation?

A method to store an integer where the decimal point is assumed but not stored.

Signup and view all the flashcards

What are unsigned integers?

Integers that can never be negative.

Signup and view all the flashcards

What is sign-and-magnitude representation?

Available range for unsigned integers is divided into two equal sub-ranges for both positive and negative values.

Signup and view all the flashcards

How do you know the sign?

Leftmost bit defines the sign of the integer, 0 is positive, 1 is negative.

Signup and view all the flashcards

What is two's complement representation?

Available range for an unsigned integer of (0 to 2n - 1) is divided into two equal sub-ranges.

Signup and view all the flashcards

One's complementing

Reverses (flips) each bit. A 0-bit is changed to a 1-bit, a 1-bit is changed to a 0-bit.

Signup and view all the flashcards

What is two's complementing?

Operation to take the two's complement of an integer in binary: copy bits from the right until a 1 is copied then flip the rest.

Signup and view all the flashcards

What are reals?

Numbers with an integral part and a fractional part.

Signup and view all the flashcards

What is floating-point representation?

Consists of a sign, a shifter, and a fixed-point number.

Signup and view all the flashcards

Normalization

To make the fixed part of the representation uniform, both the scientific method (for the decimal system) and the floating-point method (for the binary system) use only one non-zero digit on the left of the decimal point.

Signup and view all the flashcards

What is the exponent?

Power that shows how many bits the decimal point should be moved to the left or right.

Signup and view all the flashcards

What is the Excess system?

A system where both positive and negative integers are stored as unsigned integers.

Signup and view all the flashcards

What is audio data?

Representation of sound or music.

Signup and view all the flashcards

What is sampling?

Select a finite number of points on the analog signal measure their values, and record them.

Signup and view all the flashcards

What is Quantization?

Rounds the value of a sample to the closest integer value.

Signup and view all the flashcards

What is audio encoding?

Quantized sample values encoded as bit patterns.

Signup and view all the flashcards

What is MP3?

Today the dominant standard for storing audio.

Signup and view all the flashcards

What are images?

Stored in computers using two different technologies raster and vector.

Signup and view all the flashcards

What are raster graphics?

Needs to store an analog image such as a photograph.

Signup and view all the flashcards

What is resolution?

Scanning rate in image processing.

Signup and view all the flashcards

What is color depth?

The number of bits used to represent a pixel.

Signup and view all the flashcards

What is true-color?

Technique used to encode a pixel. It uses 24 bits to encode one.

Signup and view all the flashcards

What are vector graphics?

Image-encoding that decomposes an image into a combination of geometrical shapes.

Signup and view all the flashcards

What is video data?

Representation of images (called frames) over time.

Signup and view all the flashcards

Study Notes

Data Storage Overview

  • Data comes in various forms: numbers, text, audio, images, and video.
  • Multimedia is the term used to describe information containing a combination of numbers, text, images, audio, and video.

Data Representation in Computers

  • All data types are converted into a uniform bit pattern for storage and then transformed back to their original form upon retrieval.

Data Compression

  • Data is typically compressed before storage to minimize memory space, as discussed in Chapter 15.

Error Detection and Correction

  • Issues regarding error detection and correction during data transmission or storage are covered in Appendix H.

Storing Numbers

  • Numbers are converted to the binary system before storage.
  • Challenges include storing the sign of the number and indicating the decimal point.

Storing Integers

  • Integers are whole numbers, lacking a fractional component.
  • Fixed-point representation stores integers, where the decimal point position is fixed to the right of the least significant bit.
  • The decimal point is assumed but not explicitly stored.

Unsigned Integer Representation

  • Unsigned integers are non-negative.
  • Stored by converting the integer to binary, then padding with zeros on the left if necessary to meet the required length.
  • Example: Storing 7 in an 8-bit memory location involves converting 7 to binary (111) and adding five leading zeros, resulting in 00000111.

Overflow in Unsigned Integers

  • Occurs when trying to store an integer larger than what a given memory location can hold
  • Example: Storing an integer larger than 15 in a memory location that can only hold four bits (2^4 - 1 = 15)

Sign-and-Magnitude Representation

  • The available range for integers is split into equal sub-ranges where the first half represents positive integers and the second half negative integers.
  • The leftmost bit indicates the sign: 0 for positive, 1 for negative.
  • +/- 28 can be stored in an 8-bit memory location. 0011100 & 1011100

Two's Complement Representation

  • Almost all computers use two's complement
  • It divides the range for an n-bit unsigned integer into two sub-ranges, which represent negative and non-negative integers.
  • Determining the value uses the 0, the integer is positive / 1, the integer is negative principle

One's Complementing

  • This reverses (flips) each bit to its inverse: A 0 becomes a 1 and a 1 becomes a 0.
  • Applying this operation twice returns the original outcome

Two's Complementing

  • Copy bits from the right until a 1 is copied, then flip the bits
  • An alternative way to perform a two's complement is to do one's complement first and add 1 to the result.
  • Example: storing +28 in an 8-bit location, it's transformation is decimal to binary and adding leading zeros.
  • Negative 28 requires that we also perform the two's complement operation

Comparison of Integer Storage Systems

  • Unsigned representation only stores positive value
  • Sign & Magnitude and Two's Complement representations store negative numbers

Storing Real Numbers

  • Real numbers have an integral and a fractional part.
  • Recommended not be stored in fixed-point due to accuracy / precision
  • Real numbers are stored using floating-point representation, which includes a sign, a shifter, and a fixed-point number.
  • This method maintains accuracy or precision

Floating-Point Representation

  • Includes a sign, shifter and fixed part number

Normalization

  • Used make fixed parts of representation uniform
  • both scientific and floating point methods use one non zero digit on the left of the decimal point
  • In the decimal system this digit can be 1 to 9 and in binary it can only be 1.

Mantissa

  • The mantissa is a fractional part that, put together with the sign, like an integer stored in sign-and-magnitude representation.

Binary System

  • Both positive and negative integers store as unsigned integers in this system.
  • A positive biases each number in order to shift them to the non-negative side e.g., Excess-7: biasing value is 7.

IEEE Standard

  • The IEEE standard is used for floating-point representation, with single precision (32 bits) and double precision (64 bits) forms.

Exponent

  • Is a power that shows how many bits the decimal point should be moved to the left or right, is a signed number.

Overflow and Underflow

  • Occur in real number storage, alongside the means of storing Zero

Storing Text

  • Text is stored as a sequence of symbols/characters.

Representing Text

  • Text like "CATS" can be n-bit patterns where the pattern defines a single symbol
  • Each bit pattern depends on the number of symbols
  • Common codes include ASCII and Unicode

Storing Audio

  • By nature audio digital data that are countable entities
  • digital data differs from audio/ analog data

Sampling

  • Selects only a finite number of points on the analog signal, measure their values, and record them
  • We cannot record all the values in an audio sampling over an interval.

Quantization

  • Approximates the value of each sample to the closest integer value.

Encoding

  • Encodes quantized sample values as bit patterns.
  • Bit depth (B) represents the number of bits per sample.

Bit Rate

  • Number of samples per second (S) times the number of bits per sample, (B).
  • For example, using 40,000 samples / second and 16 bits per sample gives a bit rate of 640,000 bits / second.

Standards for sound encoding

  • MP3 (MPEG Layer 3) uses 44,100 samples / second and 16 bits / sample

Storing Images

  • Stored using raster graphics and vector graphics.

Raster Graphics

  • Also known as Bitmap graphics
  • Suited for storing analog images of data that's intensity varies.
  • Sampling is called scanning, with pixels being picture elements.

Resolution

  • Density of pixels in an image or the scanning rate

Color Depth

  • The number of bits used to represent a pixel
  • Color perception is how eyes respond to a light beam
  • RGB is the three primary colors red, green, and blue

True Color

  • Uses 24 bits to encode a pixel
  • Example: Some colors in True Color are Red (255,0,0), Green (0,255,0), and Blue (0,0,255).

Indexed Color

  • Also known as Palette Color.
  • It Uses only a portion of the colors

Image Encoding Standards

  • JPEG uses the True-Color scheme combined with compression
  • GIF images often utilize indexed color schemes

Vector Graphics

  • Unlike raster graphics do not save bit patterns for each pixel meaning the file size is small
  • Images are geometric shapes e.g., radius and equation of circle

Storing Videos

  • Stored as frames over time
  • Combination of stored images representing the video.
  • Video compression methods are in chapter 15

Studying That Suits You

Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

Quiz Team

Related Documents

More Like This

Computer Data Representation
30 questions
Data Representation and Storage Basics
18 questions
Data Representation and Digitization
38 questions

Data Representation and Digitization

WellEstablishedConcreteArt8257 avatar
WellEstablishedConcreteArt8257
Use Quizgecko on...
Browser
Browser