Computer Coding
What are hierarchy chart
A hierarchy chart is an organization chart that shows the position of modules in the program it acts as a map for the program and is different from a flowchart
What is a logic error
A logic there is one program runs but does not produce the expected results this could be caused by an incorrect formula or incorrect sequence of statements this is also called a runtime error
What are two types of testing a program
Desk checking and pencil checking
What are the desired results in a program
The output
What is the repetition control structure
The repetition control structure is repeat statement more than one also called a loop this needs to stop condition which met with the program will continue to loop until some condition is met
What is the selection control structure
The selection control structure is also called a branch or decision and it requires a condition to determine when to execute statement
What is the sequence control structure
The sequence is execute statements in sequential order the simplest of the control structures it starts at the beginning and continues in sequential order
What is modular programming
Modular programming is where there is a main module and then that module is broken up into submodules which all have their own task I can be called upon at any point in the main module
What is an algorithm
An algorithm is a step-by-step method to prove or solve a problem or complete a task
What are the four steps to writing a program
Analyze the program, design the program, code the program, and test the program
What are header comments
Header comments appear at the beginning of a program or module and provide general information
What is a syntax error
Hey syntax error is when you have the correct words or in this case the correct code what is in the wrong order and doesn't make sense. This may be caused when a word is misspelled or there is a grammar or punctuation error
Describe a module
In module performs a single task, it is self-contained and independent of other modules, and is relatively short I delete the statement should not exceed one page
What are the two types of comment documentation and what are they
Internal documentation is for the program is to read where is extern all documentation is for the user
In what way is the coding process is cyclical process
It is cyclical because it often requires returning to earlier steps this may pop up when the design process uncovers flaws, you may find problems leading to modifications or additions to the design and also testing on coverage problems that require returning to previous phases.
What are the benefits to modular programming
Modular programming is easier to read, it's easier to design, different program modules can be worked on by different people, and a single module can be used at more than one time in the program
What are the three excepted control structures
Sequins, repetition, and selection
What are step or in line comments
Step or in line comments appear throughout the program and explain the purpose of specific portions of code
What is a call statement
They called statement causes a submodule to be executed
How does one code a program
They translate charts models Pseudocode or ordinary language into the code for a program
Algorithms must be what
Well defined, well ordered, must produce some results, and must terminate in a finite time
How do you test a program
You run as many sets of data as possible through it even some that aren't supposed to work
