Answer:
def insSort(arr):
ct=0;
for i in range(1, len(arr)):
key = arr[i]
j = i-1
while j >=0 and key < arr[j] :
arr[j+1] = arr[j]
j -= 1
ct=ct+1;
arr[j+1] = key
return arr,ct;
print(insSort([2,1]))
Output of the program is also attached.
I pretty sure you it’s the third one c.
Answer:
A compiler converts human readable instructions into machine code (machine readable instructions). Without it, a computer will not be able to understand the code that was written and execute it. Since higher programmer languages are easier for humans to read and write and effective compiler is needed. This has to do with how the compiler does much of the work when it comes to programming.
A great example is a drag and drop programming language. The compiler does all the work in the background before the machine can actually execute the code, but the language itself is incredibly easy to read and write by human standards. Without the compiler, it would be impossible for the machine to execute any code.
Explanation:
High Level programming languages like Python has a system that turns our easy to read human code into something the computer can actually read. Python for example, doesn't compile the code as it was design to do it as it runs.
Low level programming languages like Objective C uses a compiler to change the human readable code to machine code. You can tell a compiler was used when there is a 2nd file, one that can't be read by humans. This is the compiled code that the machine actually runs.
Answer:
Don't worry !! Everything will be fine
Explanation:
The unit which is capable of mimicking the processor and of taking over control of the system bus just like a processor is: C) direct memory access.
<h3>What is computer memory?</h3>
A computer memory can be defined as the available space on an electronic device that is typically used for the storage of data or any computer related information.
<h3>What is a CPU?</h3>
CPU is an abbreviation for central processing unit and it can be defined as the main components of a computer because it acts as the “brain” of a computer and does all the processing, calculations, and logical control.
In Computer technology, direct memory access simply refers to the unit which is capable of mimicking the computer's processor and taking over control of the system bus just like a processor.
Read more on processing unit here: brainly.com/question/5430107
#SPJ1
Complete Question:
The __________ unit is capable of mimicking the processor and of taking over control of the system bus just like a processor.
A) interrupt-driven I/O
B) I/O channel
C) direct memory access
D) programmed I/O