1.What is a program? Programming is the act of constructing
a programâa set of precise instructions that tell a computer what to
do. A program is many things. It is a piece of text typed by a programmer,
it is the directing force that makes the computer do what it does, it is data
in the computerâs memory, yet it controls the actions performed on this same
memory. Analogies that try to compare programs to objects we are familiar
with tend
2.What can you say about complexity in programming? large programs is costly not just because of the time it takes
to build, size always involves complexity, and complexity confuses
programmers, which introduces mistakes (bugs) into
programs. A large program then provides a lot of space for these bugs to hide,
making them hard to find.
3.What function do programming languages have?
A good programming language helps the programmer
talk about the actions that the computer has to perform on a higher level, and helps omit details, provides convenient building blocks, allows you to define your own building blocks (such as sum and
range), and makes those blocks easy to compose.
4.What is the relationship between Java and Javascript?
The similar name was inspired by marketing
considerations rather than good judgment. When JavaScript was being
introduced, the Java language was being heavily marketed and was gaining
popularity. Someone thought it was a good idea to try to ride along on this
success. Now we are stuck with the name.
5.What is ECMAScript and how is it related to Javascript? After Javascripts adoption outside of Netscape, a standard document was written
to describe the way the JavaScript language should work, so that the various
pieces of software that claimed to support JavaScript were actually talking
about the same language, which is called ECMAScript standard, after the
Ecma International organization that did the standardization. In practice, the
terms ECMAScript and JavaScript can be used interchangeablyâthey are two
names for the same language.