Section A
Section A
Computer Programming
• Computer programming is the process of performing a particular
computation (or more generally, accomplishing a specific computing
result), usually by designing and building an executable
computer program.
• Programming involves tasks such as analysis, generating algorithms,
profiling algorithms' accuracy and resource consumption, and the
implementation of algorithms (usually in a chosen programming language,
commonly referred to as coding).
• The source code of a program is written in one or more languages that are
intelligible to programmers, rather than machine code, which is directly
executed by the central processing unit.
• The purpose of programming is to find a sequence of instructions that will
automate the performance of a task (which can be as complex as an
operating system) on a computer, often for solving a given problem.
Program
• A program is a set of instructions that a computer uses
to perform a specific function.
• A program contains a list of variables,( which can
represent numeric data, text, or images) and a list of
directions (called statements) that tell the computer how
to execute a specific task.
• Programs are created using specific
programming languages such as C++, Python, and Ruby.
• Each programming language has its own collection of
keywords and syntax for constructing a set of
instructions.
Programming Language
• A programming language is a system of notation for writing
computer programs.[
• Programming language is a collection of instructions that the
CPU (Central Processing Unit) assembles to complete a certain
task in a computer.
• Each programming language has its own collection of keywords
and syntax for constructing a set of instructions.
• Programming language can be divided into three categories
based on the levels of abstraction:
• Low-level Language
• High-level Language
• Medium Level Language
Machine Language
• A machine-level language is one that consists of a set of binary instructions
that are either 0 or 1. Because computers can only read machine instructions
in binary digits, i.e., 0 and 1, the instructions sent to the computer must be in
binary codes.
• It is difficult for programmers to write programs in machine instructions,
hence creating a program in a machine-level language is a challenging
undertaking.
• It is prone to errors because it is difficult to comprehend, and it requires a lot
of upkeep.
• Distinct processor architectures require different machine codes;
• A machine-level language is not portable since each computer has its own set
of machine instructions, therefore a program written on one computer will no
longer work on another.
• For example, a PowerPC processor has a RISC architecture, which necessitates
a different code than an Intel x86 processor with a CISC design.
Assembly Language