2.5 programming languages

Cards (64)

  • What is an IDE?
    A software package for writing code
  • What feature allows code to be written and edited in an IDE?
    Editor
  • What is a feature of the code editor in an IDE?
    Automatic line numbering
  • What does colour coding in an IDE help with?
    It helps differentiate code elements
  • What is the purpose of auto-correct in an IDE?
    To fix common coding errors automatically
  • What does auto-suggestion do in an IDE?
    It suggests code completions as you type
  • What is the function of a runtime environment in an IDE?
    It allows code to run on different platforms
  • How does a runtime environment benefit programming?
    It enables coding for hardware without access
  • What is the role of error diagnostics in an IDE?
    To locate and fix coding errors
  • What do breakpoints allow a programmer to do?
    Pause the program to examine code
  • What does variable tracing show during program execution?
    The changing values of variables
  • What is syntax highlighting used for in an IDE?
    To show where syntax errors occur
  • What is the purpose of translators in programming?
    To translate code into executable format
  • What do compilers do in programming?
    Translate the whole code into machine code
  • When are compilers typically used in development?
    At the end when code is finished
  • What do interpreters do in programming?
    Translate and execute source code line by line
  • What happens if code is incorrect when using an interpreter?
    Interpreting is stopped
  • What is a characteristic of high-level programming languages?
    They use English-like keywords
  • What is an example of a high-level programming language?
    Java
  • What is a disadvantage of compiled programs?
    Code must be re-compiled after changes
  • What is a benefit of compiled programs?
    They run quickly without additional software
  • What is a characteristic of 4th generation programming languages?
    They detail what computation to perform
  • What is an example of a 4th generation language?
    SQL
  • What is a disadvantage of using interpreters?
    Execution is slower due to translation
  • What is an advantage of using interpreters?
    Errors can be quickly spotted
  • What happens to instructions in an interpreter?
    They are executed as soon as translated
  • What is a limitation of code compiled on one platform?
    It will not run on another platform
  • What is the relationship between high-level languages and machine code?
    One instruction translates into many machine code instructions
  • What is the purpose of SQL in 4th generation languages?
    To perform database queries
  • What is a key feature of declarative languages?
    They specify what to compute, not how
  • What is a common use for assembly code?
    Programming device drivers
  • What is the main function of a debugger?
    To help locate and fix errors
  • What is the relationship between machine code and assembly code?
    One assembly instruction translates to one machine instruction
  • What is the main advantage of using a compiler over an interpreter?
    Compiled programs run faster
  • What is a disadvantage of high-level languages?
    They require translation to machine code
  • What is the main purpose of a programming language?
    To communicate instructions to a computer
  • What is the significance of using mnemonics in assembly code?
    They make code easier to understand
  • What is the role of keywords in high-level programming languages?
    They define the structure and commands
  • What is the main challenge of using machine code?
    It is difficult for humans to understand
  • What is the purpose of object code generated by compilers?
    To be executed by the computer