A two MByte file needs to be base64 encoded. How much larger (in bytes) does the file enlarge?
Base64 encodes each set of 3 bytes into 4 bytes.
This means that the size of the base-64 representation of a string
of size n is:
ceil(n / 3) * 4
Here the file size if 2MB = 2*1024*1024 = 2097152
So, for a 2MB file, the base-64 representation will be
ceil(2*1024*1024/3)*4 = 2796202.67 ~=
2.66MByteslong.
The file will enlarge 699050.67 bytes.
A rough approximation would be increased to 4/3 (33%) of the original.
A two MByte file needs to be base64 encoded. How much larger (in bytes) does the...
17 18 19 Direction of disk rotation 14 15 19 20 21 22 23 24 Figure on the right shows the tracks and sectors on a disk. The size of File A, B, and C is 1028 bytes, 2521 bytes, and 8211 bytes respectivelv. Answer the following questions. 17 18 1 27 28/29 2212324252 If data block size is 1KB, how many data blocks does this disk contain? Answer: How many data blocks does File A take? Answe How many...
Assuming shorts are 2 bytes long, and pointers are 8 bytes long, how many bytes does this program need? short a = 3; short b = a; short * c = &a; *c = b++; short & d = a; short & e = b; short * f = c; e = *f + d; (a) 0 (b) 4 (c) 8 (d) 12 (e) 16 (f) 20 (g) 24 (h) 28 Please confirm. My answer: (f) 20 short a =...
How many bytes does a 64 KB microprocessor memory contain? Note: 1 KB = 2^10 bytes 1 MB = 2^20 bytes 1 GB = 2^30 bytes
Questions: 1. (15pt.) Suppose that a file of 10 bytes is transferred between two hosts, and packet size is 10 bytes. Assume packets are sent back-to-back with no overhead of encapsulation. Calculate the file transmission latency (from first bit sent to last bit received) for (a) Single store-and-forward 1-Gbps switch is in the path, each link introduces a propagation delay of lus, and either queucing or processing delay can be omitted (b) Same as (a) but with three switches; (e)...
9. If a server and a host are 2500 Km apart and a 500 KB file is transmitted over the 784 Kbps channel linking the two devices and the size of each packet is 250 bytes: a. How many packets are transferred? b. Find the time that it takes to transmit one packet. 6pts. Find the time that it takes to transmit the entire file c. Assume the signal propagates at a speed of 2.4 x 108m/s.
9. If a...
Q2.3. (15%) Consider sending a file of F bytes over a path of Q links. Each link transmits at R bps. The network is lightly loaded so that there are no queuing delays at any link. The propagation delay on each link is Tp seconds on average. 1. Suppose the network is a packet-switched virtual-circuit network. Assume the VC setup time is Ts seconds. Suppose the sending layers add a total of h bits of header to the file, and...
Jack borrows 20,000 dollars from Jill at 25% compound interest annually. How much does Jack needs to pay at the end of 2 years?
A) How long does it take to read 1,056,000 contiguous bytes from a disk with these specs: Block (sector) size: 512 bytes Sectors per track: 180 IODCU overhead: 1.6 ms Seek time: 11 ms Rotation speed: 12,500 RPM B) A disk has 250 (512 byte) blocks per track and a data transfer rate of 22.4 Megabytes per second. What is the disk's rotational speed in revolutions per minute (RPM)?
How mant bytes of on-chip program memory does the PIC24HJ128GP502 ANSWER: microcontroller have? 2048 b)128K 65536 a24 none of the above How many bytes of Random Access Memory does the PIC24HJ128GP502 ANSWER: microcontroller have? 2048 b)32768 e)16 d24 none of the above .The PIC24HJ128GP502 data memory is non- volatile ANSWER: TRUE b) FALSE What is the machine code (in hex) for the mov.b w1,w2 instruction? ANSWER: 0x780082 b)0x784082 0x780101 0x784101 d' none of the above
How mant bytes of on-chip...
NaCl does not dissolve well in non-polar solvents because... A. the solute-solute interactions are much larger than solvent-solvent or solute-solvent interactions. B. the solvent-solvent interactions are much larger than solute-solvent or solute-solute interactions. C. the solute-solvent interactions are much larger than solvent-solvent or solute-solute interactions. D. the solute-solvent interactions are similar to solvent-solvent and solute-solute interactions.