Weaknesses 2.1 - 2.5 Flashcards

(21 cards)

1
Q

Symbol for MOD

A

%

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

Symbol for DIV

A

/ /

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

Casting?

A

Changing one data type into another

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

Types of Input Validation

A

Range Check - Checks data is within a certain range.
Type Check - Checks data is a certain data type.
Format Check - Checks data is entered in a certain way.
Presence Check - Checks that data has actually been entered and not left blank.
Lookup Table - A table of acceptable entries, also known as a list.
Length Check - Checks the length of the input is within a certain amount.

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

Iterative Testing

A

The programmer develops a module, tests it and repeats this process until the module works as expected.

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

Final Testing

A

This testing takes place once all modules have been individually tested to ensure the whole program works as originally expected.

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

Details of High Level Languages

A

Easier to understand than Low level Language
Similar to human language
Must be translated into machine code for CPUs as they be executed directly
Fewer errors

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

Details of Low Level Languages

A

Two types - Machine Code, Assembly Language
Hard to read and understand
Machine code can be directly processed and executed
Executes faster

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

Details of Compiler

A

Executes program all at once/ Translates all source code at once
Faster run programs- More efficient
Large complex programs
Shows all errors in the program at the end

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

Details of Interpreter

A

Translates code one line at time
Slower than compiler
Smaller, simpler programs
Encounters the error and then reports it to the user immediately and stops the program from running

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

Contents of IDE

A

Error Diagnostics
Syntax Highlighting
Line Numbers
Code Editor

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

What : equal to

A

Then

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

How to add to a list?

A

.append

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

How to delete from list?

A

.pop

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

How to find length of a list

A

len
E.g length = len(dates)

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

How to sort a list?

17
Q

How to read, write and add to a file?

A

r , w , a
E.g (“customers.txt”,”r”)
(“customers.txt”,”w”)
(“customers.txt”,”a”)

18
Q

Maintainability

A

Comments - To understand the purpose of each line of code
Subprograms - To reuse code, Easier to test
Indentation - To Improve readability
Appropriate variable names - Ensuring the purpose of a variable is immediately understood
Using Constants - Keeps code consistent,Making it easier to read and debug

19
Q

Abstraction

A

Ignoring unnecessary information and focusing on important facts

20
Q

Declare an array

A

array names[4]

21
Q

Declare 2D array

A

array grid[3,5]