Programming Language

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

mutability

mutate the internal state of an object

Semantic

relating to meaning in language or logic

type checking

the process of verifying and enforcing the constraints of types

syntax

the rules for combining words into grammatically sensible sentences in a given language

Disadvantages of compiled languages

- Additional time needed to complete the entire compilation step before testing - Platform dependence of the generated binary code

type language

- static language - Dynamic language

What is a program?

A sequence of instructions, which enables a computer to perform a desired task.

Compiled language

Compiled languages are converted directly into machine code that the processor can execute. As a result, they tend to be faster and more efficient to execute than interpreted languages. They also give the developer more control over hardware aspects, like memory management and CPU usage.

Debugging

Finding and fixing problems in your algorithm or program.

Advantages of interpreted languages

Interpreted languages tend to be more flexible, and often offer features like dynamic typing and smaller program size. Also, because interpreters execute the source program code themselves, the code itself is platform independent.

Interpreter language

Interpreters run through a program line by line and execute each command. An interpreted language is a type of programming language for which most of its implementations execute instructions directly and freely, without previously compiling a program into machine-language instructions

what is a function ?

Is a set of Instructions stored in one contiguous block of memory

Java is compiled or interpreted ?

Java is a compiled programming language, but rather than compile straight to executable machine code, it compiles to an intermediate binary form called JVM byte code. The byte code is then compiled and/or interpreted to run the program.

Just in Time Compilation

Just-in-time compilation is a method for improving the performance of interpreted programs. During execution the program may be compiled into native code to improve its performance. It is also known as dynamic compilation.

Advantages of compiled languages

Programs that are compiled into native machine code tend to be faster than interpreted code. This is because the process of translating code at run time adds to the overhead, and can cause the program to be slower overall.

Debugger

Software that helps a programmer track down faults in a program

Disadvantages of interpreted languages

The most notable disadvantage is typical execution speed compared to compiled languages.

Statically typed languages

do type checking at compile-time as opposed to run-time. (For some languages this means that you as the programmer must specify what type each variable)

Dynamically typed languages

do type checking at run-time as opposed to compile-time. (This means that you as a programmer can write a little quicker because you do not have to specify types every time)


Ensembles d'études connexes

Quiz 1: Introduction to Mechanical Properties of Materials

View Set

Pregnancy Complications - Medical Conditions ATI CH 9

View Set

Chapter Four: Retirement and Other Insurance Concepts

View Set

OPMA 3306 | Exam 3 | Chapter 9, 10, 5, 14

View Set

Accounting- CH 05 Receivables and Sales

View Set