Shared Flashcard Set

Details

CS-2120 Exam 2
FlashCards for the second exam
15
Computer Science
Undergraduate 2
11/09/2011

Additional Computer Science Flashcards

 


 

Cards

Term
Program Verification
Definition

Is a techinique for formally proving the correctness of a program.

You develop the correctness proof of the program as you are wirting the code.

Give input I the output should be "o"

Term
Empirical Testing
Definition

Carefully crafted tests cases, if the program works correctly for all of the cases,

Three Steps:Unit Testing, Integretion Testing, Black Box Testing

Term
Unit Testing
Definition

 As we finish each program unit, we thoroughly test it with chosen set of data.

    -Flow Path

    -Clear Box Testing

Term
Flow Path
Definition

A unique execution sequence throuhg a program unit

Term
Clear Box Testing
Definition
Means we can look inside the code to decide what test cases are needed.
Term
Integration Testing
Definition
You test the correctness of a group of routines working together
Term
Black Box Testing
Definition
Rather than selecting test data on the basis of the structure, we place the program into a realistic environment and then run it
Term
Inheritance of Implementation
Definition

-Each subclass may override a method

-Superclass specifies what and how

-Models an IS-A Relationship

-Specialization and Extension

 

Term

Inheritance of Interface

Definition

-Interface refers to what operations can be performed on an object.

-Used just to define a set of operations that a subclass must implement

Term
Specification
Definition

-the superclass defines the behavior that is implemented in the subclass, but not in the superclass.

-The subclass inherits the specification of its superclass's behavior

-What the subclass must do, but not how to do it

Term
Specialization
Definition

The subclass is a specialized form of the superclass, but satisfies the specification of the parent class.

-is a relationship

-Subclass is more specialized

-both behavior and implementation

Term
Limitation
Definition
A subclass removes a behavior
Term
Combination
Definition
Subclass exhibits more than one
Term
InterFace vs Abstract Class
Definition

Abstract: there are fields that all subclasses will need

-At least one method can be given an implementation that some subclasses can inherit.

 

Interface: a small number of methods define a role many different kinds of objects can play

-when the role may be mixed in with other roles

Supporting users have an ad free experience!