You are on page 1of 3

Assignment no: 2

Name: Mahan Shehzadi


Roll no: CB435288
Computer
Question no: 1
Question no: 5 (a)
Why high level language are easier to use? Also differentiate compiler and
interpret.
High level language:
High level language is a type of computer language that use English and
mathematical symbols for its program construction. They are also consider as third
generation. In high level language each statement is equivalent to large number of
assembly language command of instruction that perform complex computing
operations. The programmers concentrate only on the logic of application without
considering about the machine architecture.
Advantage of high level language:
The high level language machine independent and program oriented.
It is easy to learn and use.
It requires less time and effort to write a program in high level language.
It provides better documentation of program due to similarity with natural
language.
The debugging of program is also easy in high level language.
As a result high level language are used more often than machine or assembly
language. However the programs written in high level language need to be
translated into machine language during execution processes. For this purpose
language translator and linkers are used for this purpose. Language translator
include compiler and interpret. High level language comes with compilers and
interprets.
Compiler:
A compiler is a computer program that transform source code to object code. The
source code is the program written in a programming language and object code is
the executable form of the code often in a binary format.
Interpreter:
An interpreter is a computer program translate a high level computer program into
its equivalent machine language program. It read one line of code at a time
converts it into binary language and then runs the code on the machine.
Difference between compiler and interpreter:
The interpreter take one statement at a time translate and execute it and then take
other statement. While the compiler reads the entire program in one scan and then
translates and execute it. Due to spanning a program in one go a compiler takes a
larger amount of time in translating and executing a high level language code and
interpreter on the other hand scan line by line and therefore takes lesser time in the
same purpose.
(b) Explain basis methods of taking data backup. Also explain purpose of
virus spreading in computer.
Methods of data backup:
There are plenty of option available for people looking to backup their data all with
their own pros and cons.
USB sticks:
Small cheap and convenient USB sticks are everywhere and their portability means
that they’re easy to store safety but also pretty easy to lose.
External hard drive:
External hard drive are just what they should like hard drive that lives outside your
computer meaning they can be plugged into other sources. If using them for
backup its best not to use them as an external every day hard drive.
Time machine:
For the mac user out there time machine is an option that backup to external hard
drives automatically. Apples sells its own brands of dedicated wireless time
capsules but you can use any hard disk for it.
Network attached storage:
Business tend to back up their files to network attached storage but with more and
more homes having multiple computers the idea has a certain appeal especially for
those looking to save file from more than one source.
Process of virus spreading in computer:
In the early pre internet days viruses often spread from computer to computer via
infected floppy disks. The sca viruses for instance spread amongst Amiga users or
disk with pirated software. It was mostly harmless but at one point as many as
40%of Amiga users were infected. Today virus spread via internet. In most cases
application that have been infected by virus code are transferred from computer to
computer just like an other applications. Because

You might also like