CS FundamentalsModerateGATE CS · Product company CS fundamentals
A 900-byte binary file is attached to an email using Base64 (no line breaks). How many characters does the encoded attachment occupy?
- A. 1200
- B. 900
- C. 1125
- D. 1800
Correct answer: A. 1200
Base64 maps every 3 bytes to 4 ASCII characters: 900 / 3 × 4 = 1200, a 33% increase. MIME line breaks every 76 characters would add a little more.
More Computer Networks questions
- Which TLS key-exchange choice gives forward secrecy, so that a later leak of the server's long-term private key does not reveal past…
- Which task is NOT performed by the data link layer?
- A leaky bucket holds at most 6 packets and sends at most 3 per tick. Each tick, arrivals are added first (any overflow beyond 6 is…
- A switch's MAC table ages out entries after 300 s. Host H was learned on port 3 and then moved silently to port 7 without sending…
- 10.0.0.0/8 is divided into /22 subnets numbered from 0 in address order. Host 10.45.200.17 uses the mask 255.255.252.0. What is the number…
- An organisation needs three LANs with 1000, 500 and 250 hosts, carved with VLSM from ONE contiguous CIDR block. What is the longest prefix…