This section contains carefully selected MCQs and Previous Year Questions with explanations to help students understand concepts and prepare effectively for examinations, interviews, and competitive tests.
Q: 1A block of addresses is granted to a small organization. We know that one of the addresses is 205.16.37.39/28. What is the last address in the block?
Option B
When an IP address is written with CIDR notation, such as 205.16.37.39/28, it tells us that the first 28 bits represent the network part, and the remaining 4 bits represent the host part of the address.
Since 4 bits are reserved for hosts, the total number of addresses in this subnet is 24=16. These addresses include both the network address and the broadcast address.
To find the exact block range, we must identify where the given IP (205.16.37.39) falls. Subnets with a /28 prefix have a block size of 16, and the subnets start at multiples of 16 in the last octet. Thus, the valid subnet ranges in the fourth octet are 0–15, 16–31, 32–47, 48–63, and so on. The number 39 lies between 32 and 47, which means the network address is 205.16.37.32.
Since the subnet contains 16 addresses, they run sequentially from 205.16.37.32 to 205.16.37.47. The first address 205.16.37.32 is reserved as the network address, and the last address 205.16.37.47 is reserved as the broadcast address for this subnet.
| PROPERTY | VALUE |
|---|---|
| Given IP | 205.16.37.39/28 |
| Subnet Mask | 255.255.255.240 |
| Network Address | 205.16.37.32 |
| First Usable Host | 205.16.37.33 |
| Last Usable Host | 205.16.37.46 |
| Broadcast Address | 205.16.37.47 |
Q: 2An IPv4 datagram arrives with the following Header values: In Fragment Offset and Flag field respectively Fragment Offset = 0, MF = 0. What does this imply?
Option C
In IPv4, when a packet is too large to be transmitted in one piece, it may be fragmented into smaller packets. Each fragment carries two important fields:
If a packet has Fragment Offset = 0 and MF = 0, it means that there are no fragments before or after it. A Fragment Offset of 0 shows it is the first fragment, but since MF = 0 indicates no more fragments, the packet must be unfragmented and sent as a single complete datagram.
Q: 3What does /24 denote in CIDR?
Option A
In CIDR (Classless Inter-Domain Routing) notation, the suffix “/24” denotes that 24 bits are used for the network part of the IP address. This means that the first 24 bits out of the total 32 bits in an IPv4 address identify the network, while the remaining 8 bits are used for host addresses within that network.
The "/24" notation corresponds to a subnet mask of 255.255.255.0 in traditional dotted decimal format. It essentially tells how many bits are fixed for the network prefix, allowing flexible subnetting and efficient allocation of IP address space.
Q: 4What is the length of address field in IPv6 protocol?
Option B
IP addressing is used to uniquely identify devices on a network. In IPv6, the address size was increased to overcome the limitations of IPv4 (32-bit). IPv6 uses a 128-bit address, allowing a very large number of unique IP addresses.
Q: 5The IP address range ___________ to ____________ is reserved for loopback.
Option B
In IPv4, the address range 127.0.0.0 to 127.255.255.255 is reserved for loopback communication.
A loopback address is used when a computer needs to communicate with itself. The data sent to a loopback address does not go to another device on the network. Instead, it is returned to the same computer.
The most commonly used loopback address is 127.0.0.1, which is often called localhost.
Q: 6Which of the following is class C private IP address?
Option B
Private IP addresses are reserved ranges used within local networks. For Class C, the private IP range is 192.168.0.0 to 192.168.255.255.
The IP address 192.168.24.43 falls within this range, so it is a valid Class C private IP address.
Private IP Address Ranges:
| CLASS | PRIVATE IP RANGE | DEFAULT SUBNET MASK |
|---|---|---|
| Class A | 10.0.0.0-10.255.255.255 | 255.0.0.0 |
| Class B | 172.16.0.0-172.31.255.255 | 255.240.0.0 |
| Class C | 192.168.0.0-192.168.255.255 | 255.255.255.0 |
Q: 7Which of the following statement is FALSE?
Option C
In IPv4, an IP address can be used as a source address or a destination address. A source address identifies the device sending the packet and is normally a unicast address.
A destination address can be unicast, multicast, or broadcast, depending on whether the packet is intended for one device, a group of devices, or all devices on the network.
Option (C) is false because a multicast address is not a special case of a broadcast address. They have different purposes.
A broadcast sends data to all devices in the relevant broadcast domain, while a multicast sends data only to devices that have joined a particular multicast group.
Q: 8An organization has a Class B network and wishes to form subnets for 64 departments. The subnet mask would be –
Option B
To create subnets in a Class B network, we start with the default subnet mask 255.255.0.0. The organization wants 64 departments, which means they need 64 subnets. To find how many bits are needed for subnetting, we check powers of two, i.e., 2n ≥ 64.
When we try 26, we get 64, which matches the requirement. This means the network must borrow 6 bits from the host portion to create the subnets.
In a Class B address, the subnetting begins in the third octet. When we borrow 6 bits, the first 6 bits of the third octet become 1s. In binary, these 6 ones followed by two zeros give the value 252.
255.255.11111100.00000000
So, the subnet mask becomes, 255.255.252.0
Q: 9A company wants to transmit data between its two offices with full confidentiality and integrity. Private IP addresses used by system inside the company should also be confidential. Which of the following IPSec configuration will meet the requirements?
Option C
The company requires confidentiality and integrity of transmitted data, and the private IP addresses inside the company must also remain hidden.
In IPSec, ESP (Encapsulating Security Payload) provides encryption, confidentiality, and data integrity, while AH (Authentication Header) provides only authentication and integrity but no encryption. Therefore, AH cannot ensure confidentiality.
Additionally, Tunnel Mode encrypts the entire original IP packet including the original IP header, which hides the private IP addresses of internal systems. In contrast, Transport Mode encrypts only the payload, leaving the original IP header visible.
Thus, to achieve both encryption and protection of internal IP addresses, the correct configuration is IPSec using ESP in Tunnel Mode.
Q: 10IP address of one node is 172.16.100.11. Subnet mask is 255.255.255.0. What is the network address?
Option C
To find the network address, we perform a bitwise AND operation between the IP address and the subnet mask.
Given:
The subnet mask 255.255.255.0 means the first three octets represent the network part, and the last octet represents the host part. So, applying AND operation:
Thus, the network address is 172.16.100.0.
Thank you so much for taking the time to read my Computer Science MCQs section carefully. Your support and interest mean a lot, and I truly appreciate you being part of this journey. Stay connected for more insights and updates! If you'd like to explore more tutorials and insights, check out my YouTube channel.
Don’t forget to subscribe and stay connected for future updates.