CS UNIT 1
24 Questions
1 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

Which data representation method involves reversing each binary digit and adding 1 to the right-most position?

  • One's complement
  • Two's complement (correct)
  • Binary-coded decimal (BCD)
  • Sign and magnitude

In the sign and magnitude representation, '0' as the leftmost bit indicates a negative number, and '1' indicates a positive number.

False (B)

What number system is based on the value 16 and uses the denary digits 0 to 9 and the letters A to F?

Hexadecimal

A ______ is an abbreviation for binary digit.

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

Match the following data representation methods with their descriptions:

<p>One's complement = Each binary digit is reversed Two's complement = Each binary digit is reversed with 1 added Sign and magnitude = Left-most bit represents the sign Binary-coded decimal (BCD) = Uses 4 bits to represent each denary digit</p> Signup and view all the answers

Unicode is a coding system designed to:

<p>Represent all the languages of the world (B)</p> Signup and view all the answers

Which of the following is a limitation of ASCII code?

<p>It works only for the English language and has a limited number of special characters (D)</p> Signup and view all the answers

A memory dump refers to:

<p>Outputting the contents of a computer's memory to the screen or printer (D)</p> Signup and view all the answers

What is a primary disadvantage of using Unicode compared to ASCII?

<p>Unicode requires more storage space per character. (A)</p> Signup and view all the answers

A higher bit depth in a digital image always results in lower image quality.

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

Define pixel density and explain its impact on image appearance.

<p>Pixel density is the number of pixels per square centimeter. Higher pixel density results in a sharper and more detailed image.</p> Signup and view all the answers

In digital imaging, the smallest unit of an image is known as a ______.

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

If an image has a resolution of 4096 x 3192 pixels, approximately how many total pixels does the image contain?

<p>13 million pixels (B)</p> Signup and view all the answers

Match the following multimedia concepts with their definitions:

<p>Color Depth = Number of bits used to represent colors in a pixel. Image Resolution = Number of pixels that make up an image. Sampling Rate = Number of sound samples taken per second. Frame Rate = Number of video frames per second.</p> Signup and view all the answers

Vector graphics use pixels to form images, similar to bitmap images.

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

Explain the impact of a screen resolution being smaller than the resolution of an image being displayed.

<p>If the screen resolution is smaller than the image resolution, the entire image may not be displayed on the screen, or the image quality will be reduced to fit the screen.</p> Signup and view all the answers

Which factor is most influential when determining whether to use a vector graphic or a bitmap image for a specific application?

<p>The level of detail required and the need for scalability without loss of quality. (C)</p> Signup and view all the answers

During audio compression using perceptual music shaping, all sounds outside the typical range of human hearing are preserved to maintain the original quality.

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

Explain the difference between lossy and lossless file compression methods, referencing the recoverability of the original file.

<p>Lossless compression allows the original file to be fully restored after decompression, while lossy compression results in some data loss that cannot be recovered.</p> Signup and view all the answers

The number of sound samples taken per second when converting analogue sound to digital is known as the ______.

<p>sampling rate</p> Signup and view all the answers

What is the primary characteristic of JPEG file compression?

<p>It's a lossy compression technique based on the human eye's limited ability to perceive certain colour changes. (D)</p> Signup and view all the answers

Why would a higher bit rate typically result in a better quality audio or video file?

<p>Because a higher bit rate allows for more data to be transmitted per second, resulting in a more detailed representation of the sound or video. (D)</p> Signup and view all the answers

Match the following terms with their descriptions:

<p>Bit Rate = Number of bits per second transmitted over a network Run Length Encoding (RLE) = Lossless compression technique for text and photo files Perceptual Music Shaping = Method to reduce sound file size by eliminating inaudible sounds Sampling Rate = Number of sound samples taken per second capturing audio</p> Signup and view all the answers

Vector images are generally more suitable than bitmap images for photographs because they can represent continuous tones and subtle gradations of color more accurately.

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

Flashcards

Extended ASCII

An extended character encoding standard that allowed more European language characters and accents.

Unicode

A character encoding standard using 16 or 32 bits per character, enabling support for millions of different characters.

Bit-map image

An image represented by a grid of pixels.

Pixel

The smallest addressable element in an image.

Signup and view all the flashcards

Color depth

The number of bits used to represent the colors in a pixel.

Signup and view all the flashcards

Bit depth

The number of bits used to represent the smallest unit in a sound or image file.

Signup and view all the flashcards

Image resolution

The number of pixels that make up an image (width x height).

Signup and view all the flashcards

Vector graphics

Images that use 2D points to describe lines, curves, and shapes.

Signup and view all the flashcards

Binary

Base-two number system using only 0 and 1.

Signup and view all the flashcards

Bit

Abbreviation for binary digit; a single 0 or 1.

Signup and view all the flashcards

One's Complement

Reversing each binary digit to represent negative numbers.

Signup and view all the flashcards

Two's Complement

Reversing digits and adding 1 to represent positive/negative numbers.

Signup and view all the flashcards

Sign and Magnitude

Left-most bit for sign (0=positive, 1=negative), rest is the value.

Signup and view all the flashcards

Hexadecimal

Number system based on 16, using 0-9 and A-F.

Signup and view all the flashcards

Memory Dump

Output of computer memory to the screen or printer.

Signup and view all the flashcards

Binary-Coded Decimal (BCD)

Uses 4 bits to represent each denary (decimal) digit.

Signup and view all the flashcards

Sound

Vibrations traveling through a medium (usually air) caused by rapid pressure changes.

Signup and view all the flashcards

Sound wave components

Volume and pitch.

Signup and view all the flashcards

Sampling Rate

The number of sound samples taken per second.

Signup and view all the flashcards

Sampling resolution

The precision of amplitude measurement when converting sound to digital.

Signup and view all the flashcards

Lossless File Compression

A file compression method where the original file can be perfectly restored after decompression.

Signup and view all the flashcards

Lossy File Compression

A file compression method where some data is lost and cannot he recovered during decompression.

Signup and view all the flashcards

JPEG

A lossy compression method that exploits the human eyes inability to spot certain colour changes.

Signup and view all the flashcards

Run Length Encoding (RLE)

A lossless compression technique used to reduce the size of text and image files.

Signup and view all the flashcards

Study Notes

Data Representation

  • Binary is a base two number system using values 0 and 1.
  • Bit is short for binary digit.
  • One's complement reverses each binary digit to represent positive and negative numbers.
  • Two's complement reverses each binary digit and adds 1 to the right-most position for representing positive and negative numbers.
  • Sign and magnitude uses the left-most bit to represent the sign (0 = +, 1 = -), and the remaining bits represent the binary value.
  • Hexadecimal is a base 16 number system (using digits 0-9 and letters A-F).
  • Memory dump refers to computer memory contents output to a screen or printer.
  • Binary-coded decimal (BCD) uses 4 bits to represent each denary digit.
  • ASCII code is a coding system for all keyboard characters and control codes.
  • A character set is a list of characters defined by computer hardware/software, necessary for computers to understand human characters.
  • Unicode is a coding system that represents all world languages, where the first 128 characters match ASCII code.

Binary Number System

  • Uses 1s and 0s.
  • Place values from right to left are 1, 2, 4, 8, 16, 32, 64, 128.

Hexadecimal Number System

  • Closely related to the binary system.
  • Base 16 system.
  • Place values are 1, 16, 256, 4096, 65 536, 576, 1048.

ASCII and Unicode

  • ASCII code system was established in 1963 for communication in computer systems.
  • Advantages: easy to read/write/understand, simple to memorize, small storage and transmission size (7 bits standard, 8 bits extended).
  • Disadvantages: only works for English, limited special characters.
  • ASCII extended from 7 to 8 bits to include 256 characters.

Unicode

  • Solved problems with ASCII.
  • Advantages: use of more European language characters and accents, millions of characters available (16 or 32 bits per character).
  • Disadvantages: longer than ASCII, more storage space, couldn't support Eastern alphabets/characters.
  • There is a need for a larger number of available characters, so Unicode was invented.
  • Larger number of bits per character mean 2 or 4 times more storage space is needed per letter.

Multimedia

  • Bit-map image uses pixels to make up an image.
  • Pixel: smallest picture element.
  • Colour depth: number of bits to represent colours in a pixel.
  • An 8-bit colour depth can represent 256 colours.
  • Bit depth: the number of bits for the smallest sound or image unit.
  • A larger bit depth means better quality.
  • Image resolution: the number of pixels.
  • Example: 4096 × 3192 pixels = 12738656 pixels.
  • Screen resolution: number of horizontal and vertical pixels.
  • If screen resolution is smaller than the image resolution, the image will not be fully shown or the original image quality will be lower.
  • Resolution: number of pixels per column and row on a screen.
  • Pixel density: number of pixels per square centimetre.
  • Vector graphics use 2D points to describe geometric shapes.
  • Sampling resolution number of bits used to represent sound amplitude (also known as bit depth).
  • Sampling rate is the number of sound samples taken per second.
  • Frame rate: number of video frames per second.

Bitmap Images

  • Made up of pixels stored in a two-dimensional matrix. A bitmap can be resized
  • Pixel density can be calculated using screen resolution and size.

Vector Images

  • Images use 2D points to describe lines, curves, and their properties.

Vector vs Bitmap

  • Vector graphic images are made up of geometric shapes that require definition/attributes
  • Editing vector graphic images requires changing each geometric shape
  • Because vector graphic images are made up of simple geometric shapes their file sizes aren't large
  • Vector graphics are not usually very realistic
  • File formats are usually .svg, .cgm, .odg
  • Bit-map images are made up of tiny pixels of different colours
  • Editing bit-map images requires changing each pixel
  • Because bit-map images use pixels (which give very accurate designs), the file size is very large
  • Images are built up pixel by pixel, the final image is usually very realistic
  • File formats are usually .jpeg, .bmp, .png
  • Resize a vector graphic image if needed
  • Drawing an image to scale means a vector graphic works well
  • Bitmap images look realistic
  • Important to consider whether vector graphic images can be used, and if not it's necessary to consider the image resolution of a bit-map image to ensure the file size is not too large.

Sound Files

  • Sound is vibrations through a medium caused by pressure changes.
  • Components: volume (amplitude) and pitch (frequency).
  • High and low frequencies are filtered out of music files.
  • Analogue data is converted to digital via sound waves being sampled at a time.
Pros Cons
Larger dynamic range Produces larger file size
Better sound quality Takes longer to transmit/download
Less sound distortion Requires greater processing power

Video Files

  • Camera detects light from the image and converts it into an electronic signal using light-sensitive sensors.
  • DV cameras convert the electronic signal into compressed files themselves.
  • Frame rate: the number of frames that is recorded per second.

File Compression

  • Lossless file compression restores the original file after decompression.
  • Lossy file compression loses parts of the original file during decompression.
  • JPEG (Joint Photographic Expert Group): lossy compression based on the inability of the eye to spot certain colour changes and hues.
  • MP3/MP4 files: compression for music and multimedia.
  • Audio compression uses perceptual music shaping.
  • Perceptual music shaping eliminates sounds outside the human hearing range.
  • Bit rate: number of bits per second that can be transmitted.
  • Run length encoding (RLE): lossless compression for text and photo files.
  • Necessary to reduce file size (to save storage or lessen transmission time).
  • Common forms: lossless and lossy compression.

MPEG-3 (MP3) and MPEG-4 (MP4)

  • MP3: compression to convert music/sounds into MP3 format.
  • Reduces file size by 90% using perceptual music shaping.
  • Perceptual music shaping removes certain sounds: outer range frequencies, quieter simultaneous sounds
  • MP4: format allows storage of multimedia files, music, videos, photos, and animation.

Photographic (Bit-Map) Images

  • Image quality is reduced.
  • JPEG is a common file format.
  • JPEG uses lossy file compression.
  • Once a JPEG image is compressed, the original file can no longer be constructed.
  • JPEG reduces raw bit-map image size by a factor between 5 and 15.
  • Vector graphics compression also occurs.

Run-Length Encoding (RLE)

  • Compresses several file formats.
  • Method: Lossless/reversible file that reduces adjacent, identical data string size.
  • Repeating string is encoded into two values.
  • The first value represents the number of identical data.
  • The second represents the code of the character data.

General Methods of Compressing Files

  • Movie files:
  • Reduce the sampling rate
  • Reduce the sampling resolution
  • Reduce the frame rate
  • Image files:
  • Crop The Image
  • Decrease the color/bit depth
  • Reduce the image resolution

Studying That Suits You

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

Quiz Team

Related Documents

Description

Explore data representation methods like two's complement and hexadecimal. Understand binary digits and coding systems like Unicode and ASCII. Learn about image resolution, pixel density, and the impact of bit depth on image quality.

More Like This

Use Quizgecko on...
Browser
Browser