programming languages Flashcards

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

what is machine code

A

Every processor action is represented by a binary number/code that is
part of an instruction set – a list of actions a processor can perform

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

how are machine code and assembly language similar

A

Assembly language is similar to machine code – one line of assembly language generally produces one instruction of machine code.

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

advantages of low level languages

A

Easier on the computer than a high-level language:
✓ Shortermachinecode ✓ Quickerruntime
✓ Moreefficientuseof
processor & memory
✓ Maximum possible access by programmer to every instruction in the set

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

disadvantages of low level languages

A

Harder on the (Human) developer than a high-level language:
Commandsareshortcodes, difficulttounderstand
Dataisstoredbyusingnumbered locations rather than variables
No simple support for iteration (loops) and conditions
May only work with instruction set of one processor

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

what are high level languages

A

Language similar to human language, designed for ease of programming.
Allows use of data structures, loops, functions.

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

advantages of high level languages

A

Easier on the programmer than low- level languages:
Morereadablecode–layout, identifiers, comments
Structuredcodewith subroutines and shared modules
Supportiterationand conditions
Can name and use variables, data structures rather than referring to computer memory location

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

disadvantages of high level languages

A

Harder on the computer than low- level languages:
Moretimerequiredto translate to machine code
Generatesmoremachinecode than low-level languages – added processing burden
Lowcodingefficiency–may generate a lot of machine code to implement a simple command

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

define translation

A

Process of converting source code to machine code

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

define translator

A

System software that performs translation.

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

types of translators

A

Assembler, Compiler and Interpreter

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