2.5 Flashcards

(17 cards)

1
Q

High level
Adv and disadvantages

A

Python
Closer to English so easier to code and debug and understand
One to many relationship with machine code
Not processor specific so the same code works for many machines
Needs to be translated to machine code to be executed so slower to execute and less efficient

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

Low level
Adv and disadvantages

A

Machine code (binary)
Understood and executed by processor
Specific to processor - only written for one machine and can’t work on others
Assembly code (ADD, SUB) - easier to code than machine code
One to one relationship with machine code
Difficult to code and understand
Used for device drivers and embedded systems
Efficient and fast to execute as in control of the CPU

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

What language does the computer only understand

A

Machine code

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

Compiler

A

High level code directly translated to machine code to create an executable file

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

Interpreter

A

Translates and runs 1 instruction at a time, need every time to run the program, returns first error then stops (good for debugging)
Program runs slow as translating at the same time

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

What is an IDE

A

Integrated development environment - software used to help developers create code

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

Compiler

A

Translates all at the same time into one executable file, returns a list of errors once compiling is complete
It takes a long time but after its very quick

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

Features of an IDE

A

Several helpful features
Code editor - where you write code
Error diagnostic and debugging tools
Colour coded code to identify types of code
Auto-complete/correction/indentation
Breakpoints to stop code at certain points
Translator - allows source code to be executed

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

Structure diagrams pros

A

Show smaller tasks of larger problem
Easier to code
Multiple people code at one time as each task is indépendant
Easy to test as each task tested individually
Each task fixed or updated without affecting rest
Resume sub programs in future

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

4 ways to maintain a program and why

A

Easy to understand and change
Comments - explain key features of program
Indentation - separate statements to follow program easier
Variables - to keep track
Sub programs - easy to see parts and how they work to understand overall program

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

What is defensive design

A

To protect programs
Anticipate how users misuse programs and prevent it
Ensure code is well maintained
Reduce errors by testing

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

5 in put validation and what is it

A

Check if data meets a criteria before passing into program
Range check - data in specific range
Presence check - data has actually been entered
Format check - data has correct format
Look up table - data is checked against table of acceptable values
Length check - data is correct length

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

What is authentication

A

Confirm identity before allowing into network
Password and username
Too much puts users off

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

How to increase security via authentication

A

Strong passwords and change regularly
Limit number of authentication attempts before locking account
Ask random selection of characters from password

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

Two types of testing

A

Iterative - tested while developed - identifies smaller errors to prevent larger errors
Final testing - tested at end of development - so don’t have errors interacting with each other

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

Test plan

A

What your going to test and how
Anticipates potential issues

17
Q

What are the four types of data’s for test plans

A

Normal data - what user is likely to input
Boundary data - values at the limit of what the program handles
Invalid data- inputs correct data type that should be rejected
Erroneous data - inputs incorrect data type that should be rejected