1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
ANEK [815]
3 years ago
10

What does a compiler do, and why is it necessary when using higher-level languages?

Computers and Technology
1 answer:
UkoKoshka [18]3 years ago
8 0

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.

You might be interested in
Define a function max_n(arr, n) that takes in an array and an integer as arguments. Your function will then return the n largest
NikAS [45]

Answer:

def max_n(arr, n):

   arr.sort()

   i = len(arr)-n

   return arr[i:]

Explanation:

Define a function called max_n that takes two parameters, an array and an integer

Sort the array

In order to get the last n largest values, we need to slice the array. To do that we need a starting point. Our starting point of slicing will be the "lentgh of the array - n". That means, if we start slicing from that index to the last in the sorted array, we will get the last n largest values.

Assume array is 10, 2, 444, 91 initially.

When we sort it, it becomes 2, 10, 91, 444

Now let's say we want last 2 largest values, our sliced array index should start from 2 and go until the end

i = 4 - 2 = 2 → arr[2:]  will return us 91 and 444

4 0
4 years ago
Question # 2
CaHeK987 [17]

Answer:

ZeroDivisionError

ValuError

Explanation: Edg 2020-2021

6 0
3 years ago
A/An ________ attack in which a malicious hacker floods a Web server with millions of bogus service requests that so occupy the
CaHeK987 [17]

Answer:

denial of service

Explanation:

A <u>denial of service</u> attack in which a malicious hacker floods a Web server with millions of bogus service requests that so occupy the server that it cannot service legitimate requests.

6 0
3 years ago
Which generation of programming languages provides programmers with a visual environment to code programs?A. first generationB.
Mila [183]

the answer is c third generation

3 0
3 years ago
A _____________ is a situation in which a hacker attempts to disrupt the network by sending messages to the network that prevent
LUCKY_DIMON [66]
I think its a virus or a trojan horse
8 0
4 years ago
Other questions:
  • Write a brief explanation of the problems that can occur in each of the following scenarios and what you should do to avoid thes
    13·1 answer
  • Orphan record example?
    8·1 answer
  • How does LinkedIn differ from other popular social media platforms? What are the similarities?
    6·1 answer
  • Given the three side lengths, how can you tell if a triangle<br>is a right triangle?​
    5·1 answer
  • PLEASE HELP ASAP!!!
    8·1 answer
  • Anti-lock braking systems can significantly.... a. impede your braking stability. B. improve your braking stability. C. improve
    5·1 answer
  • Why is Data-Driven Analytics of interest to companies?
    12·1 answer
  • Which 1947 Invention paved the way for the Digital Revolution?
    12·2 answers
  • PLZZZ HELP!!!!!!!
    12·1 answer
  • Select the correct answer.
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!