2.5.1 The benefits and drawbacks of using pre-written code Flashcards

1
Q

Define:

Pre-written code

A

Code that already exists when developing new software either within your own organisation or from an external source

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

State:

3 ways that code can be reused

A
  • Using third party libraries
  • Open-sourced frameworks
  • Repurposing code that has been used/developed/written internally
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

State:

2 benefits of using pre-written code

A
  • Shorter development time - reduces time needed to develop a solution (python package index) because reduces time planning and writing code
  • Improved end product - add greater functionality with pre-written code
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

State:

3 drawbacks of using pre-written code

A
  • Security risks - code could have security vulnerabilities if not tested properly
  • Lack of control - if changes are made to codfe they may have an impact on program being developed because you do not own it
  • Naming conventions - Conventions used within the code and names can be different to a programming language that software is being developed in
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Define:

Open Source

A

Software where the copyright holder grants users the right to use, edit and distribute the source code

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Define:

Injection Flaws

A

Allow attackers to relay malicious code through an application to another system

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Define:

Cross-site scripting (XSS)

A

Type of injection, where attackers inject client side scripts so that other users can view them and to bypass access controls; found on websites or web apps that accept end-user input

How well did you know this?
1
Not at all
2
3
4
5
Perfectly