Study Guides (247,960)
Canada (121,197)
COMP 102 (5)
Final

COMP 102 Final: COMP 102 Final Review 1
Premium

2 Pages
70 Views
Unlock Document

Department
Computer Science (Sci)
Course
COMP 102
Professor
Derek Ruths
Semester
Winter

Description
COMP 102 Final Review #1 Winter 2017 1. Explain how the design of a web service exhibits modularity. Be specific (include in your explanation some of the parts of a web service).  Modularity: ability to break something into meaningful components that themselves can be understood separately  Web service: system that serves information over the internet  Front end (serves requests), back end database (manages the data itself)  They are modules bc they can run by themselves but work together for ultimate functionality 2. What is an algorithm?  Sequence of steps that solves a problem 3. What is the difference between a syntax and a semantic error in a program?  Syntax: done something illegal within the language - typos  Semantic: when the code runs but there’s a logical flaw so it doesn’t do what you want to do 4. Answer the following questions about the code below. a. What files are used in this program?  Words1  Definitions b. What format does definitions most likely have?  json c. Why is the variable “defs” not a particularly good choice of variable name?  Def is a key word in python and they are similar so it may get confusing d. What is this code (most likely) supposed to do?  Print the definitions of all the words e. It’s quite likely that this code isn’t going to work as intended. It has to do with the way the file word1 is being loaded. What’s wrong? Be specific.
More Less

Related notes for COMP 102

Log In


OR

Join OneClass

Access over 10 million pages of study
documents for 1.3 million courses.

Sign up

Join to view


OR

By registering, I agree to the Terms and Privacy Policies
Already have an account?
Just a few more details

So we can recommend you notes for your school.

Reset Password

Please enter below the email address you registered with and we will send you a link to reset your password.

Add your courses

Get notes from the top students in your class.


Submit