Assignment 1 Answers
Assignment 1 Answers
Class: BSCS 1st Morning Name: Rashid Ghafoor Roll No: N/A
Digital electronics is the branch of physics that deals with digital systems or circuits that operate on
digital siginals that have discrete values i.e either 0 or 1 (boolean logic).
A computer is a digital device that can only use and interpret binary information in the form of zeroes
and ones. So, the binary codes or information that a computer or any other digital device interprets and
operates on is called the binary or machine language.
Assembly language is a low level programming language. In simpler terms it is the symbolic
representation of machine language. The machine language is in the form of zeroes and ones while
assembly language can be comprised of alphabets, number and symbols having 1-to-1 correspondence
with machine code.
A high-level language in programming is the language the is closer to the human language and enables
programmers to write computer programs. High-level language is translated by a compiler or interpretor
into low-level language or machine code that a computer understands.
Advantages:
A high-level language is programmer friendly. One can easily understand and write in high-level
language. It is easy to use and debug. In high-level language the source code is short as compared to
low-level language.
Disadvantages:
High-level language takes additional time to translate into machine code. So, it is slower as compared to
machine language. High-level language can not communicate directly with the hardware.
Advantages:
Programs in low-level language are fast. There is no need of any compiler or interpretor. Low-level
language can directly communicate with the hardware.
Disadvantages:
Calculators are single purpose electronic devices that perform mathematical operations while computers
are general purpose devices capable of storing and executing different programs. Compuetrs can do
everything a calculator can do and much more. Computers have their on memory for storage and other
purposes while calculators do not have such memory. Calculators have a circuit that is specifically
designed to perform simple mathematical calculations.
Computers are machines capable of storing and processing data and information. They are extremely
fasy at processing sequences of arithmetic and logical operations. Computers can not perform these
tasks unless they are instructed to do so. Programming is the set of instructions that guide the computer
to carry out its functions.
In computers, programs or instructions are stored on a memory that makes it much more flexible and
versatile. Based on the given program computers can perform a lot of tasks, like imaging, video
streaming, web browsing etc. On the other hand the basic calculator architecture only allows it to
perform the pre-installed mathematical operations. It does not have its own memory. It's circuit can only
run a single program.
Q10: Congratulations! You have completed your first assignment. How do you feel!
After completing my assignment I have cleared all of confusions about programming and computer that
I had so far. It makes happy and fills me with joy. It made me want to explore more about the programs
and computers.