Programming Language
Programming Language
Languages?
Programming languages are used to
communicate with computers and to create
software applications. They allow
programmers to create code that computers
can run, serving as a link between human
reasoning and machine instructions. Each
language is intended to solve certain issues
and jobs efficiently.
2 Programming Language
Types
A High-level languages, like Python, which
are easier for people to understand, Offer
direct hardware control and high performance
but are difficult to learn, debug, and lack
portability.
B Low-level languages, such as C, which
are closer to machine code. They are Easy to
read, write, and maintain, making them
accessible for beginners, but they trade
performance and control for abstraction.
C Scripting languages, like JavaScript, often
used for automating tasks or making websites
interactive. Ideal for rapid development and
automation, but they are slower and less
suitable for large-scale systems.
D Markup languages, such as HTML, which
are used to structure and present data. It
Makes structuring data easy, but Relies on
other languages for functionality
3 What are Flowcharts?
Flowcharts are diagrams that use symbols to show
steps in a process. They break complex steps by
visually displaying a series of choices or actions. In a
flowchart, each shape has a meaning:
Ovals indicate the beginnings and ends.
Rectangles show actions or directions.
Diamonds represent decision points.
Arrows show how the process is moving and connect
between other shapes.
4 Relation between Flowcharts and
Programming Languages
Flowcharts and programming languages are tools
for problem solving that break down complicated
tasks into shorter steps. Programmers better plan
and prepare their ideas before writing code using
flowcharts, which visually represent processes.
This logical chain of actions is converted into
machine-readable code using programming
languages. Programmers can make sure their code
follows the wanted logic by comparing
programming elements (such as if-else
5 proggramming
languages compared HTML
<!DOCTYPE html>
Python <html>
if number % 2 == 0: </head>
<input type="number"
id="number"><br><br>
C
<button
#include <stdio.h> onclick="checkEvenOdd()">Check</butto
n>
int number;
function checkEvenOdd() {
scanf("%d", &number);
const number =
if (number % 2 == 0) { parseInt(document.getElementById("numb
er").value);
printf("The number is even.\
n");
if (number % 2 === 0) {
} else {
} else {
}
return 0; document.getElementById("result").textCo
JAVASCRIPT ntent = "The number is odd.";
</script>