• Practice
  • About 12 min
  • 5 practice questions

File systems, paths and storage unit conversions

Name common file systems, read paths, match extensions and convert between bytes, KB, MB and GB in short exam calculations.

If something looks wrong, please tell us.

Questions on files fall into three families: which file system or extension is meant, how to read a path, and how to convert storage units. Each is quick if you learn the pattern.

File systems

A file system is the scheme an OS uses to organise and find files on a storage device. Different systems use different ones.

File systems and where you meet them
File systemUsually found on
FAT32Pen drives and memory cards, for wide compatibility
exFATPen drives and cards that must hold very large files
NTFSWindows hard disks and SSDs; supports permissions and large files
ext4Many Linux systems
APFSApple devices

More extensions to match

Extensions
ExtensionKind of file
.htmlWeb page
.csvPlain-text table with comma-separated values
.zipCompressed archive of files
.gifImage that can be animated
.wavAudio, usually uncompressed
.batBatch file of Windows commands
.odtWord-processing document in an open format

Units

Storage is counted in bytes. 1 byte = 8 bits. In computing practice, 1 KB = 1024 bytes, 1 MB = 1024 KB and 1 GB = 1024 MB. To go to a smaller unit multiply; to go to a larger unit divide.

Worked example 1: conversion

Convert 3 MB into KB and into bytes. 3 MB = 3 x 1024 = 3072 KB. In bytes: 3072 x 1024 = 3,145,728 bytes. Convert 1.5 MB into KB: 1.5 x 1024 = 1536 KB.

Worked example 2: how many files fit?

A pen drive holds 2 GB. How many files of 4 MB each can it store? First 2 GB = 2 x 1024 = 2048 MB. Number of files = 2048 / 4 = 512 files.

Worked example 3: reading a path

The path is C:\Users\Meena\Documents\fees.xlsx. The drive is C:, the file is fees.xlsx, the extension is .xlsx (a spreadsheet) and the folder holding the file is Documents. This path starts at the drive, so it is an absolute path.

Worked example 4: disk usage

A disk of 500 GB has 125 GB used. The fraction used = 125 / 500 = 0.25, which is 25 percent. Free space = 500 - 125 = 375 GB. (These sizes are illustrative.)

Rules for file names

Every file in a folder must have a different name. Windows does not allow the characters \ / : * ? " < > | in a file name, because the system uses them for special jobs such as separating folders or matching patterns. Changing the extension by hand, for example renaming a picture from photo.jpg to photo.txt, does not convert the file; it only confuses the OS about which program should open it.

A quick check for conversions: 1024 is close to 1000, so 3 MB should be a little over 3000 KB. If your exact answer comes out near 300 or near 30,000, the decimal place has slipped. Always write both units in the working, for example '3 MB x 1024 = 3072 KB', so that a slip in the unit is easy to spot.

Multiply by 1024 to go down a unit, divide by 1024 to go up; always check the unit asked for.

Common traps

  • Using 1000 instead of 1024 in a question that is about computer storage.
  • Mixing bits and bytes: 8 bits make 1 byte.
  • Treating the extension as part of the folder name.
  • Assuming FAT32 and NTFS are the same; NTFS is the richer Windows file system.

Check your understanding

  1. 1. How many KB are there in 5 MB (using 1024)?

    1. 5000 KB
    2. 512 KB
    3. 5120 KB
    4. 1024 KB
    Show answer

    Answer: C. 5 x 1024 = 5120 KB.

  2. 2. A 1 GB card is filled with 8 MB photos. About how many photos does it hold?

    1. 128
    2. 64
    3. 256
    4. 512
    Show answer

    Answer: A. 1 GB = 1024 MB and 1024 / 8 = 128 photos.

  3. 3. Which file system is mainly used by Windows computers for their hard disks?

    1. ext4
    2. NTFS
    3. APFS
    4. HTML
    Show answer

    Answer: B. NTFS is the standard Windows file system on hard disks and SSDs.

  4. 4. How many bits are in 3 bytes?

    1. 12
    2. 18
    3. 30
    4. 24
    Show answer

    Answer: D. 3 x 8 = 24 bits.

  5. 5. In Linux, the files Notes.txt and notes.txt in one folder are

    1. Separate files
    2. Not allowed
    3. Always copies
    4. The same file
    Show answer

    Answer: A. Linux file names are case-sensitive, so the two names refer to different files.

Privacy · Terms · Refunds · Delivery