Kit Library / Computer Science / Networking

⚡ Topic Learning Kit

Ip address

English 21 leveled MCQs 17 flashcards Free

Shared by a Veda learner · Generated with Veda AI

Veda Bites

The whole idea, one bite at a time

Veda Bites are swipeable micro-lessons — each one teaches exactly one idea. The bites below come from this kit — swipe through them in the app.

💡 Key Idea

IP Address as a Unique Network Identifier

Every device needs a unique address.

An IP address (Internet Protocol address) is a numerical label assigned to each device connected to a computer network that uses the Internet Protocol for communication. It serves two main functions: host or network interface identification and location addressing. Think of it like a mailing address for you…

↳ An IP address uniquely identifies a device on a network, enabling data to be routed to the correct destination.

📖 Definition

IPv4 vs. IPv6

Two versions, vastly different sizes.

↳ IPv4 is the older, more common standard, but IPv6 is necessary to accommodate the growing number of internet-connected devices.

⭐ Important Fact

The Two Parts of an IP Address

Network part and host part.

Every IP address is logically divided into two parts: the network portion and the host portion. The network portion identifies the specific network the device belongs to, while the host portion identifies the specific device on that network. The subnet mask determines where this division occurs.

↳ An IP address's network part routes data to the right network; the host part delivers it to the right device.

➗ Formula

Subnet Mask and Binary Representation

The mask reveals the network.

A subnet mask is a 32-bit number that masks the IP address to separate the network and host portions. In binary, the mask has a contiguous block of 1s for the network part and 0s for the host part.

↳ The subnet mask, when ANDed with the IP address, reveals the network address.

💡 Key Idea

IP Address Classes (Classful Networking)

Old-school way to split networks.

↳ IP classes A, B, and C define fixed network/host boundaries, but modern networking uses classless CIDR for flexibility.

⚠️ Common Mistake

Confusing Public vs. Private IP Addresses

Not all IPs are internet-routable.

A common mistake is thinking every IP address is globally unique and routable on the internet. Private IP addresses (e.g., `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) are reserved for internal networks and are not routed on the public internet. They require NAT (Network Address Translation) to communicate…

↳ Private IPs are for internal use only; public IPs are globally unique and internet-routable.

🌍 Real World

How Your Home Router Uses IP Addresses

Your router is a NAT gateway.

Your home router gets one public IP from your ISP. All your devices (phone, laptop, smart TV) get private IPs like `192.168.1.x`. When you browse the web, the router uses NAT to translate your private IP to its public IP, keeping track of which device requested what. This is why multiple devices can share o…

↳ NAT allows many private IPs to share a single public IP, conserving global address space.

⚙️ Process

Finding Your IP Address (Windows & Mac)

Quick steps to check your IP.

↳ You can find your private IP via system commands and your public IP via online tools.

🛠️ Application

CIDR Notation – /24, /16, /8

Slashes simplify subnet masks.

CIDR (Classless Inter-Domain Routing) notation uses a slash followed by the number of bits in the network prefix. For example, `192.168.1.0/24` means the first 24 bits are the network part (same as `255.255.255.0`). A `/16` gives 65,534 hosts, a `/24` gives 254 hosts.

↳ CIDR notation (e.g., /24) compactly represents the subnet mask and host capacity.

✏️ Example

Subnetting a /24 Network

Splitting a network into smaller pieces.

Suppose you have `192.168.1.0/24` and need 4 subnets. Borrow 2 bits from the host portion: new mask = `/26` (255.255.255.192). Each subnet has $2^6 - 2 = 62$ usable hosts. The subnets are: `192.168.1.0/26`, `192.168.1.64/26`, `192.168.1.128/26`, `192.168.1.192/26`.

↳ Borrowing host bits creates more subnets, each with fewer hosts.

🧠 Memory Trick

Remembering Private IP Ranges

10, 172.16, and 192.168.

Use the mnemonic: 10 is the big one (Class A), 172.16 is the medium one (Class B), and 192.168 is the small one (Class C). Think: '10 big, 172 medium, 192 small'.

↳ Private IP ranges are 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16.

🎯 Exam Tip

Network Address vs. Broadcast Address

First and last addresses are special.

In any subnet, the first address (all host bits 0) is the network address and cannot be assigned to a device. The last address (all host bits 1) is the broadcast address, used to send data to all devices on that subnet. Usable host addresses are everything in between.

↳ Always subtract 2 from the total host count: one for network, one for broadcast.

❓ Did You Know

IPv4 Address Exhaustion

We ran out of IPv4 addresses.

The last blocks of IPv4 addresses were allocated by IANA in 2011. This scarcity is the main reason IPv6 was developed and why NAT is so widely used. Without NAT and private IPs, the internet would have run out of addresses much sooner.

↳ IPv4 exhaustion drove the adoption of IPv6 and NAT.

✅ Best Practice

Using Static vs. Dynamic IPs

Static for servers, dynamic for clients.

Static IPs are manually assigned and never change — ideal for servers, printers, or network devices that need a fixed address. Dynamic IPs are assigned automatically by DHCP (Dynamic Host Configuration Protocol) and can change over time — best for client devices like laptops and phones.

↳ Use static IPs for devices that must always be reachable; use DHCP for everything else.

Smart notes

What you'll study, topic by topic

1

IP Address: Structure, Classes, and Subnetting Basics

8 min

An IP address is a unique numerical identifier for devices on a network, with IPv4 (32-bit) and IPv6 (128-bit) as the two main versions. It consists of a network portion and a host portion, separated by a subnet mask, an…

  • An IP address uniquely identifies a device on a network, enabling data routing.
  • IPv4 uses 32 bits (e.g., 192.168.1.1); IPv6 uses 128 bits for a much larger address space.
  • Every IP address has a network part and a host part, determined by the subnet mask.

Full explanation, worked examples & memory tricks in the app

Leveled MCQ practice

Try the smart MCQs from this kit

All 21 questions, laddered from warm-up to topper-level, each with its answer and the reasoning behind it.

Warm-up · 12 questions

Q1. An IPv4 address is how many bits long?

Beginner
A 128 bits
B 64 bits
C 16 bits
D 32 bits

Answers and explanations are in the Veda app.

Q2. Which class of IP address has the default subnet mask 255.0.0.0?

Beginner
A Class A
B Class B
C Class D
D Class C

Answers and explanations are in the Veda app.

Q3. What is the broadcast address for the subnet 10.1.1.0/24?

Beginner
A 10.1.1.254
B 10.1.1.1
C 10.1.1.255
D 10.1.1.0

Answers and explanations are in the Veda app.

Q4. Which IP address class is used for multicast?

Beginner
A Class C
B Class B
C Class D
D Class A

Answers and explanations are in the Veda app.

Q5. What is the CIDR notation for the subnet mask 255.255.255.0?

Beginner
A /32
B /8
C /16
D /24

Answers and explanations are in the Veda app.

Q6. Which of the following is a loopback address?

Beginner
A 0.0.0.0
B 127.0.0.1
C 192.0.2.1
D 255.255.255.255

Answers and explanations are in the Veda app.

Q7. The IP address 172.16.0.1 belongs to which class?

Beginner
A Class A
B Class C
C Class D
D Class B

Answers and explanations are in the Veda app.

Q8. The default subnet mask for a Class C network is 255.255.255.0.

Beginner
A True
B False

Answers and explanations are in the Veda app.

Q9. The IP address 192.168.1.256 is a valid host address.

Beginner
A True
B False

Answers and explanations are in the Veda app.

Q10. The process of dividing a network into smaller networks is called ___.

Beginner

Answers and explanations are in the Veda app.

Q11. An IPv4 address consists of ___ octets.

Beginner

Answers and explanations are in the Veda app.

Q12. The address that represents all hosts on a subnet is called the ___ address.

Beginner

Answers and explanations are in the Veda app.

Building up · 8 questions

Q13. What is the network address of the IP 192.168.5.130 with subnet mask 255.255.255.192?

Intermediate
A 192.168.5.192
B 192.168.5.128
C 192.168.5.0
D 192.168.5.130

Answers and explanations are in the Veda app.

Q14. Which of the following is a valid Class B private IP address range?

Intermediate
A 192.168.0.0 – 192.168.255.255
B 169.254.0.0 – 169.254.255.255
C 172.16.0.0 – 172.31.255.255
D 10.0.0.0 – 10.255.255.255

Answers and explanations are in the Veda app.

Q15. How many usable host addresses are in a /27 subnet?

Intermediate
A 30
B 14
C 62
D 32

Answers and explanations are in the Veda app.

Q16. If you borrow 3 bits from the host portion of a Class C address, how many subnets do you create?

Intermediate
A 2
B 6
C 8
D 4

Answers and explanations are in the Veda app.

Q17. What is the purpose of subnetting?

Intermediate
A To encrypt data in transit
B To convert IPv4 addresses to IPv6
C To increase the total number of available IP addresses globally
D To divide a network into smaller, manageable segments

Answers and explanations are in the Veda app.

Q18. What is the maximum number of hosts per subnet for a network with a /30 mask?

Intermediate
A 2
B 4
C 1
D 6

Answers and explanations are in the Veda app.

Q19. Subnetting always reduces the total number of usable host addresses compared to the original network.

Intermediate
A True
B False

Answers and explanations are in the Veda app.

Q20. Classless Inter-Domain Routing (CIDR) allows variable-length subnet masks.

Intermediate
A True
B False

Answers and explanations are in the Veda app.

Topper level · 1 questions

Q21. The network address of a subnet is always an even number.

Advanced
A True
B False

Answers and explanations are in the Veda app.

Flashcards

Tap a card to flip it

17 flashcards in this kit — the app reviews them with spaced repetition so the right card returns on the right day.

Study it properly — free, in the app

The full Veda Bites deck, complete notes, spaced-repetition flashcards, leveled MCQs, tests and games for this kit — plus Daily Facts and the Arena, every day.