Turing Exam Notes

Essay by HookerKillerHigh School, 11th grade August 2007

download word file, 7 pages 4.3

Downloaded 12 times

These notes helped me alot in my final exam for ICS3M.

Computers Exam NotesTermsDeclaring a variable -setting aside some memory that will be used to store a valueIndentifier -The name of the variableConstants -Declared using: var name-of-constant : type-of-constant :=value. Constants are variables that you want to stay the same through the entire program, they are useful if it's a variable that you may wish to changeVariables -Must begin with a letterCan use digits or underscoresCan't use special characters like hyphens or spacesAre case sensitiveAssignment-Occurs when a variable is assigned a specific value (initialized)Condition/Comparison -Is used when comparing a value/variable to another (if or case)Conditional Loop -A loop with an exit when statementExit when statementOccurs in conditional loops, and are put right after the "get" statementCounted Loop -A for loop. Eg. For i 1..20 of blahIndex -The variable in a for loop, does not need to be declared earlier in the programIf statement -Only one clause is executed, If exam = hard thenCase Statement -Contains 1,2, or many clauses, must have atlesat one statement that is not the "otherwise" statementSubprogram -A mini program that has been written to accomplish a very specific task, such as drawing a line or calculating area.

Procedure -A subprogram that performs an action or a set of similar actions. E.g. drawing a line. A procedure should be used when no result is needed backFunction -A subprogram that sends back the result of a calculation e.. the area of a rectangle. A function should be used when a result is needed backBenefits of Subprograms -1. Reusing code, makes it efficient2. Organized3. Easier to debug4. Easier to divide up tasksActual Parameters -The actual value of the parameterFormal ParameterThe name of a parameterScope -Can be local, or global. The term refers to where a variable...