Assignment New
Assignment New
ASSIGNMENT
1. What are low level machine language and how do they operate?
Discuss any five types.
2. Explain what high level languages are. Discuss any five types.
3. Identify the similarities and diffferences between the high and
low level languages.
1. What are low level language and how do they operate? Dicuss any
five types.
1. Assembly Language:
Assembly language is a type of low-level programming language that
is closely related to the machine language of a computer
architecture.In other words, assembly language is like using a set
of codes to represent instructions that the computer understands.
These codes are still complex and hard to understand, but they're
easier for humans to remember than the raw machine language.In
other words, assembly language is like using a set of codes to
represent instructions that the computer understands. These codes
are still complex and hard to understand, but they're easier for
humans to remember than the raw machine language.
Assemblers are the tools responsible for translating assembly
language code into machine code. The assembler reads the assembly
code, replaces the mnemonics with their corresponding machine
code, and generates an executable file.
3. Microcode
Microcode is a layer of low-level instructions that sits between
machine language and the physical circuitry of a computer's CPU.
Microcode is like this translator, but for the computer's CPU.
When the CPU receives a higher-level instruction, the microcode
translates it into a series of lower-level instructions that the
CPU can understand and execute. The microcode makes it possible
for the CPU to run more complex instructions without having to
change the underlying hardware.
4. Machine Code
Machine language is the lowest level of programming language. It
consists of binary code that directly communicates with the
computer's hardware. Each instruction is represented by a specific
sequence of 0s and 1s, known as machine code.These machine code
instructions are the foundation of every computer program, from
the operating system to the apps you use every day. Without this
code, computers would be useless.Machine code is often generated
by higher-level programming languages or compilers. Programmers
rarely write machine code directly, as it is complex and error-
prone.
2. Explain what high level languages are. Discuss any five types.
High-level languages are a broad category of programming languages
that are designed to be readable and understandable by humans.
They are not meant to be executed directly by a computer, but
rather are translated into a lower-level language (like machine
code or assembly language) that the computer can understand. This
makes high-level languages more user-friendly.High-level languages
are designed to be more readable, writable, and maintainable,
making them accessible to a broader range of programmers.
Here are 5 types of high leel language
1 java script
JavaScript is a programming language that makes web pages
interactive and dynamic. It allows developers to create rich user
experiences, like dragging and dropping elements on a page,
animating elements, and tracking user interactions. It can also
communicate with web servers, so it's not just limited to the
client-side. JavaScript is lightweight, which means it doesn't
take up a lot of memory or processing power.avaScript is essential
for front-end web development, allowing developers to manipulate
Document Object Model (DOM) elements, handle user interactions,
and communicate with servers asynchronously. Its popularity has
grown with the rise of web frameworks like React, Angular, and
Vue.js.
Similarities:
1. Both are used to communicate with computers and instruct them
to perform tasks.
2. Both are sets of rules and syntax that the computer can
understand.
3. Both require some level of understanding of programming
concepts.
4. The main similarity is that both types of languages allow
developers to create programs that are executed by a computer.
Differences:
1 Abstraction: High-level languages use a higher level of
abstraction, meaning they are closer to human language and further
away from the machine's language. This makes them easier to
understand and learn, but also less efficient. Low-level languages
use a lower level of abstraction, meaning they are closer to the
machine's language. This makes them more efficient, but also more
difficult to understand and learn.