1.2.4 Types of programming language - Josh O Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is a Low Level Language?

A

Languages that are close to machine code, like Assembly Language.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a High Level Language?

A

Languages that are closer to human language, like Python and Java.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is Machine Code?

A

Binary code (1s and 0s) that the CPU directly executes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is Assembly Language?

A

Low-level language that uses mnemonic codes instead of binary.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is Object Oriented Programming (OOP)?

A

Languages that use “objects” to represent data and methods, like Java and Python.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a Declarative Programming Language?

A

A high-level program that describes what a computation should perform.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is Functional Programming?

A

Languages that use mathematical functions to solve problems

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is Procedural Programming?

A

A paradigm that uses a step-by-step, linear approach to solve problems.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the Little Man Computer?

A

An illustration how assembly instructions control a CPU at a fundamental level.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are Classes?

A

A blueprint for creating objects, defining attributes and methods.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What does LDA stand for in the Little Man Computer instruction set?

A

LDA stands for “Load the Accumulator,” which is used to load data from a specified memory address into the accumulator.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What does STA stand for in LMC?

A

STA stands for “Store Accumulator,” which is used to store the value from the accumulator into a specific memory address.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is immediate addressing?

A

Immediate addressing is when the operand is specified directly within the instruction, meaning the value is used directly as the data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is direct addressing?

A

Direct addressing specifies the memory address where the operand is stored, and the program retrieves the data from that address.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is an object in object-oriented programming?

A

An object is an instance of a class, representing an entity that combines data (attributes) and functionality (methods).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is inheritance in OOP?

A

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.

17
Q

What is encapsulation in OOP?

A

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.

18
Q

What is polymorphism in OOP?

A

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.

19
Q

What is a method in OOP?

A

A method is a function that is defined within a class and operates on the objects of that class.

20
Q

What is the benefit of using OOP?

A

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.