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 signal that continuously changes its amplitude during transmission
B. A type of network cable
C. A set of communication rules
D. A device that stores messages

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

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

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. Low-frequency signals that always follow the curvature of Earth
B. Radio waves
C. Microwaves
D. Twisted-pair signals

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

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

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

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

8 What does bandwidth commonly describe in a communication channel?

Transmission Impairments and Performance Easy
A. The number of connected computers
B. The physical length of the channel
C. The channel's data-carrying capacity
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. Bit
B. Packet
C. Segment
D. Frame

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

Elementary Data Link Protocols Easy
A. To prevent receiver overload
B. To select a physical cable
C. To assign network addresses
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 identify corrupted data
B. To assign device names
C. To convert all analog signals into optical signals before transmission
D. To increase cable length

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

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

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. At positions that are powers of two
B. Only at the end of the codeword
C. At positions that are multiples of three
D. Only between two consecutive data bits

15 What does CRC stand for?

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

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

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

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

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

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

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

19 How is a checksum generally used by a receiver?

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

20 What does a checksum mainly help detect?

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

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. in each direction simultaneously
C. in each direction simultaneously
D. shared between both directions

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. Baseband coaxial cable
B. Multimode optical fiber
C. Unshielded twisted-pair 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. Install a repeater on the hill
B. Reduce the antenna height
C. Replace directional antennas with omnidirectional antennas
D. Increase the wavelength without changing the path

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. Request retransmission of the previous frame
B. Store it until a different frame arrives
C. Discard it and resend the acknowledgment
D. Deliver it and increment the sequence number

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 codeword will have odd parity
B. The error will always be corrected
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 errors
D. Detect up to errors or correct error

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 length at most
C. All burst errors of length at most
D. All burst errors of every possible length

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 carry without a final sum
B. A word containing all s
C. A word containing all s
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 single-mode
D. , so the fiber is multimode

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 increases by dB
B. It decreases by dB
C. It increases by dB
D. It decreases 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. Deliver the duplicate and transmit an ACK for frame
B. Deliver the duplicate and retransmit the ACK for frame
C. Discard the duplicate and remain silent until frame arrives
D. Discard 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. erasures
B. erasures
C. erasure
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 double-bit error occurred and is not safely correctable
B. A single-bit error occurred at the syndrome position
C. No error occurred, so the word should be accepted
D. The overall parity bit alone is erroneous and should be flipped

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 burst error of length at most is detected
B. Every burst error of length at most is detected
C. Every two-bit error at any separation is detected
D. Every error containing an odd number of flipped bits 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. Four flipped bits located at all corners of a rectangle
B. Two flipped bits in one row but different columns
C. Four flipped bits distributed across four rows and one column
D. Three flipped bits forming three corners of a rectangle

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. Complementing one data word without changing the others
C. Rotating every data word left by one bit position
D. Reordering the data words without changing their values