Unit 8 - Logic Diagrams And Truth Tables Flashcards
If the units 0 0 0 1 1 0 1 1 Are put into an AND gate what are the result
0
0
0
1
If the units 0 0 0 1 1 0 1 1 Are put into an OR gate what are the result
0
1
1
1
If the units 1 0 Are put into an Not gate what are the result
0
1
Explain what the logic gate AND does
And - both inputs must be true for the output to be true
Explain what the logic gate OR does
Or - at least one input must be true for output to be true
Explain what a NOT logic gate does
The output is opposite to the input
What is data validation
It ensures the data entered is the right type.
What are the 5 valdiation checks
Range Type Length Presence Format
What is a range check
Number or date is within a allowed range
What is a type check
Data is of the right type such as integer or text
What is length
Text entered is not too long or short
What is a presence check
Checks that data has been entered. So it isnt left blank
What is a format check
Checks that the format for example a postcode or email adress
What is verification
Is used to double check the data has been typed in correctly
If a program needs to be maintained
What would this mean for the program
This would be improving the code,fix bugs,add new features.
Why is it important that programs are written in a way to make them maintaible
Comments for other programers to undertand the program
Use of functions for other programers to undertand the program
Why would the use of indentation improve the code ?
Indentation makes it possible to see which lines of code are part of the different structures
What are ides
They are a number of tools that help programmers when they are programming
Name some IDEs
Line numbers
Error diagnostics
Syntax highlighting
What is syntax highlighting
Is where the colour of the text changes to show different parts of the program
Eg strings,keywords
What are error diagnostics
Help a programmer find where they have made the mistakes
What are sytax errors ?
Syntax errors are mistakes in using the language. Examples of syntax errors are missing a comma or a quotation mark, or misspelling a word.
What is a logical error
Where the program runs but doesn’t do what the programer intended
What are the 4 differnet data test types
Normal data
Boundary data
Invalid data
Erroneous
What is normal test data
Checks single or double or triple data
What is boundary test data
Tests lowest valid data and highest valid data
What is invalid test data
Check negative , checks data that is over or under valid data, checks just above and below the boundary
What is erroneous test data
Checks data for the wrong type of letters or symbols.
What is a trace table useful for
Determining the purpose of an algorithm
Finding an output to an algorithm
Finding erros in an algorithm
What is iterative testing ?
Tests for modules and parts of a program as the program is developed
What is final/terminal testing
Tests the whole program at the end of production
What is a string data typr
Letter,symobls,
What is an integer type
Whole number
What is an Real type
Any decimal number
What is an boolean type
True or false