Implementation and Testing

29 flashcardsby —Griffith—
Study these flashcardsFree · spaced repetition · iPhone, Android, Mac & web

All cards

1
What is the purpose of coding standards?
To ensure code performs well, is easy to add to, maintain, debug, and is written in a consistent style across a project.
2
Why are coding standards needed?
They avoid developers coding in their own style, provide consistency, improve readability, simplify maintenance, and enable company-wide standardisation.
3
What does KISS stand for in programming principles?
Keep It Short and Simple.
4
What does DRY stand for in programming principles?
Don’t Repeat Yourself.
5
What is the goal of abstraction in programming?
Each significant piece of functionality should be implemented in just one place in the source code.
6
What does the Open/Closed Principle state?
Software entities should be open for extension but closed for modification.
7
What is the Single Responsibility Principle?
A code component should perform a single, well-defined task.
8
What does minimizing coupling mean?
Reducing dependencies between code sections and limiting use of shared variables.
9
What does maximizing cohesion mean?
Placing code with similar functionality within the same component.
10
What is the rule for abbreviations in naming conventions?
No abbreviations should be used.
11
What kind of names should developers use?
Meaningful, intention-revealing names.
12
How should variable names be written?
All lowercase with words separated by underscores, descriptive but concise.
13
What are the standard loop indices?
i, j for nested loops.
14
What are code smells?
Indicators of poor design that make code harder to maintain.
15
Give examples of code smells.
Duplicated code, large classes, long methods, long parameter lists.
16
What is refactoring?
Improving software’s internal structure safely without changing behaviour or external interfaces.
17
What are the benefits of refactoring?
More readable and simplified code, easier to change, reduced redundancy, guidance on continuous improvement.
18
What is the purpose of software testing?
To exercise a program with the intent of finding errors before delivery to the end user.
19
What is desk checking?
Reviewing program code to spot logic errors.
20
What is a code review?
A group review by 3–5 IT staff to identify errors, apply quality standards, and verify design requirements.
21
What is unit testing?
Testing an individual program or module to find execution and logic errors.
22
Who usually creates test data for unit testing?
Someone other than the programmer.
23
What is integration testing?
Testing two or more programs that depend on each other to ensure proper collaboration.
24
What is system testing?
Verifying all system components work together and handle real processing situations correctly.
25
What does system testing confirm?
That the information system can handle predicted data volumes efficiently.
26
What is a test plan?
A guide for testing software, usually prepared before software is built.
27
What kind of data does a test plan use?
Dummy data (sample data).
28
Who prepares a test plan?
Software testers.
29
What are some example fields in a test plan?
Test Case, Test Type, Test Steps, Expected Result, Actual Result, Remarks.
Study all 29 cards for free