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:
"MEDIUM_RAISE" is the correct answer for the above question.
Explanation:
- In the above pseudo-code, The first if statement will false because the question suggests that the department value is 8, which is greater than 5. But the first if statement states that the department value is less than 5.
- Then the else-if statement gets checked which gives the true result. It is because the value of the department variable is 8, which is less than 14.
- So the else-if statement block will be executed which assigns the MEDIUM_RAISE value to the raise.
- Hence the answer is "MEDIUM_RAISE".
Answer:
An object is an abstract data type with the addition of polymorphism and inheritance. Rather than structure programs as code and data, an object-oriented system integrates the two using the concept of an "object". An object has state (data) and behavior (code). Objects can correspond to things found in the real world.
hope it helps ya mate.
It is letter D. but i might be incorrect, please contact your teacher for further information. sorry if I got your answer wrong... :(