Languages Flashcards

Remember languages and purposes

1
Q

What are the 4 programming languages?

A

Machine language
Assembly Language
High-level language/s
Script and Markup Languages

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

What is a Machine Language?

A

Constructs instructions as Binary codes. It depends on 0s and 1s to build any sort of instruction.

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

What is an Assembly Language?

A

A low-level programming langue that Includes symbolic codes instructions or Mnemoic codes. It implements symbolic representation of the machine code required to program a CPU.

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

What is a High-Level programming language?

A

Refers to languages such as Java, C++ and Python. Structured in English-like procedural statements with Mathematical notation.

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

What is a Script and Markup language?

A

Normally used to build webpages.

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

What is a Script language?

A

A language used to guide and control programs. It is meant to be interpreted than compiled.

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

What is a Markup Language?

A

It is used to control the presentation of data and describe the data and formatting in textual format.

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

What do instructions consist of?

A

Opcode

Operand

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

What is an Opcode?

A

A part of an instruction that tells the CPU what to do.

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

What is an Operand?

A

A part of an instruction that contains the address from where to fetch/store data.

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

What are Assemblers?

A

Converts assembly language into its machine code equivalent.

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

Give an example of an Assembler

A

ADD 200, 216, 220 > 0001000, 0001100…

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

What are common Assemblers?

A
Microsoft's Macro assembler (MASM)
Flat Assembler (FASM)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is a Compiler?

A

Translates high-level language to machine code equivalent. They also;
- check syntax of a program

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

What is a Syntax check?

A

Checks syntax errors once a program is written and “compiled”

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

What is an Interpreter?

A

Executes source code instructions in high-level programming language but does not provide on executable file. They also;

  • check for syntax errors
  • take one instruction at a time and convert it.
17
Q

What is an executable file?

A

Files that can be clicked and executed. Usually used for game development when installing necessary software.

18
Q

Give common interpreter based languages

A

PHP, JavaScript and BASIC

19
Q

What are the differences between Compilers & Interpreters?

A

• Compilers translate all source code and sends it straight to the processor. Whereas, Interpreters executes one instruction at a time.

• Compilers and Interpreters have different languages. Compilers = C, C++
Interpreters = Basic, JavaScript

• Compilers cannot go through instructions to find errors. Whereas, Interpreters assists in finding errors within the code.

20
Q

Give an example of a Compiler syntax correction.

A

var1 = var2+ —> var1 = array1 + peocedure1