Professional Documents
Culture Documents
PCPF Module-1
PCPF Module-1
4. Compare Compiler time binding & Run time binding(Early & Late Binding
• Compile time or early binding- If binding occurs before
runtime and remains unchanged throughout the program
execution. Compiled languages tend to have early binding times
The time when a single compilation unit is compiled, while
compiling the type of a variable can be identified. Example:
int c; [at compile time int, c forms an association]
• Run time or Late binding- If binding occurs during runtime or can change
during program execution. Interpreted languages tend to have later binding
times.
• Run time is a very broad term that covers the entire span
from the beginning to the end of execution. If we give the
value of a variable during runtime, it is known as runtime
binding
5. What is JVM
JVM also known as Java virtual machine enables a computer to run Java programs as well as
programs written in other languages that are also compiled to Java bytecode.
6.Explain different types of programming paradigms
int a = 4;
int b = 5;
int sum = 0;
sum = a + b;
From assigning values to each variable to the final addition of those values, each statement
changes the state of the program. Using a sequence of five statements the program shows
how to add the numbers 4 and 15. Example of Imperative language is: C, C++
This type of languages concentrates on what is the expected outcome for the program instead
of how the outcome is achieved.
• Logical programming is something like math.
• Logic program statements express facts and rules about problems.
• example, “A is true if B and C is true”.And to understand facts we can say that “A is
true”. Example of Logic language is: Prolog.
4) Object-oriented programming languages- Object oriented
programming language based on object instead of just functions and
procedures.
It involves concepts of oops programming languages. For example:
C++, Java.
•In languages with manual memory management, like C or C++, can encounter
dangling pointers, by doing this for instance:
int * p = new int;
delete p;
int i = *p; // error, p has been deleted
Dynamic scoping :
• With dynamic scope rules, bindings depend on the current state of
program execution
• The idea is to search for a name in a chain of called procedures, starting
from the main program.
• This chain is built according to the visibility rules
(Maybe)