Unit 2: Physical and Data Link Layers - Practice Quiz

CSE306 — Computer Networks 60 Questions
0 Correct 0 Wrong 60 Left
0/60

1 Which component of a data communication system sends the data?

Basics of Data Communications Easy
A. Receiver
B. Protocol
C. Sender
D. Medium

2 What is a protocol in data communication?

Basics of Data Communications Easy
A. A type of network cable
B. A device that stores messages
C. A set of communication rules
D. A signal that continuously changes its amplitude during transmission

3 Which guided medium consists of pairs of insulated copper wires twisted together?

Guided Transmission Media Easy
A. Microwave link
B. Coaxial cable
C. Optical fiber
D. Twisted-pair cable

4 Which transmission medium carries data as pulses of light?

Guided Transmission Media Easy
A. Twisted-pair cable
B. Coaxial cable
C. A copper conductor surrounded by insulation and metallic shielding
D. Optical fiber

5 Which unguided transmission medium commonly requires a line-of-sight path?

Unguided Transmission Media Easy
A. Radio waves
B. Microwaves
C. Twisted-pair signals
D. Low-frequency signals that always follow the curvature of Earth

6 Which technology uses electromagnetic waves to transmit data without a physical cable?

Unguided Transmission Media Easy
A. Twisted-pair communication
B. Coaxial communication
C. Optical fiber
D. Wireless communication

7 What is the gradual loss of signal strength during transmission called?

Transmission Impairments and Performance Easy
A. Distortion
B. Attenuation
C. Propagation
D. Noise

8 What does bandwidth commonly describe in a communication channel?

Transmission Impairments and Performance Easy
A. The channel's data-carrying capacity
B. The physical length of the channel
C. The number of connected computers
D. The complete procedure used to correct every damaged frame automatically

9 What is the basic unit of data handled by the data link layer?

Elementary Data Link Protocols Easy
A. Segment
B. Bit
C. Packet
D. Frame

10 What is the main purpose of flow control at the data link layer?

Elementary Data Link Protocols Easy
A. To assign network addresses
B. To select a physical cable
C. To prevent receiver overload
D. To increase the transmitter's power whenever a frame crosses a router

11 What is the purpose of error detection in data communication?

Error Detection and Correction Easy
A. To increase cable length
B. To convert all analog signals into optical signals before transmission
C. To identify corrupted data
D. To assign device names

12 Which method asks the sender to transmit data again after an error is detected?

Error Detection and Correction Easy
A. Automatic Repeat reQuest
B. Circuit switching
C. Frequency division
D. Signal modulation

13 What can a standard Hamming code do when a single-bit error occurs?

Hamming code Easy
A. Delete the entire message
B. Locate and correct it
C. Only detect its presence
D. Correct every possible combination of multiple damaged bits in the codeword

14 Where are parity bits commonly placed in a Hamming codeword?

Hamming code Easy
A. Only at the end of the codeword
B. At positions that are powers of two
C. Only between two consecutive data bits
D. At positions that are multiples of three

15 What does CRC stand for?

CRC Easy
A. Central Routing Control
B. Cyclic Redundancy Check
C. Code Recovery Channel
D. Cyclic Routing Calculation

16 In CRC, what is appended to the original data before transmission?

CRC Easy
A. A parity matrix
B. A calculated remainder
C. A receiver address
D. A complete duplicate of every data bit in the original message

17 In even parity, what must the total number of bits be?

Parity Easy
A. Zero
B. Prime
C. Even
D. Odd

18 Which type of error can a single parity bit reliably detect?

Parity Easy
A. Every burst error
B. Every two-bit error
C. A single-bit error
D. Any number of errors occurring anywhere in an unlimited data stream

19 How is a checksum generally used by a receiver?

Checksum Easy
A. It permanently stores every received frame for later manual examination
B. It recalculates and compares the value
C. It changes the frame address
D. It increases the signal frequency

20 What does a checksum mainly help detect?

Checksum Easy
A. Errors in transmitted data
B. The physical cable type
C. The sender's location
D. The maximum number of devices that can be installed in a building

21 A sender transmits an file over a link. Assuming bytes and ignoring all delays except transmission delay, how long does transmission take?

Basics of Data Communications Medium
A.
B.
C.
D.

22 A full-duplex link is rated at . What transmission capability does this rating provide?

Basics of Data Communications Medium
A. in each direction simultaneously
B. shared between both directions
C. in each direction simultaneously
D. in each direction simultaneously

23 Two buildings in an industrial area must be connected using a high-speed cable. The route passes close to heavy electrical machinery and the buildings have different ground potentials. Which medium is most suitable?

Guided Transmission Media Medium
A. Unshielded twisted-pair cable
B. Multimode optical fiber
C. Baseband coaxial cable
D. Shielded twisted-pair cable

24 Which design feature of twisted-pair cable primarily reduces crosstalk and externally induced electromagnetic noise?

Guided Transmission Media Medium
A. Adding more connectors
B. Using identical bit patterns
C. Twisting the wire pairs
D. Increasing conductor thickness

25 A terrestrial microwave link must connect two stations separated by a long distance with a hill between them. Which change is most likely to make the link reliable?

Unguided Transmission Media Medium
A. Increase the wavelength without changing the path
B. Reduce the antenna height
C. Install a repeater on the hill
D. Replace directional antennas with omnidirectional antennas

26 What is the approximate wavelength of a radio signal with frequency , assuming a propagation speed of ?

Unguided Transmission Media Medium
A.
B.
C.
D.

27 A signal passes through an amplifier with a gain of and then through two cable sections with losses of and . What is the net gain?

Transmission Impairments and Performance Medium
A.
B.
C.
D.

28 A channel has bandwidth and a signal-to-noise ratio of . Using Shannon capacity, what is its approximate maximum data rate?

Transmission Impairments and Performance Medium
A.
B.
C.
D.

29 A -byte packet is sent over a link spanning . If the propagation speed is , what is the total transmission-plus-propagation delay?

Transmission Impairments and Performance Medium
A.
B.
C.
D.

30 A stop-and-wait protocol sends frames with a transmission time of . The one-way propagation delay is , and acknowledgment transmission time is negligible. What is the approximate link utilization?

Elementary Data Link Protocols Medium
A.
B.
C.
D.

31 In an alternating-bit stop-and-wait protocol, a receiver gets another frame with the same sequence number as the previously accepted frame. What should the receiver normally do?

Elementary Data Link Protocols Medium
A. Discard it and resend the acknowledgment
B. Store it until a different frame arrives
C. Deliver it and increment the sequence number
D. Request retransmission of the previous frame

32 A Go-Back-N protocol uses a -bit sequence number field. What is the largest sender window that avoids ambiguity after sequence numbers wrap around?

Elementary Data Link Protocols Medium
A. frames
B. frames
C. frames
D. frames

33 A codeword is protected by one even-parity bit. During transmission, exactly two bits of the complete codeword are inverted. What will the parity check indicate?

Parity Medium
A. The error will always be corrected
B. The codeword will have odd parity
C. The error will always remain undetected
D. Only the first error will be detected

34 A block code has a minimum Hamming distance of . Which capability does the code have?

Error Detection and Correction Medium
A. Detect up to errors or correct errors
B. Detect up to error or correct errors
C. Detect up to errors or correct error
D. Detect up to errors or correct errors

35 How many parity bits are required for a Hamming code containing data bits and capable of correcting one-bit errors?

Hamming code Medium
A. parity bits
B. parity bits
C. parity bits
D. parity bits

36 In a Hamming code using even parity, parity bits occupy positions , , and . If data bits are placed in positions , , , and , what is the resulting codeword from position to ?

Hamming code Medium
A.
B.
C.
D.

37 A sender uses the CRC generator for the dataword . What remainder is obtained after appending three zeros and performing modulo-2 division?

CRC Medium
A.
B.
C.
D.

38 A CRC generator polynomial has degree and includes both its highest-degree and constant terms. Which burst errors are guaranteed to be detected?

CRC Medium
A. All burst errors of length at most
B. All burst errors of every possible length
C. All burst errors of length at most
D. All burst errors of length at most

39 Using an -bit one's-complement checksum, what checksum is produced for the two words and ?

Checksum Medium
A.
B.
C.
D.

40 When verifying a one's-complement checksum, a receiver adds all received data words and the checksum using end-around carry. Which result indicates that no error was detected?

Checksum Medium
A. A word containing all s
B. A word containing all s
C. A carry without a final sum
D. A sum equal to the checksum

41 A node begins transmitting a -byte frame over a Mbps link of length km. The propagation speed is m/s, and processing and queuing delays are negligible. How long after transmission begins does the last bit arrive at the destination?

Basics of Data Communications Hard
A. ms
B. ms
C. ms
D. ms

42 A modem transmits -QAM symbols at kbaud. Exactly one of every transmitted symbols is a pilot symbol carrying no user data. Ignoring all other overhead, what is the net user bit rate?

Basics of Data Communications Hard
A. kbps
B. kbps
C. kbps
D. kbps

43 A lossless transmission line is terminated by a purely resistive load. What fraction of the incident power is delivered to the load?

Guided Transmission Media Hard
A.
B.
C.
D.

44 A step-index optical fiber has core radius and numerical aperture . At wavelength , which conclusion follows from its normalized frequency ?

Guided Transmission Media Hard
A. , so the fiber is multimode
B. , so the fiber is single-mode
C. , so the fiber is multimode
D. , so the fiber is single-mode

45 A free-space radio link changes its carrier frequency from GHz to GHz while distance, transmit power, and dimensionless antenna gains remain unchanged. By approximately how much does the received power change?

Unguided Transmission Media Hard
A. It decreases by dB
B. It decreases by dB
C. It increases by dB
D. It increases by dB

46 Using the approximate line-of-sight formula , what is the maximum direct-path distance between antennas of heights m and m?

Unguided Transmission Media Hard
A. km
B. km
C. km
D. km

47 A noiseless signaling scheme uses distinct signal levels over a kHz channel. The actual channel has an SNR of dB. Considering both Nyquist and Shannon limits, what is the highest theoretical data rate?

Transmission Impairments and Performance Hard
A. kbps
B. kbps
C. kbps
D. kbps

48 A transmitter outputs dBm. The path includes a dB cable loss, an dBi transmitting antenna, an dB propagation loss, and an dBi receiving antenna. If receiver noise power is dBm, what is the received SNR?

Transmission Impairments and Performance Hard
A. dB
B. dB
C. dB
D. dB

49 A stop-and-wait protocol sends -byte frames over a Mbps link with a one-way propagation delay of ms. ACK transmission time, processing time, and errors are negligible. What is the sender's link utilization?

Elementary Data Link Protocols Hard
A.
B.
C.
D.

50 In an alternating-bit protocol, the receiver correctly accepts frame , but its ACK is lost. The sender times out and retransmits frame . What must the receiver do?

Elementary Data Link Protocols Hard
A. Discard the duplicate and remain silent until frame arrives
B. Deliver the duplicate and transmit an ACK for frame
C. Discard the duplicate and retransmit the ACK for frame
D. Deliver the duplicate and retransmit the ACK for frame

51 Frames use a -bit sequence number field. To avoid ambiguity after sequence-number wraparound, what are the maximum sender-window sizes for Go-Back-N and Selective Repeat, respectively?

Elementary Data Link Protocols Hard
A. for Go-Back-N and for Selective Repeat
B. for Go-Back-N and for Selective Repeat
C. for Go-Back-N and for Selective Repeat
D. for Go-Back-N and for Selective Repeat

52 A block code has minimum Hamming distance . If a received word may contain two unknown bit errors plus erasures whose positions are known, what is the largest for which correction is guaranteed?

Error Detection and Correction Hard
A. erasure
B. erasures
C. erasures
D. erasures

53 Using a Hamming code with even parity, parity bits at positions , , and , and data bits placed in positions , , , and , what codeword is produced?

Hamming code Hard
A.
B.
C.
D.

54 In a SECDED Hamming code, a received word has a nonzero Hamming syndrome, but the overall parity check indicates even parity. Assuming at most two bits were altered, how should the decoder classify the result?

Hamming code Hard
A. A single-bit error occurred at the syndrome position
B. The overall parity bit alone is erroneous and should be flipped
C. No error occurred, so the word should be accepted
D. A double-bit error occurred and is not safely correctable

55 A message has data bits. What is the minimum number of check bits required to construct a SECDED code using Hamming parity bits plus one overall parity bit?

Hamming code Hard
A. check bits, giving a -bit codeword
B. check bits, giving a -bit codeword
C. check bits, giving a -bit codeword
D. check bits, giving a -bit codeword

56 The dataword is protected by the CRC generator . What remainder is appended to the dataword?

CRC Hard
A.
B.
C.
D.

57 A CRC uses generator polynomial . Which error-detection guarantee is valid for every protected frame?

CRC Hard
A. Every two-bit error at any separation is detected
B. Every error containing an odd number of flipped bits is detected
C. Every burst error of length at most is detected
D. Every burst error of length at most is detected

58 A block uses even two-dimensional parity with one parity bit per row and one per column. Which data-bit error pattern can pass both sets of parity checks undetected?

Parity Hard
A. Three flipped bits forming three corners of a rectangle
B. Four flipped bits distributed across four rows and one column
C. Four flipped bits located at all corners of a rectangle
D. Two flipped bits in one row but different columns

59 Using an -bit one's-complement checksum with end-around carry, what checksum is generated for the words , , and ?

Checksum Hard
A.
B.
C.
D.

60 A checksum is computed solely as the one's-complement sum of fixed-size data words, with no position-dependent fields. Which corruption is guaranteed to preserve the checksum?

Checksum Hard
A. Incrementing one data word without changing the others
B. Rotating every data word left by one bit position
C. Complementing one data word without changing the others
D. Reordering the data words without changing their values