0% found this document useful (0 votes)
49 views2 pages

Assignment 1 Answers

This document contains the answers to 10 questions about digital electronics, computer programming, and the differences between calculators and computers. Key points covered include: 1) Digital electronics deals with discrete binary signals of 0s and 1s; 2) Binary/machine language is the format computers interpret made of 0s and 1s; 3) Assembly language represents machine language symbolically; 4) High-level languages are closer to human language and easier for programmers; 5) High-level languages are translated while low-level languages communicate directly with hardware; and 6) Computers can store and run different programs while calculators have single, pre-installed programs.

Uploaded by

Rashid Ghafoor
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
49 views2 pages

Assignment 1 Answers

This document contains the answers to 10 questions about digital electronics, computer programming, and the differences between calculators and computers. Key points covered include: 1) Digital electronics deals with discrete binary signals of 0s and 1s; 2) Binary/machine language is the format computers interpret made of 0s and 1s; 3) Assembly language represents machine language symbolically; 4) High-level languages are closer to human language and easier for programmers; 5) High-level languages are translated while low-level languages communicate directly with hardware; and 6) Computers can store and run different programs while calculators have single, pre-installed programs.

Uploaded by

Rashid Ghafoor
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Assignment 01

Class: BSCS 1st Morning Name: Rashid Ghafoor Roll No: N/A

Q1: What does Digital Electronics mean?

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).

Q2: What is binary/machine language?

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.

Q3: What is Assembly 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.

Q4: What does high-level language mean?

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.

Q5: What are the advantages/disadvantages of high-level languages?

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.

Q6: What are the advantages/disadvantages of low-level languages?

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:

Low-level language programs are difficult to develop, debug and maintain.

Q7: How would you differentiate a calculator from a computer?

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.

Q8 : What is the relationship between programming and computers?

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.

Q9: Compare the “single-program” calculator and “stored-program” computer.

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.

You might also like