1.2.4 Types of Programming Language Flashcards
(139 cards)
What is a programming paradigm?
A programming paradigm is an example or pattern of a way of doing things in programming. It refers to the style or approach of programming a language follows.
Why do we need different programming paradigms?
Different paradigms are better suited to different types of problems, even though most are Turing complete and can solve any computational problem.
What are the two broad categories of programming languages?
Low-level and high-level languages.
What is machine code?
The lowest-level programming language written in binary (1s and 0s), representing direct electrical signals.
What is assembly language?
A low-level programming language using mnemonics to represent machine code instructions, translated by an assembler.
What is a high-level language?
A programming language with a one-to-many relationship with machine code, abstracting complexity and allowing for easier human understanding.
What are the two categories of high-level languages?
Imperative and declarative languages.
What is an imperative language?
A language that uses statements to change a program’s state via sequence, selection, and iteration. It describes how a program operates.
What is a declarative language?
A language that focuses on what the program should accomplish rather than how to accomplish it.
What are the two main imperative programming paradigms?
Procedural programming and object-oriented programming.
What is procedural programming?
An imperative paradigm where programs are built from procedures or functions.
What is object-oriented programming?
An extension of imperative programming focusing on modular programming using objects and classes.
Which languages are examples of the procedural paradigm?
Fortran, COBOL, BASIC, and C.
Which languages are examples of the object-oriented paradigm?
C++, Java, and C#.
What is the key question after watching the video?
What do we mean by the term programming paradigm?
What are procedural languages?
Procedural languages are a common programming paradigm focused on giving step-by-step instructions to a computer.
What is another name for procedural languages?
They are often referred to as imperative languages.
What does ‘imperative’ mean in programming?
Imperative means to give an order or instruction.
How do procedural languages structure code?
They use a series of statements such as sequence, selection, and iteration.
How is code developed in procedural programming?
In a modular way using blocks of code for set tasks, achieved through procedures and functions.
What exam skills are required for procedural languages?
You need to be able to read, trace, amend, and write procedural program code.
What should you focus on when learning different procedural languages?
Focus on understanding the concepts and applying them to your chosen language, as syntax may differ.
Do exam boards specify which procedural language to learn?
No, the specific language is usually chosen by your teacher.