curtains there is lot of complex things going. Let us peep inside these things.
The hard truth is that our computer cannot understand the
commands/instructions contained in a source file (helloworld.c), because C is
a high-level language which means, it contains various characters, symbols,
and words that represent complex, numbers-based instructions for eg. printf,
main, header files etc. The only instructions a computer can execute are
those written in machine language, consisting entirely of numbers that is the
binary language in terms of 0 and 1.
Before our computer can run our C program, our compiler should convert our
helloworld.c into an object file; then a program called a linker should convert
the object file into an executable file.
Linker
Linker and Programming is the process of creating useful computer programs
from human readable code. The code words that are used to create a
computer program are called "source code." This source code needs to be
converted to a format that can be read by a computer to be useful. This
process of conversion is called "compilation." A crucial part of the
compilation process is linking. The compiled binary executable is loaded into
main memory to run. The linker takes various parts of the compiled program
and combines them to form a single executable program. Usually when large
software applications are created they are written in discrete chunks, with
each chunk held in a separate source code file. The job of the linker is to take
each of these chunks, once they have been assembled, and combine them
together into a single executable application.
Interpreter
An Interpreter is a program that implements or simulates a virtual machine
using the base set of instructions of a programming language as its machine
language. You can also think of an Interpreter as a program that implements
a library containing the implementation .of the basic instruction set of a
programming language in machine language.
An Interpreter re^ids the statements of a program, analyzes them and then
executes them on the virtual machine by calling the corresponding
instructions of the library. During an interactive interpreter session the
statements are not only read, analyzed and executed but the result of the
evaluation of an expression is also printed.
This is also called a READ - EVAL - PRINT loop.
Pay attention, the READ - EVAL - PRINT loop is only entered in an interactive
session. If you ask the interpreter to execute code in a file, results of
expression evaluations are not printed. You have to do this by yourself.
Q No 4.
Explain the basic concept of multimedia. Identify ten different
examples of multimedia and also describe five of them in detail.
Multimedia
Through the proliferation of technology In modern-day homes, people
communicate in a variety of ways through multimedia. The term
"multimedia" itself can take many forms, but it always relates to the way
computers present different elements.
Multimedia is common on a variety of kinds of websites and if you use a
computer, you use multimedia communication daily. Communication
technologies in multimedia can take an ordinary lecture or sermon and turn it
into an extraordinary experience the audience will not forget.
Communication technologies in multimedia such as using video, SMART
boards and projector slide programs such as PowerPoint can make your
communication more effective. Every person learns differently and needs
various avenues of communication to receive the message effectively.
Communication technologies in multimedia can cover multiple aspects of
communication types such as audio and visual learning and in one
presentation.
Text Communication:
Text communication encompasses a variety of forms and is one of the most
common forms of multimedia communication In a computer user's day-today activities. Text communication includes such areas of Internet use as
reading a website, reading and writing email messages and instant
messaging.
Text communication is also the oldest form of multimedia communication, as
the first computers displayed text only.
Image Communication:
Though images might not seem to be a form of communication in the same
way that text is a form of communication, it is a legitimate form of
multimedia communication that many users enjoy daily. Examples include
browsing an online photo album, opening and viewing images attached to an
email and looking at photos that accompany stories on news websites.
Audio Communication:
A common form of Web-based multimedia communication is audio
communication. This form involves receiving a message through an audio
format, such as listening to an online radio station or playing a music file. If
you use the Internet to stream a radio station broadcast, for example, you
are engaging in a form of audio communication.
Audio communication often combines with other forms of multimedia
communication. A slideshow, for example, can feature text, images and
audio together.
Video Communication:
Computer hardware has advanced drastically since the early days when
computers took up entire rooms and required teams of people to run. Modern
computer systems fit in a small case and can draw power from a standard
wall jack. It is important to learn about the components of your computer so
that you can diagnose problems or replace equipment as it becomes
outdated.
Functions of hardware:
Hardware is the corporeal and tangible portion of a computer system that
you interact with to take advantage of computer programs. It is distinct from
software in that it is built of physical material and generally does not perform
logical operations or change its state frequently.
The central piece of hardware for any computer is the motherboard, which is
a circuit board that contains all of the sockets, slots, and chip sets that all of
the other hardware devices will be connected into. The centra! processing
unit, which handles all of the mathematical calculations that the computer
needs to perform, is attached to the main socket of the motherboard. The
two main companies that produce processors, AMD and Intel, each make a
variety of different processor types that work with different motherboards.
The random access memory attaches to slots in the motherboard and it
controls the speed that computations occur. The hard drive is the component
that actually stores all of the data in the computer such as files, music or
games. All of these units are run by a power supply that plugs into a wall
socket. Computers with more advanced hardware will require a higher
voltage power supply to run at peak efficiency. Some sort of cooling system
must also be used, such as a fan or liquid cooling tubes, to prevent the other
devices from overheating and shutting down. All of these components are
held inside of a metal or plastic case.
High level languages
In computer science parlance, programming languages are divided into
categories according to the distance in which the syntax is abstracted from
the native processor instructions. Most high-level languages use a compiler
to make them portable among the supported platforms. This allows the
programmer to work in an English-like syntax while the compiler deals with
the details of converting it into processor-specific instructions. The efficiency
of modern compilers has made high-level languages more popular than the
more challenging requirements of low-level tools.
C+ + C++
C+ + C++ is a high-level language that maintains some of the features of a
low-level language. It provides a minimally worded logical command set that
is accessible for programmers on many platforms without worrying about the
underlying processor instruction set. It retains the C language ability to
directly address the processor or memory hardware when necessary, a
feature that many other high-level languages have done away with.
COBOL
Common Business Oriented Language, or COBOL, is an example of a verbose
high-level language. Instructions and variables are spelled out in lengthy
statements designed for the ease of reading by the programmer. The syntax
is portable among the numerous platforms on which the language is
supported. Though it has been updated with modern object-oriented
features, it has been supplanted in recent years by other programming
tools.
Computer and interpreter
Computer language processor that translates a program line-by-line
(statement-by- statement) and carries out the specified actions in sequence.In contrast, an assembler or compiler completely translates a program
written in a high-level language (the source program) into a machinelanguage program (the object program) for later execution. Whereas a
compiled-program executes much faster than an interpreted-program, an
interpreter allows examination and modification of the program while it is
running (executing).
As with spoken languages, people have many different computerprogramming languages to communicate with computers.
These computer-programming languages help bridge the gap between
computers and people. Computer languages have been developed with
interpreting statements in mind. These are some of them:
Python
A very popular, free, object oriented interpreted language created in 1991. It
is also modular which means people can add extra parts to it for others to
use. You will find Python being used as the back-end processing language on
web servers
BASIC
The grand-daddy of interpreted computer languages. Created nearly fifty
years ago (1963) as an easy-to-learn language. Its strength is that it is
interactive - it checks your code as you type it in and its syntax is simple.
JAVA
This is the second type of interpreter. It compiles source code into byte code
which then runs on a virtual machine. Java is very popular as the language to
use for coding the business- logic within a company's business application.
For example, on on-line mortgage application form on a Building Society web
site would most likely be connected to a Java server that is working through
all the complex business rules for providing a customer quote.