IDEs

Cards (18)

  • IDE are used as they improve the speed of program development
  • 3 examples of IDE's:
    IDLE (python)
    Visual studio code (many)
    IntelliJ IDEA (java)
  • IDE's are useful as they contain debugging tools, code editors, helpful tools, and compilers
  • 4 examples of helpful formatting with coding python in VSC:
    Different colours to identify variable types, etc
    Hovering over certain things will tell you how to apply them in certain syntax
    Auto indentation
    Find and replace
  • Syntax error is when the code doesn't meet the programming languages syntax
  • Logic errors are where when a program runs it produces incorrect/unexpected results
  • Run-time errors are where program execution either unexpectedly halts or crashes
  • One example of a run-time error is an infinite recursive loop
  • To debug a program, tools should be used. Name 3 examples:
    Breakpoint, code is no longer executed until resumed. During this time variables can be checked
    Watches, these store the value of a variable whenever it changes
    Trace tables, list of variables, outputs, and conditions; and their current value
  • Name the 3 types of test data?
    Normal data
    Erroneous data
    Boundary data
  • Normal data is test data that is typical (expected)
  • Erroneous data is incorrectly formatted data
  • Two examples of erroneous data is:
    A negative amount of marks in a test
    String number of marks rather than int
  • A trace table is a tool used in debugging to track the values of variables throughout a program's execution. It helps identify errors by allowing programmers to see how the values change and where the problem occurs.
  • A breakpoint is a point in the code where the debugger pauses the program's execution. It is used to allow the programmer to examine the program's state and variables at that specific point in order to identify and fix bugs.
  • Watches are a debugging tool that allows you to monitor the value of a specific variable or expression during runtime. They help in debugging by providing real-time information about the state of the program and can help identify and fix issues by tracking the values of variables as the program executes.
  • The largest and smallest values an algorithm can accept are known as boundary data.
  • Example of boundary data is marks from 0 to 100 havingbeing from 0 100 as it's out of 100