Python is actually an easy language to learn and use. IDLE is an iffy IDE to use. One thing about IDLE that drives me nuts is that when it saves a file, it converts tabs to spaces (you can adjust how many in the prefs). This causes impossible to find indentation errors because several spaces are NOT the same as a tab, but you can't see the difference on the screen.
# the standard way to put the main function after declaring functions and
# classes
if( __name__ == "__main__" ):
import sys
# check that the program was called with the correct number of arguments
if( len( sys.argv ) != 2 ):
sys.stderr.write( "\nusage: %s <argument>\n" % ( sys.argv[ 0 ] ) )
sys.exit( 1 )
else:
# do something nifty
sys.exit( 0 )
Answer:
Given address = 94EA6
tag = 0 * 94 ( 10010100 )
line = 0 * 1 D 4 ( 111010100 )
word position = 0*6 ( 110 )
Explanation:
using the direct mapping method
Number of lines = 512
block size = 8 words
word offset =
= 3 bit
index bit =
= 9 bit
Tag = 20 - ( index bit + word offset ) = 20 - ( 3+9) = 8 bit
Given address = 94EA6
tag = 0 * 94 ( 10010100 )
line = 0 * 1 D 4 ( 111010100 )
word position = 0*6 ( 110 )
Mac OS came out in 2001. This is software that was created by Apple to run the "Mac Computers." This software is still used to this day.
MS-DOS came out in 1981. This is software that was created by Microsoft to run x86 computers. This software is no longer used.
Windows New Technology came out in 1985. This is software that was created by Microsoft to run a ton of different computers. This software is still used to this day.
Windows Vista came out in 2006. This software that was created by Microsoft to run a variety of personal computers. This software is no longer used.
By the information given, Windows Vista was the last to be released.
Best of Luck!