Question

Please write this computer platform questions ( OS and Network) Suppose you have a hard disk...

Please write this computer platform questions ( OS and Network)

  1. Suppose you have a hard disk with 2400 tracks per surface, each track divided into 120 sectors, eight platters and a block size of 512 bytes (i.e., ½ kilobyte), what is the total raw capacity of the disk drive?

  1. A program may be written in a language that is compiled to ‘native’ binary (to the instruction opcodes the actual CPU knows how to do), or it may be interpreted (translated to native binary statement by statement as the program runs.) Suppose part of a program initializes a 500,000-element array to all 0 (i.e., each of 500,000 elements is set to 0). A compiled version performs this action in 0.008 seconds; an interpreted version takes 0.608 seconds. Why is the compiled version so much faster?
0 0
Add a comment Improve this question Transcribed image text
Answer #1

1.

Number of tracks in the hard drive = 2400

Number of sectors in each track = 120

Number of platters = 8

Each platter has two surfaces

Size of block / sector = 512 bytes

Total capacity is

2.

Interpreter executes line by line and converts each line to machine instruction at run time. Whereas compiler converts entire program from source language to target language at compile time.

Interpreting code is slower than running the compiled code because the interpreter must analyze each statement in the program each time it is executed and then perform the desired action, whereas the compiled code just performs the action within a fixed context determined by the compilation.

Add a comment
Know the answer?
Add Answer to:
Please write this computer platform questions ( OS and Network) Suppose you have a hard disk...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT