Computers: Unit 20 : Programming Languages Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q
  1. What is an instruction set?
A

The list of all possible comments a particular CPU knows how to carry out.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q
  1. What is machine code?
A

The binary code representing each of the instructions in the instruction set.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q
  1. What is translator?
A

A program that converts source code into machine code.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q
  1. What is a source code?
A

The text of program that the program writes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q
  1. What is an assembler?
A

Translate the mnemonics of assembly language program into machine language instructions for the microprocessor to carry out.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q
  1. What is assembly language?
A

a low level language written using when a mnemonics.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q
  1. What are the two types of programming languages?
A
  • low-level programming language
  • high-level programming language
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q
  1. What is a low-level programming language?
A

A programming language is closely related to CPU’s machine code.

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

What is a high level language?

A
  • high level language is the use of human language (standard english) to write a programming code that is executed by the computer
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q
  1. What is mnemonic?
A

A short simple acronym that represents each of the instructions in a CPU instruction set.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q
  1. What is emulator?
A

Hardware or software that allows one type of computer system to behave like another.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q
  1. What is reboot?
A

To start a device again.

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

12.5 what is object code?

A
  • the translated source code. often this will be machine code, but might also be an intermediate code, which has to be further translated and executed one line at a time.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q
  1. What are the 3 reasons for writing programs in assembly language is challenging?
A
  • Very limited range of instructions is available.
  • You have to mange all your data.(no strings, integer, etc) you have to decide how to represent your data.
  • Debugging is difficult. Any bugs may make the machine crash.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

How is assembly language used nowadays?

A

embedded systems
- real-time systems
- operating system development, (where control over the hardware is necessary.)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q
  1. What are the 3 types of translators?
A
  • assembler
  • compiler
  • interpreter
17
Q
  1. What are the 2 types of translators used in a high-level programming language? define
A
  • compiler:- a translator that converts high-level language source code into object code, often machine code. The source code is translated all at once and saved to be executed later.
  • interpreter:- a translator that converts high-level language source code into object code, often machine code. The source code is translated and executed one line at a time.
18
Q
  1. Give 4 comparisons of low-level languages and high-level languages.
A
  • Low-level languages are machine-friendly, very difficult for humans to understand but easy for machines to interpret whereas high- level languages are programmer-friendly, easy to understand, debug.
19
Q
  1. Give 7 comparisons of low-level languages and high-level languages.
A
  • LOW LEVEL to HIGH LEVEL
  • machine- friendly — programmer friendly.
  • Assembler for translation— Compiler/ interpreter for translation.
  • Memory efficient.— Consumes more memory not memory efficient.
  • Cannot be ported from one device to another — easily portable.
  • Little to no abstraction — High level of abstraction.
  • Knowledge of hardware is important for writing programs —– Little to no hardware knowledge required.
20
Q
  1. What are the 4 examples of high-level programming language?
A
  • Python
  • c++/c#
  • java
  • Visual basic
21
Q
  1. What are the 3 types of differences between an interpreter and compiler?
A