415 Midterm Flashcards Preview

CMPS 415 midterm > 415 Midterm > Flashcards

Flashcards in 415 Midterm Deck (28)
Loading flashcards...
1

What makes and Enterprise System

Organization
Process on complex data
Stores complex data
Robust
Scalable
API
Persistent Data
Concurrent User

2

What are layers of architecture

Presentation
Domain (Business Logic)
Data/ Data Access

3

List some reasons to use constants

A way of organizing the data access layer.
It avoids literal strings
It effects everything in every place and in every area.
Makes it easier and faster
Re factors easily

4

List some the 3 main layers.

Software Layer
Data Access Layer

5

What is this line of code doing?

public const string Identity = "REQ_ETY_SCH_I";

Declaring a constant

6

The following are examples of what:
Organization, Abstraction(Eliminate Dependency between layer)

Advantages of Layers

7

This 3 layers of architecture where, Interactions with users come in (Application layer)

Presentation

8

What is the single responsibility principle.

Every class should have a responsibility over a single part of the functionality provided by the software, and that responsibility should be entirely encapsulated by the class.

9

What are some examples of the 3 main layers

Breaks down system into coherent pieces
Way to design code to provide for sensible robust systems
Provides Organization
flexibility to code

10

What types of examples are the following:
Payroll, Shipping, Customer, relationship management system.

Enterprise

11

What are some examples of the single responsibility principle?

Querying data and Hydrating it

12

What is a Design Patter?

A general reusable solution to a commonly occurring problem within a given context in software design. A design pattern is not a finished design that can be transformed directly into source or machine code.

13

What is the Dependency Inversion Principle

This refers to a specific form of decoupling software modules.

14

What is a Singleton Design Pattern?

is implemented by creating a class with a method that creates a new instance of the class if one does not exist. If an instance already exists, it simply returns a reference to that object. To make sure that the object cannot be instantiated any other way, the constructor is made private.

15

Implement a Singleton pattern

private static SqlServerDAO Instance { get; set;}

private SQLServerDAO();

public static SQLServerDAO GetInstance()

{

}

16

What are Creational patterns?

Design patterns that deal with object creation mechanisms, trying to create objects in a manner suitable to the situation. The basic form of object creation could result in design problems or in added complexity to the design.

17

What does VO stand for? and What is it used for?

Value Objects

It has a value you can compare but it is not based on identity

18

What is a Factory Design Pattern?

A creational pattern which uses factory methods to deal with the problem of creating objects without specifying the exact class of object that will be created.

19

What is a DTO and What is it used for?

Data Transfer Objects

Objects that carries data between processes.

20

What is an Entity Object?

It encapsulates the business policy and data.

21

Define Test Driven Developement

You write your test that is going to fail and then you are testing for what new improvements or functions you are trying to add. So you know what you want the result of this method to be.

22

How to implement a TDD

..CusReqDAO
{
GetById(Int Id)
{
// IDatabase db;
db.Select(...);
}
}

23

Describe Unit Testing

Smallest Unit Key thing is isolation, it is isolated because you can only test the functionality of a particular software, you have no outside interference.

24

Implement an Entity Object

public int id {get; set;}
private int id;

public int get Id()
{
return Id;
}

public void setId(int id)
{
this.id = id;
}

25

What are some advantages of Unit testing.

It helps identify a large number of defects early in development.
It also facilitates maintenance of changes.
It also becomes living documentation
It also aids in OOD

26

Define Dependency injection

a software design pattern that deals with how components get a hold of their dependencies.

27

What are some disadvantages of unit testing

Extra time to code.
Limited by your scenarios or test cases.

28

What are some advantages of SRP in Unit Testing

You increase the testability of your design by decreasing the number of tests you have to write that test the same functionality on different objects, and you also typically end up with smaller pieces of functionality that are easier to test in isolation.