Chapter 2: Programming Flashcards
What is an algorithm?
A sequence of step-by-step instructions to solve a problem or carry out a task
What is a syntax error?
An error that occurs when a rule of the programming language is broken
What is validation?
When a program checks that it has been given valid input data
What is a range check?
When a program checks that the data it has been given is within a certain range
What is a look-up check?
Checking that an input value is in a predefined set of values
What is a length check?
Checking that input values are a certain length
What do trace tables look like
A X Y 0 3 7 "xd"
What is a logic error?
The steps of an algorithm are incorrect
What is a runtime error?
An error that occurs while the program is running? (e.g. tries to access a text file that doesn’t exist)
What is an IDE?
A package of programs that help programmers design code (by detecting errrors
What is the difference between an algorithm and a program?
An algorithm is the design for a solution, a program is an implementation of that design
What is a test plan table?
A table with purpose of text, data, expected result, actual result, action needed