Академический Документы
Профессиональный Документы
Культура Документы
1. Finiteness - each algorithm should terminate after a finite number of steps, it should
be a reasonable number
2. Definiteness - each step of the algorithm must be precisely defined, the actions
carried must be rigorously and explicitly specified for each case
3. Input - quantities which are given to the algorithm before the algorithm begins
4. Outputs - quantities that are related to the inputs
5. Effectiveness - how effective the operation to be performed by the algorithm is. All
the steps should be followed in the correct manner and everything should be done
perfectly.
Concurrent means something that happens at the same time as something else.
In computer science concurrent processing means the execution of different
instructions simultaneously by multiple processors so as to achieve the best
performance.
The many sub procedures are assigned to separate processing units to perform
simultaneously. Sequential processing is the execution of all sub-procedures one after
the other by a single processor
What are compound operations of a computer and how do they differ from fundamental
operations?
What are the essential features of a computer language?
Object oriented programming uses abstraction, and is based on the principle that all
everyday tasks can be considered as entities. These entities are either objects or
events.
Object oriented programming uses programming objects that describe data
(properties) and behavior (methods) of real objects, and facilitates code reusability
and abstraction.
Java program excepts two inputs and prints the remainder and quotient.
Finding the maximum value of four numbers is a fundamental operation performed by the
computer
RAM - RAM stores the executing program instructions as well as any data that is needed.
Instructions and data in the RAM are stored in unique memory locations and every such
location had an address as well as content.
What is the need for a translation process and why do we need it?
We need translation to convert hard level programming language into machine
language. There are two ways: compilation and interpretation.
A Java compiler is a program that takes the text file work of a developer and
compiles it into a platform, independent Java file. Programmers typically write
language statements in a given programming language one line at a time using a code
editor or an integrated development environment (IDE). The resulting file contains
what are called the source statements. The programmer then runs a compiler for the
appropriate language, specifying the name of the file that contains the source
statements.
o Compilation is the process that takes a source file as an input, it then reads the
file and checks for syntactical and program errors. If no errors are found it
produces an output file which is in the machine language.
o In case of Java the output produced is known as byte code or intermediate code.
o C and C++ are examples of languages that are compiled directly to machine code.
An interpreter is a program that reads in as input a source program, along with data
for the program, and translates the source program instruction by instruction. For
example, the Java interpreter java translate a .class file into code that can be
executed natively on the underlying machine.
o Java script is an example of a language that is an example of a language that is
interpreted.
Compilers are faster than interpreters because interpreters run every time the
program is run, whereas compilers run once in the beginning and produce machine
code for execution.
JVM is a engine that provides runtime environment to drive the Java Code or
applications. It converts Java bytecode into machines language. JVM is a part of
JRE(Java Run Environment). It stands for Java Virtual Machine
o In other programming languages, the compiler produces machine code for a
particular system. However, Java compiler produces code for a Virtual Machine
known as Java Virtual Machine.
o First, Java code is complied into bytecode. This bytecode gets interpreted on
different machines
o Between host system and Java source, Bytecode is an intermediary language.
o JVM is responsible for allocating memory space.
1. Variable - A variable is used to store a data element of a program. The stored value
can be changed during the program execution. A variable has a name and a type.
2. Constant - Constants represent things and quantities that do not change. They can be
seen as non-modifiable variables.
o A string literal ("ok") or a variable which is declared as final who's value cannot
be changed is a constant.
3. Operators - operators are used to manipulate operands. Operators are signs like +
and - and * and %.
4. Object - An object is compromised of data and actions. Actions refer to the
operations that can be performed by the Object.