CSC final chapts 6,7,8 Flashcards
How can we be aware of possible mistakes
recognixing mistaken substitutions, respecting upper and lowercase pathnames and passwords
Debugging
A process by which one figures out why something isnt working properly
Who causes the bug?
usually WE do, involving wrong data, wrong command, broken system
Steps to debugging
1.check the error is reproducible, 2 be sure you know the exact problem, 3.check all obvious error sources, 4. isolate problem by dividing the operation into those parts that are working are not
deterministic
computers do the exact same thing every time
first step in debugging
reproduce the error
print queue
place where printing tasks wait befor ebeing processed
how to approach software failures
programmers begin with description of” the input, how the system should behave, how the output should be produced”
Fail Soft software
the program continuies to operate providing a possibly degraded level of functionality
Fail safe software
the system stops functioning to avoid causing harm
True or false, it is practically impossible to have a bug free software
TRUE
digitize
to represent informatin with digits
limitiation of the dictionary definition of digitize
it calls for the use of ten digits which produces a whole number
advantages of digits
the have short names, can be listed in numerical order
collating sequence
placing information in order by using non digit symbols, an agreed order for basic symbols
Pand A
name used for two fundamental patterns of digital information: Presence, absence
Key property of PandA
is that the phenonmenon is eiher present or not (binary)
In the PandA representation
the unit is a specific place, presence or absence of the phemonomenon can be set and detected
PandA unit
bit(binary digit)
group of bits
symbol
memory
long sequence of bits
how to read bits
1 is presence, 0 is absence
Hex digits
hexadecimal digits are base-16 numbers( 1-9, A-F)
hexits
16 digits of Hex digits, they can be represented by 16 smbols of 4 bit sequences
two earliest of PandA
encode numbers, encode keyboard characters
two’s complement notation
most popular means of representing integer values using 8 bits
excess notation
another means of reprsenting integer clues, used in floating point notation