Question

In: Computer Science

a) Make a comparison between 32 bit and 64 bit processors. b) Compare and contrast XCode...

a) Make a comparison between 32 bit and 64 bit processors.

b) Compare and contrast XCode and gcc/MinGW JDK. How does both are different from each other ? What do both of these have in common?

c) ASCII encodes A and a or B and b as unique characters. How is this encoding impact the sorting strings?

d) During the download of Java JDK, what exactly are you downloading? when running a java program, what are 2 important applications ? explain the process of execution of a java program.

e) when python code line is copied from another text into a new text file, why does python interpreter not execute the code? ex: print "hello". Also why print() function is needed in python to run code?

Solutions

Expert Solution

a)

A 32-bit processor processes a lot lower amount of data compared to 64-bit processor as it can only access around 4GB of available RAM through registers as 232 is around while 64-bit can process 264 bit of data, or anything more than 4GB too, hence we can do multi-tasking, high performance tasks easily with 64-bit processors.

b)

Both Xcode and gcc compile C/C++ code and are very user friendly IDE but the main difference is that Xcode runs on iOS platform and the file it generates after compile is of extension .XCODEPROJ while gcc is for Windows platform and it generates .c extension file on compilation. Both are platform dependent, hence code compiled by one can't be executed on the other.

c)

ASCII encoding helps the system to parse the data at machine level easily as let's say ASCII code for A is 65, 65 can be easily converted in binary form and passed to the assembler but when it comes to sorting, as we can see ASCII code is different for each character, if we had a string Abracadabra and abracadabra, 1st one will be given the first position when sorting as ASCII of A (65) is lesser than a (97)

d)

When we are downloading JAVA JDK, we are downloading Java development kit, which consists of a compiler/interpreter as well as Java Virtual Machine. When we run a JAVA program, the java compiler (javac) converts the source code into a file with extension .java which is then fed to the Java virtual machine, which executes and we get a file with .java extension which can be on any platform as long as JVM is present on that, making JAVA a platform independent language unlike C/C++

e)

Because a simple print "hello" represents a set of character which when fed to the compiler, it just recognizes print as an identifier while "hello" as a literal and that's it. It doesn't get any instruction what to do with it. Hence we use a function print() which when passed to compiler, it recognizes it as a token and looks into the python library for it, when it matches with it as a function for output stream, it executes it and we see the result on the console.


Related Solutions

What consequences does moving from a 32-bit environment to a 64-bit environment have on programs, including...
What consequences does moving from a 32-bit environment to a 64-bit environment have on programs, including the operating system?
Critically contrast between the equity and debt markets. You comparison should make reference to the current...
Critically contrast between the equity and debt markets. You comparison should make reference to the current state of the equity and debt markets..
Interactions: A. What are the differences and similarities between mutualism and synergism? B. Compare and contrast...
Interactions: A. What are the differences and similarities between mutualism and synergism? B. Compare and contrast the following two interactions Interaction 1: Legumes and Rhizobia Interaction 2: Ammonia-oxidizing bacteria and nitrite-oxidizing bacteria Tip: Important points to look at can be kind of interaction, interacting partners, energy sources for the interacting partners, who is providing what to the others and benefits of the interaction for each partner, interesting facts.
Write a comparison essay in which you compare and contrast standards of beauty for women and...
Write a comparison essay in which you compare and contrast standards of beauty for women and men within your peer group. Be sure to consider how strictly the standards are applied in each case.
Finally, compare and contrast the debate over ratification between the Federalists and the Anti-Federalists. Make sure...
Finally, compare and contrast the debate over ratification between the Federalists and the Anti-Federalists. Make sure you cite specific examples from the Federalist Papers to support the Federalist position and contrast it with leading proponents of the opposition (such as John Hancock).
describe or explain something religious in nature. It may be a comparison and/or contrast between a...
describe or explain something religious in nature. It may be a comparison and/or contrast between a certain related belief between two religions, an explanation for one particular belief or practice of a religious faith, or any approved topic of a religious nature.
Make a side by side comparison for the electric potential and the vector potential. Compare them...
Make a side by side comparison for the electric potential and the vector potential. Compare them according to: a) Redundancies in their definitions b) How they can be found from the sources c) How they can be used, if known, to find the magnetic and electric fields d) The matching/interface conditions they satisfy
1. A. Describe all interactions that form the tertiary structure protein. B. Compare and contrast between...
1. A. Describe all interactions that form the tertiary structure protein. B. Compare and contrast between hemoglobin and myoglobin.
TYPES I & II DIABETES COMPARISON Compare and contrast risk factors, age of onset, pathophysiology and...
TYPES I & II DIABETES COMPARISON Compare and contrast risk factors, age of onset, pathophysiology and clinical manifestations of Type 1 and Type 2 Diabetes. What do you think is the most important topic that must be taught to the diabetic patient and why? Direction: Read some scholarly articles and summarize the comparison about 6-7 sentences.
You are to compare and contrast a DC and an AC motor. Make a table with...
You are to compare and contrast a DC and an AC motor. Make a table with 2 columns: one for DC and one for AC and explain each of the following 1; What are their parts and what are their functions 2. How do they work (the physics behind it) 3. What are they used for, give some examples 4. Make sure to include schematics, drawings, graphs
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT