1.2.4 Types of programming language - Josh O Flashcards
What is a Low Level Language?
Languages that are close to machine code, like Assembly Language.
What is a High Level Language?
Languages that are closer to human language, like Python and Java.
What is Machine Code?
Binary code (1s and 0s) that the CPU directly executes.
What is Assembly Language?
Low-level language that uses mnemonic codes instead of binary.
What is Object Oriented Programming (OOP)?
Languages that use “objects” to represent data and methods, like Java and Python.
What is a Declarative Programming Language?
A high-level program that describes what a computation should perform.
What is Functional Programming?
Languages that use mathematical functions to solve problems
What is Procedural Programming?
A paradigm that uses a step-by-step, linear approach to solve problems.
What is the Little Man Computer?
An illustration how assembly instructions control a CPU at a fundamental level.
What are Classes?
A blueprint for creating objects, defining attributes and methods.
What does LDA stand for in the Little Man Computer instruction set?
LDA stands for “Load the Accumulator,” which is used to load data from a specified memory address into the accumulator.
What does STA stand for in LMC?
STA stands for “Store Accumulator,” which is used to store the value from the accumulator into a specific memory address.
What is immediate addressing?
Immediate addressing is when the operand is specified directly within the instruction, meaning the value is used directly as the data.
What is direct addressing?
Direct addressing specifies the memory address where the operand is stored, and the program retrieves the data from that address.
What is an object in object-oriented programming?
An object is an instance of a class, representing an entity that combines data (attributes) and functionality (methods).
What is inheritance in OOP?
Inheritance is a feature of OOP where a class (subclass) can inherit properties and methods from another class (superclass), allowing for code reuse and hierarchical relationships.
What is encapsulation in OOP?
Encapsulation is the bundling of data (attributes) and methods (functions) that operate on the data into a single unit, or class, and restricting access to some of the object’s components.
What is polymorphism in OOP?
Polymorphism allows objects of different classes to be treated as objects of a common superclass. It enables a single method to be used in different ways depending on the object calling it.
What is a method in OOP?
A method is a function that is defined within a class and operates on the objects of that class.
What is the benefit of using OOP?
OOP provides modularity, reusability, and flexibility, making it easier to manage and maintain complex software applications by organizing code around real-world entities and relationships.