Programming - Higgins Flashcards

1
Q

Iteration

A

Repeating an action / Repetition

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

Addition

A

+

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

Subtraction

A

-

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

Multiplication

A

*

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

Division

A

/

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

Linear Search

A

Linear search is the simplest ‘searching’

It starts at the first element in the list and check each single one until its found (e.g i ask someone for a number between 1-100 and they came up with 53/ linear search would go with “1,2,3,4,5,6…”)

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

Subroutines

A

Decomposing a complex programming tasks in ,much simpler steps
Easier to spot errors
Allows to decompose the problem

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

Bubble Sort

A

+Simple algorithm that can easily be implemented.
+Efficient way to check if a list is already in order.
+Doesn’t use much memory

-Inefficient way to sort a list. Worst case scenario would involve (n(n-1))/2
-Slow for very large list of items.

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

Global Variable

A

Variables that are created outside of a function, which means it can be used by everyone

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

Function

A

A function is a a command that can be repeatable

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

Maintain Code

A

It is crucial that programmers write code that is easy to read.
The code should have comments to explain why something was done a certain way or a difficult piece of logic.

It takes longer to correct a bug or make an update to code that is badly written
Readability can be considered as the ability of allowing code to be quickly, easily and clearly understood by someone new.

Features of clean code:

Easy to read

Meaningful names

Efficient code

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

Matplotlib

A

Matplotlib is a comprehensive library for creating static, animated, and interactive visualizations in Python.

Matplotlib makes easy things easy and hard things possible.

Create publication quality plots. Make interactive figures that can zoom, pan, update.

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

Testing

A

To spot errors/bugs
Developers write unit tests for their code to make sure that the code works correctly. This helps to detect and protect against bugs in the future.

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

Unit Testing

A

Unit Testing is a level of software testing where individual units/ components of a software are tested.

The purpose is to validate that each unit of the software performs as designed.

Unit testing makes your code future-proof since you anticipate the cases where your code could potentially fail or produce a bug.

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

Product Testing

A

During the testing phrase, testing groups will employ several methods to ensure the product operates as expected.

The methods for product testing might vary depending on the type of producing you are building, but the concepts remain very similar.

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

Interface Testing

A

Interface testing is performed to evaluate whether systems or components pass data and control correctly to one another.

Interface testing is to verify if all the interactions between the modules are working properly and errors are handled appropriately.

17
Q

Data Testing

A

Data testing is a type of testing that checks the schema, tables, triggers etc. of a database.

Data testing also checks the integrity and consistency. It may involve creating complex queries to load/stress test the database and check it responsiveness.

18
Q

Hardware Testing

A

Testing is needed to ensure that every component of a system is operating as it should and the system is performing exactly in accordance with the requirements.