Se connecterS'abonner

Chapitre 11

Calculating storage space

Lecture : 22 minQuiz de 16 questions

# Calculating storage space ## Units of storage and conversion ### Introduction Welcome to this lesson on understanding digital storage! In our daily lives, we encounter digital data everywhere – from photos on our phones to videos on YouTube and documents on our computers. All this data needs to be stored, and understanding how much space it takes up is crucial. In this lesson, we will explore the fundamental units used to measure digital storage and learn how to convert between them. This knowledge is essential for managing your digital files, understanding computer specifications, and even choosing the right storage devices. ### Key Concepts #### What is Digital Storage? Digital storage refers to the process of storing data in a format that can be read and processed by a computer. This data is represented using a binary system, which means it's made up of only two digits: 0s and 1s. #### The Basic Unit: Bit The smallest unit of digital information is a **bit** (binary digit). A bit can represent one of two states: 0 (off/false) or 1 (on/true). #### Larger Units of Storage Since a single bit holds very little information, we group bits together to form larger, more practical units of storage. These units are based on powers of 2 because computers use binary (base-2) arithmetic. * **Byte (B)**: * A byte is a group of 8 bits. * It is the smallest addressable unit of data for most computer architectures. * A single character (like 'A', 'b', '7') typically takes up 1 byte of storage. * \[ 1 \text{ Byte} = 8 \text{ bits} \] * **Kilobyte (KB)**: * Historically, a kilobyte was defined as 1,024 bytes (\(2^{10}\) bytes). * Sometimes, in marketing, it's simplified to 1,000 bytes. * We will use the computer science definition: \[ 1 \text{ Kilobyte (KB)} = 1024 \text{ Bytes} \] * **Megabyte (MB)**: * A megabyte is 1,024 kilobytes. * \[ 1 \text{ Megabyte (MB)} = 1024 \text{ KB} \] * **Gigabyte (GB)**: * A gigabyte is 1,024 megabytes. * This unit is commonly used for measuring RAM, hard drive sizes, and USB drive capacities. * \[ 1 \text{ Gigabyte (GB)} = 1024 \text{ MB} \] * **Terabyte (TB)**: * A terabyte is 1,024 gigabytes. * Large hard drives and cloud storage are often measured in terabytes. * \[ 1 \text{ Terabyte (TB)} = 1024 \text{ GB} \] * **Petabyte (PB)**: * A petabyte is 1,024 terabytes. * Often used for very large data centers and enterprise storage. * \[ 1 \text{ Petabyte (PB)} = 1024 \text{ TB} \] * **Exabyte (EB)**: * An exabyte is 1,024 petabytes. * Used for extremely large datasets, such as global internet traffic data. * \[ 1 \text{ Exabyte (EB)} = 1024 \text{ PB} \] #### Relationship Between Units Each larger unit is 1024 times the size of the previous smaller unit. This relationship is crucial for conversions. To summarize: * 1 Byte = 8 bits * 1 KB = 1024 B * 1 MB = 1024 KB * 1 GB = 1024 MB * 1 TB = 1024 GB * 1 PB = 1024 TB * 1 EB = 1024 PB #### Conversion Methods ##### Converting from a Larger Unit to a Smaller Unit To convert from a larger unit to a smaller unit, you **multiply** by 1024 for each step down (or 8 if converting Bytes to bits). * Example: GB to MB: Multiply by 1024. * Example: MB to KB: Multiply by 1024. * Example: GB to KB: Multiply by \(1024 \times 1024\). ##### Converting from a Smaller Unit to a Larger Unit To convert from a smaller unit to a larger unit, you **divide** by 1024 for each step up (or 8 if converting bits to Bytes). * Example: KB to MB: Divide by 1024. * Example: MB to GB: Divide by 1024. * Example: KB to GB: Divide by \(1024 \times 1024\). ### Vocabulary * **Bit**: The smallest unit of digital information, represented by a 0 or 1. * **Byte (B)**: A group of 8 bits; the smallest addressable unit of data. * **Kilobyte (KB)**: Approximately one thousand bytes (1024 bytes). * **Megabyte (MB)**: Approximately one million bytes (1024 kilobytes). * **Gigabyte (GB)**: Approximately one billion bytes (1024 megabytes). * **Terabyte (TB)**: Approximately one trillion bytes (1024 gigabytes). * **Petabyte (PB)**: Approximately one quadrillion bytes (1024 terabytes). * **Exabyte (EB)**: Approximately one quintillion bytes (1024 petabytes). * **Binary**: A numbering system that uses only two symbols (0 and 1). ### Examples **Example 1: Converting GB to MB** How many Megabytes are in 2 Gigabytes? * We know that \[ 1 \text{ GB} = 1024 \text{ MB} \]. * So, \[ 2 \text{ GB} = 2 \times 1024 \text{ MB} = 2048 \text{ MB} \]. **Example 2: Converting KB to GB** Convert 524,288 Kilobytes to Gigabytes. * To go from KB to MB, we divide by 1024: \[ 524288 \text{ KB} \div 1024 = 512 \text{ MB} \] * To go from MB to GB, we divide by 1024: \[ 512 \text{ MB} \div 1024 = 0.5 \text{ GB} \] * Therefore, 524,288 KB is equal to 0.5 GB. **Example 3: Calculating file size in bits** A small text file is 10 KB. How many bits is this? * First, convert KB to Bytes: \[ 10 \text{ KB} = 10 \times 1024 \text{ Bytes} = 10240 \text{ Bytes} \] * Next, convert Bytes to bits: \[ 10240 \text{ Bytes} = 10240 \times 8 \text{ bits} = 81920 \text{ bits} \] * So, a 10 KB file contains 81,920 bits. ### Exercises 1. How many bytes are in 3 Kilobytes? 2. Convert 4096 MB into GB. 3. Your phone has 64 GB of storage. If an app takes up 250 MB, how many such apps can theoretically fit on your phone? 4. A company has a database of 12 TB. How many GB is that? 5. If a song file is 5 MB, how many KB is it? 6. How many bits are there in 1 Byte? How many bits are in 1 KB? ### Assignment 1. Convert 1.5 Terabytes into Megabytes. 2. A large video file is 2.2 GB. Your USB drive has 400 MB of free space. Will the file fit? If not, how much more space do you need? 3. Research and list the storage capacity of: * A standard DVD disc. * A typical Blu-ray disc. * A current generation smartphone. * A cloud storage service's free tier (e.g., Google Drive, Dropbox). Express all capacities in GB. 4. Explain why computer storage units are based on powers of 2 (like 1024) rather than powers of 10 (like 1000) as used in the metric system. 5. If you have an internet connection that downloads at a speed of 100 Megabits per second (Mbps), how long would it take to download a 2 Gigabyte file? (Hint: Be careful with 'bits' vs 'Bytes'.) ### Summary In this lesson, we've explored the foundational concepts of digital storage. We learned that the smallest unit is a **bit**, and these bits are grouped into **bytes**. Larger units like **Kilobytes (KB)**, **Megabytes (MB)**, **Gigabytes (GB)**, **Terabytes (TB)**, **Petabytes (PB)**, and **Exabytes (EB)** are used to measure increasingly large amounts of data. The key to understanding these units and performing conversions is knowing that each larger unit is **1024 times** the size of the preceding smaller unit (except for bits to bytes, which is 8). By mastering these conversions, you can effectively manage and understand digital storage in various computing contexts. ## Conversion between units of storage ### Introduction Welcome to this lesson on understanding and converting units of computer storage. In the digital world, data is everywhere, from your photos and videos to documents and applications. All this data needs space to be stored. Knowing how to measure and convert these storage units is a fundamental skill in Computer Science. This lesson will teach you the different units of storage and how to convert between them, which is essential for managing files, understanding device specifications, and even programming. ### Key Concepts #### What is Storage Space? Storage space refers to the amount of data a computer system or storage device can hold. This data is stored digitally, typically as binary digits (bits). #### The Basic Unit: Bit and Byte * **Bit (Binary Digit):** The smallest unit of data in a computer. A bit can represent one of two states: \( 0 \) (off) or \( 1 \) (on). * **Byte:** A group of \( 8 \) bits. A byte is the fundamental unit for measuring data size, as it can represent a single character (like a letter, number, or symbol). * **Conversion:** \[ 1 \text{ Byte} = 8 \text{ bits} \] #### Larger Units of Storage As data sizes grew, larger units were needed to make measurements more practical. These units are based on powers of \( 2 \) (specifically \( 1024 \)) because computers operate using binary. * **Kilobyte (KB):** Approximately one thousand bytes. * **Conversion:** \[ 1 \text{ KB} = 1024 \text{ Bytes} \] * **Megabyte (MB):** Approximately one million bytes or one thousand kilobytes. * **Conversion:** \[ 1 \text{ MB} = 1024 \text{ KB} \] * **Gigabyte (GB):** Approximately one billion bytes or one thousand megabytes. * **Conversion:** \[ 1 \text{ GB} = 1024 \text{ MB} \] * **Terabyte (TB):** Approximately one trillion bytes or one thousand gigabytes. * **Conversion:** \[ 1 \text{ TB} = 1024 \text{ GB} \] * **Petabyte (PB):** An even larger unit, approximately one thousand terabytes. * **Conversion:** \[ 1 \text{ PB} = 1024 \text{ TB} \] #### Summary of Conversions (Binary Prefixes) These conversions are critical to remember: * \( 1 \text{ Byte} = 8 \text{ bits} \) * \( 1 \text{ KB} = 1024 \text{ Bytes} \) * \( 1 \text{ MB} = 1024 \text{ KB} \) * \( 1 \text{ GB} = 1024 \text{ MB} \) * \( 1 \text{ TB} = 1024 \text{ GB} \) * \( 1 \text{ PB} = 1024 \text{ TB} \) #### How to Convert Between Units Converting between units involves either multiplying or dividing by the factor of \( 1024 \) (or \( 8 \) for bits to bytes). * **To convert from a larger unit to a smaller unit:** Multiply by the conversion factor. * *Example:* To convert GB to MB, you multiply the number of GB by \( 1024 \). * **To convert from a smaller unit to a larger unit:** Divide by the conversion factor. * *Example:* To convert KB to MB, you divide the number of KB by \( 1024 \). ### Vocabulary * **Bit:** The smallest unit of data, a binary digit (0 or 1). * **Byte:** A unit of digital information typically consisting of 8 bits. * **Kilobyte (KB):** A unit of digital information equal to \( 1024 \) bytes. * **Megabyte (MB):** A unit of digital information equal to \( 1024 \) kilobytes. * **Gigabyte (GB):** A unit of digital information equal to \( 1024 \) megabytes. * **Terabyte (TB):** A unit of digital information equal to \( 1024 \) gigabytes. * **Petabyte (PB):** A unit of digital information equal to \( 1024 \) terabytes. * **Storage Space:** The capacity of a storage device to hold data. * **Binary:** A number system with two symbols, \( 0 \) and \( 1 \), used by computers. ### Examples Let's work through some practical conversion examples: #### Example 1: Converting Bytes to Kilobytes **Question:** How many Kilobytes are there in \( 2048 \) Bytes? **Solution:** Since \( 1 \text{ KB} = 1024 \text{ Bytes} \), and we are converting from a smaller unit (Bytes) to a larger unit (KB), we divide: \[ \frac{2048 \text{ Bytes}}{1024 \text{ Bytes/KB}} = 2 \text{ KB} \] **Answer:** There are \( 2 \) KB in \( 2048 \) Bytes. #### Example 2: Converting Gigabytes to Megabytes **Question:** Convert \( 4 \) GB to MB. **Solution:** Since \( 1 \text{ GB} = 1024 \text{ MB} \), and we are converting from a larger unit (GB) to a smaller unit (MB), we multiply: \[ 4 \text{ GB} \times 1024 \text{ MB/GB} = 4096 \text{ MB} \] **Answer:** \( 4 \) GB is equal to \( 4096 \) MB. #### Example 3: Converting Megabytes to bits **Question:** How many bits are in \( 2 \) MB? **Solution:** This requires a two-step conversion: 1. Convert MB to Bytes: \[ 2 \text{ MB} \times 1024 \text{ KB/MB} = 2048 \text{ KB} \] \[ 2048 \text{ KB} \times 1024 \text{ Bytes/KB} = 2097152 \text{ Bytes} \] 2. Convert Bytes to bits: \[ 2097152 \text{ Bytes} \times 8 \text{ bits/Byte} = 16777216 \text{ bits} \] **Answer:** There are \( 16,777,216 \) bits in \( 2 \) MB. #### Example 4: Calculating total storage for files **Question:** A folder contains \( 3 \) images, each \( 2 \) MB in size, and \( 5 \) documents, each \( 512 \) KB in size. What is the total storage space required for the folder in MB? **Solution:** 1. **Calculate total space for images:** \( 3 \text{ images} \times 2 \text{ MB/image} = 6 \text{ MB} \) 2. **Calculate total space for documents (in KB first):** \( 5 \text{ documents} \times 512 \text{ KB/document} = 2560 \text{ KB} \) 3. **Convert document space to MB:** \[ \frac{2560 \text{ KB}}{1024 \text{ KB/MB}} = 2.5 \text{ MB} \] 4. **Add total image space and total document space:** \( 6 \text{ MB} + 2.5 \text{ MB} = 8.5 \text{ MB} \] **Answer:** The total storage space required for the folder is \( 8.5 \) MB. ### Exercises Test your understanding with these questions: 1. How many Bytes are there in \( 5 \) KB? 2. Convert \( 2048 \) MB to GB. 3. A song file is \( 4 \) MB. How many such songs can fit on a \( 1 \) GB memory stick? 4. Convert \( 32 \) bits to Bytes. 5. How many KB are in \( 0.5 \) MB? ### Assignment Complete the following questions to practice your conversion skills: 1. A hard drive has a capacity of \( 2 \) TB. How many MB is that? 2. A movie file is \( 3 \) GB. If your internet speed allows you to download \( 10 \) MB per second, how long will it take to download the movie in minutes? (Ignore network overhead). 3. Express \( 128 \) GB in Bytes. 4. If a smartphone has \( 64 \) GB of internal storage, and the operating system takes up \( 8 \) GB, how many \( 50 \) MB photos can be stored on the remaining space? 5. Convert \( 10,485,760 \) bits to MB. ### Summary In this lesson, we explored the crucial concept of computer storage units and their conversions. We started with the smallest unit, the **bit**, and grouped \( 8 \) of them to form a **Byte**. From there, we learned about larger units like **Kilobytes (KB)**, **Megabytes (MB)**, **Gigabytes (GB)**, **Terabytes (TB)**, and **Petabytes (PB)**, each being \( 1024 \) times larger than the preceding one. We also practiced converting between these units by multiplying when moving from a larger unit to a smaller one, and dividing when moving from a smaller unit to a larger one. Understanding these conversions is vital for anyone working with computers and data, enabling you to accurately assess storage needs and device capacities. ## Integration activities ### Introduction Welcome to this lesson on calculating storage space! In the digital world, data is everywhere, from your photos and videos to documents and applications. Understanding how much space this data occupies is a fundamental skill in computer science. Whether you're choosing a new hard drive, managing files on your phone, or designing a database, knowing how to calculate storage space will help you make informed decisions. This lesson will equip you with the knowledge and formulas to accurately estimate the storage requirements for various types of digital content. ### Key Concepts #### 1. Units of Digital Storage Digital information is stored in binary form, using bits and bytes. Understanding these units and their multiples is crucial for calculating storage space. * **Bit (b):** The smallest unit of digital information, representing either a 0 or a 1. * **Byte (B):** A group of 8 bits. It is the basic unit for measuring file sizes and memory. * **Multiples of Bytes:** Storage units increase in powers of \(2^{10}\) (1024) for computer systems, though sometimes powers of \(10^3\) (1000) are used in marketing (e.g., for hard drive capacities). For our calculations, we will primarily use the \(2^{10}\) system. * **Kilobyte (KB):** \(1 \text{ KB} = 1024 \text{ Bytes}\) * **Megabyte (MB):** \(1 \text{ MB} = 1024 \text{ KB} = 1024 \times 1024 \text{ Bytes}\) * **Gigabyte (GB):** \(1 \text{ GB} = 1024 \text{ MB}\) * **Terabyte (TB):** \(1 \text{ TB} = 1024 \text{ GB}\) #### 2. Calculating Storage for Text Text files store characters, and each character requires a certain amount of storage. * **ASCII Encoding:** For basic English characters and symbols, ASCII (American Standard Code for Information Interchange) is often used, where each character typically takes 1 Byte. * **Unicode (e.g., UTF-8):** For a broader range of characters (different languages, emojis), Unicode is used. UTF-8 is a common variable-width encoding, meaning characters can take 1 to 4 bytes. For simplicity in Form Four, unless specified, we will assume 1 Byte per character for basic text. **Formula for Text Storage:** \[ \text{Storage (Bytes)} = \text{Number of Characters} \times \text{Bytes per Character} \] #### 3. Calculating Storage for Images Image files are composed of pixels, and the storage required depends on the image's dimensions and color depth. * **Resolution (Dimensions):** The width and height of an image in pixels (e.g., 1920x1080 pixels). * **Color Depth (Bit Depth):** The number of bits used to represent the color of each individual pixel. Common color depths include: * 1-bit (monochrome/black & white) * 8-bit (256 colors/grayscale) * 24-bit (True Color - millions of colors, 8 bits for Red, 8 for Green, 8 for Blue) * 32-bit (True Color + Alpha channel for transparency) **Formula for Uncompressed Image Storage:** \[ \text{Storage (Bytes)} = \text{Width (pixels)} \times \text{Height (pixels)} \times \frac{\text{Color Depth (bits/pixel)}}{8} \] * *Note:* Many image formats (like JPEG, PNG) use compression to reduce file size. The formula above calculates the uncompressed raw image data size. #### 4. Calculating Storage for Audio Audio files store sound waves digitally. The storage required depends on the quality of the recording. * **Sampling Rate:** How many samples (measurements of the sound wave) are taken per second, measured in Hertz (Hz) or Kilohertz (kHz). Higher rates mean better quality. * **Bit Depth (Bit Resolution):** The number of bits used to store each sample. Higher bit depth means greater dynamic range and quality. * **Channels:** Number of audio tracks (e.g., 1 for mono, 2 for stereo). * **Duration:** The length of the audio in seconds. **Formula for Uncompressed Audio Storage:** \[ \text{Storage (Bytes)} = \text{Sampling Rate (Hz)} \times \text{Bit Depth (bits/sample)} \times \text{Channels} \times \text{Duration (seconds)} \times \frac{1}{8} \] * *Note:* Many audio formats (like MP3, AAC) use compression to significantly reduce file size. #### 5. Calculating Storage for Video Video files are essentially a sequence of images (frames) displayed rapidly, with accompanying audio. Calculating video storage combines concepts from images and audio. * **Frame Rate:** The number of frames displayed per second (e.g., 25 fps, 30 fps). * **Frame Dimensions & Color Depth:** As for images. * **Audio Data:** As for audio files. * **Duration:** The total length of the video in seconds. **Formula for Uncompressed Video Storage (Video Stream Only):** \[ \text{Storage (Bytes)} = \text{Width (pixels)} \times \text{Height (pixels)} \times \frac{\text{Color Depth (bits/pixel)}}{8} \times \text{Frame Rate (fps)} \times \text{Duration (seconds)} \] * *Note:* This calculation is for the raw video stream only. Actual video files also include audio tracks and significant compression (e.g., MP4, AVI, MOV formats) that dramatically reduce the file size compared to the uncompressed raw data. ### Vocabulary * **Bit:** The smallest unit of data in a computer, represented by a 0 or 1. * **Byte:** A unit of digital information consisting of 8 bits, typically used to encode a single character of text. * **Kilobyte (KB):** Approximately one thousand bytes (1024 Bytes). * **Megabyte (MB):** Approximately one million bytes (1024 KB). * **Gigabyte (GB):** Approximately one billion bytes (1024 MB). * **Terabyte (TB):** Approximately one trillion bytes (1024 GB). * **Pixel:** The smallest controllable element of a picture represented on a screen. * **Resolution:** The number of pixels (width x height) in an image or on a display. * **Color Depth (Bit Depth):** The number of bits used to represent the color of a single pixel; higher bit depth allows for a greater range of colors. * **Sampling Rate:** The number of samples of audio carried per second, measured in Hz or kHz; determines the fidelity of the audio. * **Frame Rate:** The frequency (rate) at which consecutive images (frames) are displayed in a video, measured in frames per second (fps). * **Compression:** The process of encoding information using fewer bits than the original representation, leading to smaller file sizes. Can be **lossy** (some data lost, e.g., JPEG, MP3) or **lossless** (no data lost, e.g., PNG, FLAC). ### Examples #### Example 1: Text File Storage A document contains 5,000 characters. If each character uses 1 Byte of storage, how much space does the document occupy in KB? **Solution:** \[ \text{Total Bytes} = 5000 \text{ characters} \times 1 \text{ Byte/character} = 5000 \text{ Bytes} \] \[ \text{Storage in KB} = \frac{5000 \text{ Bytes}}{1024 \text{ Bytes/KB}} \approx 4.88 \text{ KB} \] The document occupies approximately 4.88 KB. #### Example 2: Image File Storage Calculate the uncompressed storage space for an image with dimensions 800 pixels \( \times \) 600 pixels and a 24-bit color depth. **Solution:** \[ \text{Storage (Bytes)} = 800 \text{ px} \times 600 \text{ px} \times \frac{24 \text{ bits/pixel}}{8 \text{ bits/Byte}} \] \[ = 480,000 \times 3 \text{ Bytes} = 1,440,000 \text{ Bytes} \] Convert to MB: \[ \text{Storage (MB)} = \frac{1,440,000 \text{ Bytes}}{1024 \times 1024 \text{ Bytes/MB}} \approx 1.37 \text{ MB} \] The image requires approximately 1.37 MB of storage. #### Example 3: Audio File Storage An uncompressed stereo audio file has a sampling rate of 44.1 kHz, a bit depth of 16 bits, and a duration of 3 minutes. Calculate its storage space in MB. **Solution:** First, convert units: * Sampling Rate: \(44.1 \text{ kHz} = 44,100 \text{ Hz}\) * Duration: \(3 \text{ minutes} = 3 \times 60 = 180 \text{ seconds}\) * Channels: 2 (for stereo) \[ \text{Storage (Bytes)} = 44,100 \text{ Hz} \times 16 \text{ bits/sample} \times 2 \text{ channels} \times 180 \text{ seconds} \times \frac{1}{8 \text{ bits/Byte}} \] \[ = 44,100 \times 16 \times 2 \times 180 \times 0.125 \text{ Bytes} \] \[ = 31,752,000 \text{ Bytes} \] Convert to MB: \[ \text{Storage (MB)} = \frac{31,752,000 \text{ Bytes}}{1024 \times 1024 \text{ Bytes/MB}} \approx 30.28 \text{ MB} \] The audio file requires approximately 30.28 MB of storage. ### Exercises 1. **Unit Conversion:** Convert 2.5 GB to KB. 2. **Text Storage:** A plaintext document contains 12,000 characters. If each character uses 1 Byte, how much space does the document occupy in MB? 3. **Image Storage:** An uncompressed image has a resolution of 1280 \( \times \) 720 pixels and a 32-bit color depth. Calculate its storage space in MB. 4. **Audio Storage:** A mono audio recording lasts for 5 minutes, has a sampling rate of 22.05 kHz, and a bit depth of 8 bits. Calculate its uncompressed file size in KB. 5. **Combined Storage:** You have two images: one is 640 \( \times \) 480 pixels with 24-bit color depth, and the other is 320 \( \times \) 240 pixels with 24-bit color depth. What is the total uncompressed storage space required for both images in MB? ### Assignment 1. **Video Storage Estimation:** A short uncompressed video clip is 10 seconds long, has a frame rate of 30 frames per second, a resolution of 1920 \( \times \) 1080 pixels, and a 24-bit color depth. Assuming no audio track, calculate the storage space required for the video stream in GB. (Round to two decimal places). 2. **Real-World Scenario:** A photographer wants to store 500 high-resolution uncompressed images. Each image is 4000 \( \times \) 3000 pixels with 24-bit color depth. How many 1 TB external hard drives will the photographer need to store all these images? 3. **Research & Compare:** Research the average file size of a 5-minute song in MP3 format (compressed) and compare it to the uncompressed 5-minute audio file from Exercise 4. Explain why there is such a big difference. 4. **Data Management:** You have a 16 GB flash drive. You want to store 10 documents (each 50 KB), 200 photos (each 3 MB, compressed), and 5 video clips (each 1 GB, compressed). Will all these files fit on the flash drive? Show your calculations. ### Summary In this lesson, we explored the crucial skill of calculating digital storage space. We started by understanding the fundamental units of storage, from bits and bytes to kilobytes, megabytes, gigabytes, and terabytes, emphasizing the \(1024\) conversion factor. We then delved into specific formulas for estimating the uncompressed storage requirements of different data types: * **Text:** Calculated by the number of characters and bytes per character. * **Images:** Determined by resolution (width x height) and color depth (bits per pixel). * **Audio:** Dependent on sampling rate, bit depth, number of channels, and duration. * **Video:** A combination of image (frame) and audio parameters, considering frame rate, dimensions, and color depth. Understanding these calculations is essential for managing digital resources effectively, whether you're dealing with personal files or larger computing systems. Remember that most real-world files use compression, which significantly reduces their actual size compared to the uncompressed values we calculated today.

Quiz du chapitre

16 questions — vérifie chaque réponse pour voir l'explication.

  1. 1. What is the smallest unit of data in a computer?
  2. 2. How many bits make up one byte?
  3. 3. Which of the following correctly orders the storage units from smallest to largest?
  4. 4. Approximately how many bytes are in 1 Kilobyte (KB)?
  5. 5. If a file is 2.5 MB, how many Kilobytes (KB) is that?
  6. 6. How many Megabytes (MB) are there in 1 Gigabyte (GB)?
  7. 7. A typical movie might be 4 GB in size. How many MB is this?
  8. 8. What unit of storage is typically used to measure the capacity of a standard hard drive in a desktop computer?
  9. 9. If you have a 1 TB hard drive, how many Gigabytes (GB) does it theoretically contain?
  10. 10. How many bytes are in one Nibble?
  11. 11. A document file is 5120 KB. What is its size in MB?
  12. 12. Which storage unit is larger than a Terabyte (TB)?
  13. 13. A digital camera produces images that are 3 MB each. How many images can be stored on a 1 GB memory card?
  14. 14. Convert 8192 Kilobytes (KB) into Megabytes (MB).
  15. 15. Which of the following represents 2^40 bytes?
  16. 16. If a storage device has a capacity of 16 Petabytes (PB), how many Terabytes (TB) is that?