COP 2258 Exam 1 Study Guide
Questions and Answers
Algorithm - Answer-A series of steps to do something (ex. recipe)
Problem Solving Strategies - Answer-When you design an algorithm, you need to know
what to solve and how to approach the problem
Ask Questions - Answer-About the data, the process, the output
Look for familiar things - Answer-Certain situations arise again
Solve by analogy - Answer--look for similarities
-try to compare problem with what you already know
Use means-end analysis - Answer-find out what program needs (input), and what is
going to be produced (output)
Divide and Conquer - Answer-Break up large problem into smaller units
Building Block Approach - Answer-solve smaller pieces of the problem an break down
overarching picture
Merge Solutions - Answer-Use solutions from other problems to get new
Overcome mental block - Answer-rewriting problem in own words
Computer Programming - Answer-Telling the computer how to solve a problem (ex.
calculate, develop)
Phases of Programming life cycle - Answer-*must be done in order*
1. Problem solving
2. Implementation: test
3. Maintenance
Problem Solving Stage - Answer-ADV
-Analyze
-Develop
-Verify
Implementation: Test - Answer-(Coding Phase)
-Code program
-test it
-deBUG: DISSECT code and find error
, Maintentance - Answer-Maintain code
Class vs. Object - Answer-Class- blueprint for what is being created
Object- instance, what you are referring to
Program - Answer-An algorithm written for a computer that defines classes of objects
and puts them in position to solve problem
Programming Language - Answer-a language with strict grammatical rules, symbols,
and special words used to construct a program
Code - Answer-The product of translating instructions of an algorithm into a
programming language
Object-Oriented Programming (OOP) - Answer--Style of programming
-You use a programming language to define how data will look and what the program
will do with the data
(ex. dealership, student body)
Data Type - Answer-Telling the computer using programming language of what the data
will be
(ex. int x=20 | int=data type)
Object - Answer--Instance
-a collection of data values and associated options
Class - Answer--Blueprint
-a description of one or more like objects
Instantiation - Answer-The process of creating an object based on the description
provided by a class
Package - Answer-A container that has classes of your program
(ex. folder that contains documents of programs)
Compiler - Answer-a computer program that translates program into machine language
(0 & 1)
Java Virtual Machine (JVM) - Answer--machine that runs java byte code
-how to speak java
-implemented in software rather than hardware
Steps to compile and run a java program - Answer--Tell the computer to execute the
program
-The basic 'shell'
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller lectknancy. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $12.49. You're not tied to anything after your purchase.