CSCA08H3 Study Guide - Midterm Guide: Memory Address, Local Variable, Boolean Expression

214 views12 pages
28 Feb 2018
School
Course

Document Summary

Instructions must be given at the right time for a computer to follow them. Find coffee beans and measure out appropriate amount. Fill coffee maker with appropriate amount of water. Error occurs before code is even interpreted. Forgetting to add a colon when one is needed in a statement: runtime (exception error): error because the solution cannot be executed in real life; found by the complier/ interpreter. Code successfully runs but later runs into an error. Dividing by 0: semantic: error that is because programmer implemented the solution incorrectly; programmer finds it because they must check over their work. Forgetting to divide by 100 when finding a percentage: solving a problem, 1. Input: what information will we need: 2. Process: how do we compute this: 3. Can be used in python to determine the type you used in python if you forget.