02 - Section 6 - Translators and IDES Flashcards

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

What are the two types of computer languages?

A

High level

low level

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

What are examples of high-level languages?

A

Python
C++
JavaScript

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

What is an example of machine code?

A

Binary

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

What is an example of assembly code?

A

Little man computer

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

What do low-level languages consist of?

A

Machine code and binary code

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

What are the features of high-level languages?

A
  • one high level instruction represents many instructions of machine code
  • same code works for many machines and processors
  • programmer can store data without knowing the memory structure
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are the advantages of high level languages?

A

Code is easy to read, understand and modify

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

What are the disadvantages of high-level languages?

A
  • must be translated into machine code before a computer can understand it
  • less memory efficient and slower (don’t have much control over what the CPU actually does)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are the features of low-level languages?

A
  • one instruction of assembly code usually represents one instruction of machine code
  • usually written for one type of machine or processor
  • the programmer needs to know about the internal structure of the CPU and how it manages its memory
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are the disadvantages of low-level languages?

A

-code is difficult to read, understand and modify

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

What are the advantages of low-level languages?

A
  • commands in machine code don’t need to be translated, they can be executed directly
  • you control exactly what the CPU does, so programs are more memory efficient and faster
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What are the three types of translators?

A

Assemblers
Compilers
Interpreters

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

What are assemblers used to translate?

A

Assembly language into machine code

-there are many assembly languages and each one needs its own unique assembler

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

What are compilers and interpreters used to translate?

A

High-level code into machine code

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

What does a compiler do?

A
  • translates all of the source code at the same time and creates one executable file
  • only needed once to create the executable file
  • returns a list of errors once compiling is complete
  • once compiled the program runs quickly but compiling can take a long time
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What does a interpreter do?

A
  • translates and runs the source code one instruction at a time, doesn’t create an executable file
  • needed every time you run a program
  • will return the first error and stop (useful for debugging)
  • programs will run more slowly
17
Q

What is used to join separate compiled codes into one executable program?

A

A linker

18
Q

What determines the type of translator?

A

The programming language and the IDE

19
Q

What does IDE stand for?

A

Integrated development environment

20
Q

What is an IDE?

A

A piece of software that provides features to help a programmer to develop their program

21
Q

What is the code editor in an IDE?

A
  • the main part of an IDE
  • where the code is written
  • most have line numbering and auto-colour coding
  • good code editors will also have autocorrect, auto-indentation, auto-complete
22
Q

What is the run-time environment in an IDE?

A
  • allows the code to run quickly in an IDE
  • this is done by using a start or run button
  • can help identify logic errors in the program
23
Q

What will an explorer window do in an IDE?

A

-help navigate through programs

24
Q

What will an output window do in an IDE?

A

-show the output from when a program is run

25
Q

What will error diagnostics and debugging tools do in an IDE?

A
  • help to find and fix errors

- tell you a location of an error and often suggest ways to fix it

26
Q

What do breakpoints do in an IDE?

A

-stop the program on certain lines, so you can gather information like the value of variables as the program is running

27
Q

What are some common features of an IDE?

A
  • a translator (source code into machine code)
  • auto documentation, helps with the maintenance of programs (stored in a separate document to give a summary of what the code does)
  • GUI builder, lets you design a user interface up by building it graphically rather than designing it with source code
28
Q

What does GUI stand for?

A

Graphical user interface