Software Design Exam 2 Study Guide

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/40

flashcard set

Earn XP

Description and Tags

Vocabulary flashcards covering topics from Lectures 4, 6–11 and labs, including CI/CD, OOP, iterators, SOLID principles, code smells, tuning, and testing.

41 Terms

1
New cards

Continuous Integration (CI)

A practice where developers merge code often, and each merge is verified by an automated build and automated tests to catch errors early.

2
New cards

Continuous Delivery (CD)

Continuous integration extended with an automated release mechanism that requires a manual button press to deploy.

3
New cards

Continuous Deployment

A deployment pipeline where every verified release is deployed automatically without any manual button press.

4
New cards

Code Coverage

A metric measuring how much code runs, mainly during testing, calculated as lines executed by teststotal lines×100\frac{\text{lines executed by tests}}{\text{total lines}} \times 100.

5
New cards

Interface

A description of what an object is (and isn't) and what it can do.

6
New cards

Encapsulation

The bundling of data and methods that operate on it, restricting direct access using private or protected visibility.

7
New cards

Abstraction

The principle of hiding complex implementation logic from the user, analogous to a TV remote.

8
New cards

Abstract Class

A class that contains at least one pure virtual method (such as virtual  void  sound()=0;virtual\;void\;sound() = 0;) and cannot be instantiated.

9
New cards

Iterator

An object that points to an element within a container to traverse its elements.

10
New cards

Bidirectional Iterator

An iterator capable of moving both forward and backward sequentially between neighbors, used in containers like list, set, and map.

11
New cards

Random Access Iterator

An iterator that can jump directly to any element in constant time, used in containers like vector and deque.

12
New cards

advance(it, n)

An iterator utility function that modifies the given iterator by moving it nn positions.

13
New cards

next(it, n)

An iterator function that returns a new iterator advanced by nn positions while leaving the original iterator unchanged.

14
New cards

prev(it, n)

An iterator function that returns a new iterator decremented by nn positions while leaving the original iterator unchanged.

15
New cards

Single Responsibility Principle (SRP)

The design principle stating that a class should have one single responsibility and one reason to change.

16
New cards

Open-Closed Principle (OCP)

The design principle stating that software entities should be open for extension but closed for modification.

17
New cards

Liskov Substitution Principle (LSP)

The design principle stating that subtypes must be substitutable for their base types without breaking program correctness.

18
New cards

Interface Segregation Principle (ISP)

The design principle stating that no client should be forced to depend on methods it does not use.

19
New cards

Dependency Inversion Principle (DIP)

The design principle stating that high-level modules should not depend on low-level modules; both should depend on abstractions.

20
New cards

Template Method Pattern

A behavioral design pattern that defines the skeleton of an algorithm in a base class, allowing subclasses to fill in specific steps.

21
New cards

Scope

The region or duration in code where a variable is known and can be referenced.

22
New cards

Span

The count of statements between consecutive references to a given variable.

23
New cards

Average Span

The arithmetic mean of all spans between consecutive references to a variable.

24
New cards

Defensive Programming

A coding methodology adopting 'garbage in, nothing out' to handle or prevent unexpected behavior from bad input using errors and exceptions.

25
New cards

Assertion

A mechanism used to verify conditions and restrict behavior for situations that should never occur, which are stripped when disabled (e.g., by NDEBUG).

26
New cards

Refactoring

The process of restructuring internal code to make it easier to understand and modify while leaving external behavior unchanged.

27
New cards

Code Tuning

The practice of optimizing working code to make it faster or more resource efficient.

28
New cards

Short-Circuit

A code tuning and logical evaluation technique where testing stops as soon as the final boolean result is known.

29
New cards

Loop Fission

A loop optimization technique in which a single loop is split into two or more separate loops.

30
New cards

Loop Fusion

A loop optimization technique in which multiple loops are merged into a single loop.

31
New cards

Loop Interchange

Swapping the nesting order of loops so memory is accessed sequentially according to its layout in memory.

32
New cards

Test-Driven Development (TDD)

A software development process where a failing test is written first, followed by minimal code to pass the test, followed by refactoring.

33
New cards

AAA Pattern

The structure of a unit test organized into Arrange (set up SUT), Act (invoke functionality), and Assert (verify results).

34
New cards

ASSERT_*

A fatal Google Test assertion macro that terminates the current test function immediately upon failure.

35
New cards

EXPECT_*

A non-fatal Google Test assertion macro that registers a failure but allows the test function to continue running.

36
New cards

F.I.R.S.T.

The five essential qualities of clean unit tests: Fast, Independent, Repeatable, Self-validating, and Timely.

37
New cards

Stub

A dummy component used in top-down integration testing to simulate a module that is called by the unit under test.

38
New cards

Driver

A testing harness used in bottom-up integration testing to simulate a caller that invokes the module under test.

39
New cards

Smoke Testing

Preliminary testing performed to determine whether a software build is stable enough to proceed with further, more detailed testing.

40
New cards

Regression Testing

Re-running existing test suites after changes are made to ensure that new code has not broken previously working functionality.

41
New cards

Intellectual Honesty

A professional quality of admitting mistakes, acknowledging the limits of one's expertise, understanding warnings, and providing realistic estimates.