Unit 8 - Logic Diagrams And Truth Tables Flashcards

(35 cards)

1
Q
If the units 
0 0
0 1 
1 0 
1 1 
Are put into an AND  gate
what are the result
A

0
0
0
1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q
If the units 
0 0
0 1 
1 0 
1 1 
Are put into an OR  gate
what are the result
A

0
1
1
1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q
If the units 
1 
0 
Are put into an Not  gate
what are the result
A

0

1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Explain what the logic gate AND does

A

And - both inputs must be true for the output to be true

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Explain what the logic gate OR does

A

Or - at least one input must be true for output to be true

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Explain what a NOT logic gate does

A

The output is opposite to the input

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is data validation

A

It ensures the data entered is the right type.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the 5 valdiation checks

A
Range 
Type 
Length 
Presence 
Format
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is a range check

A

Number or date is within a allowed range

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is a type check

A

Data is of the right type such as integer or text

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is length

A

Text entered is not too long or short

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is a presence check

A

Checks that data has been entered. So it isnt left blank

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is a format check

A

Checks that the format for example a postcode or email adress

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is verification

A

Is used to double check the data has been typed in correctly

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

If a program needs to be maintained

What would this mean for the program

A

This would be improving the code,fix bugs,add new features.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Why is it important that programs are written in a way to make them maintaible

A

Comments for other programers to undertand the program

Use of functions for other programers to undertand the program

17
Q

Why would the use of indentation improve the code ?

A

Indentation makes it possible to see which lines of code are part of the different structures

18
Q

What are ides

A

They are a number of tools that help programmers when they are programming

19
Q

Name some IDEs

A

Line numbers
Error diagnostics
Syntax highlighting

20
Q

What is syntax highlighting

A

Is where the colour of the text changes to show different parts of the program
Eg strings,keywords

21
Q

What are error diagnostics

A

Help a programmer find where they have made the mistakes

22
Q

What are sytax errors ?

A

Syntax errors are mistakes in using the language. Examples of syntax errors are missing a comma or a quotation mark, or misspelling a word.

23
Q

What is a logical error

A

Where the program runs but doesn’t do what the programer intended

24
Q

What are the 4 differnet data test types

A

Normal data
Boundary data
Invalid data
Erroneous

25
What is normal test data
Checks single or double or triple data
26
What is boundary test data
Tests lowest valid data and highest valid data
27
What is invalid test data
Check negative , checks data that is over or under valid data, checks just above and below the boundary
28
What is erroneous test data
Checks data for the wrong type of letters or symbols.
29
What is a trace table useful for
Determining the purpose of an algorithm Finding an output to an algorithm Finding erros in an algorithm
30
What is iterative testing ?
Tests for modules and parts of a program as the program is developed
31
What is final/terminal testing
Tests the whole program at the end of production
32
What is a string data typr
Letter,symobls,
33
What is an integer type
Whole number
34
What is an Real type
Any decimal number
35
What is an boolean type
True or false