Source code is what you create when you type in your program with a plain text editor. You run a compiler with your source file as input and it outputs object code. Usually, the compiler will call a linker to link the object code with shared objects & libraries (dylibs in OSX & dll in Windows) and output executable code.
Answer:
See explaination
Explanation:
class Taxicab():
def __init__(self, x, y):
self.x_coordinate = x
self.y_coordinate = y
self.odometer = 0
def get_x_coord(self):
return self.x_coordinate
def get_y_coord(self):
return self.y_coordinate
def get_odometer(self):
return self.odometer
def move_x(self, distance):
self.x_coordinate += distance
# add the absolute distance to odometer
self.odometer += abs(distance)
def move_y(self, distance):
self.y_coordinate += distance
# add the absolute distance to odometer
self.odometer += abs(distance)
cab = Taxicab(5,-8)
cab.move_x(3)
cab.move_y(-4)
cab.move_x(-1)
print(cab.odometer) # will print 8 3+4+1 = 8
This is calculated by raising 2 to the power of the number of bits.
2^12 = 4096
It should be A. DOS because all of the others are operating systems.