Summary

Cards (22)

  • What are the three general types of translators?
    High level languages, low level languages, and machine code
  • What is a high level language?
    A programming language that uses English keywords for syntax and is easily understandable for humans
  • Why must high level languages be translated into machine code?
    Because computers can only understand machine code
  • How does the relationship between high level languages and machine code differ from that of low level languages?
    High level languages can translate to multiple lines of machine code, while low level languages have a 1-1 relationship
  • What is low level language also known as?
    Assembly code
  • What is a characteristic of low level languages?
    They use mnemonics or abbreviations of code
  • What does it mean that low level languages are hardware specific dependent?
    It means they are designed to work with specific types of hardware
  • What is machine code?
    Code for the CPU to execute, consisting of binary instructions
  • Why does machine code not need to be translated?
    Because it is already in a format that the CPU can execute
  • What are the components of machine code?
    Opcodes and operands
  • What is the purpose of a translator?
    To convert source code into binary or machine code
  • What are the three types of translators?
    Compiler, interpreter, and assembler
  • How does a compiler work?
    It translates code all at once and produces an executable file
  • What happens when a compiler finds an error?
    It reports all errors at the end of the compilation
  • How does an interpreter differ from a compiler?
    An interpreter translates code line by line, while a compiler translates all at once
  • What is an Integrated Development Environment (IDE)?
    An environment that provides tools for writing and testing code
  • What are some tools integrated into an IDE?
    Text editors, error diagnostics, translators, and run time environments
  • What is the role of error diagnostics in an IDE?
    To display information about errors and their locations
  • What is the purpose of the run time environment in an IDE?
    To enable the program to be run and check if it works
  • What are the advantages of using a high level language over a low level language for programming?
    • High level languages use English words and phrases, making them easily understandable by humans.
    • They are processor independent, allowing code to be written once for many processor types.
  • What is an example of an IDE?
    IDLE
  • Why is it important for a programmer to use a high level language?
    Because it simplifies the coding process and enhances readability