GCSE Computer Science / Component 02 / Computational Thinking , Algorithms And Programming Flashcards
In a flowchart, what does a diamond represent ?
Decisions, often a ‘yes’ or a ‘no’.
In a flowchart, what does a rectangle represent ?
A general instruction, process or calculations.
In a flowchart, what does a parallelogram represent ?
Anything that is put into or taken out of the algorithm.
In a flowchart, what does a rectangle with rounded corners represent ?
The beginning and end of the algorithm.
State an example of and briefly describe what an integer is.
0, 6, 10289. Whole numbers only.
State an example of and briefly describe what a real ( or float ) is.
0.15, -4.688. Number that have a decimal.
State an example of and briefly describe what a boolean is.
True/false. 1/0. Can only take two values.
State an example of and briefly describe what a character is.
“A”, “5”. A single letter, number or symbol.
State an example of and briefly describe what a string is.
“TfuI35F”, “$money$”. Used to represent text, a collection of characters.
Define a range check.
Checks data is within a specified range.
Define a presence check.
Checks data has actually been entered.
Define format check.
Checks data has the correct format. ( eg. dd/mm/yyyy )
Define a look-up table.
Checks data against a table of acceptable values.
Define length check.
Checks data is the correct length.
Define a translator.
A program that turns a programming language into machine code.
Define source code.
The actual written code of the program.
Define compiler.
A programming tool to translate source code into machine code.
Describe the role of the compiler.
Translates all of the source code at the same time and creates one executable file. Only needed once to create an executable file. Returns a list of errors for the entire program once compiling is complete. Once compiled the program runs quickly but compiling can take a long time.
Describe the role of the interpreter.
Translates and runs the source code one instruction at a time, but doesn’t create an executable file. Needed every-time you want to run the program. The interpreter will return the first error it finds and then stop- this is useful for debugging. Programs will run more slowly because the code is being translated as the program is running.
Define an IDE.
An integrated development environment is a piece of software that provides features to help a programmer to develop their program.
State common features of an IDE.
A run-time environment which allows the code to be run quickly within the IDE. Features to keep track of the line number and character number that you are working on. Error diagnostics and debugging tools. Etc.
Define a ‘syntax error’.
When the compiler or interpreter doesn’t understand something you’ve typed because it doesn’t follow the rules or grammar of the programming language.
Define a ‘logic error’.
When the compiler or interpreter is able to run the program but the program does something unexpected.