Key Area 1.3 - Reading and Interpreting Code Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is UML

A

Unified Modelling Language

The development of an object orientated software such as activity diagrams or case diagrams

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

What is Pseudocode

A

A code like description of the stages involved in a task

It is closer to English than a programming language and helps the programmer to write out and understand code

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

List ways to improve the readability of code

A

Meaningful variable names
Internal commentary
Indentation
White spaces between lines

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

What is a fixed loop

A

When you have a piece of code that the computer will repeat a set number of times

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

What is a conditional statement

A

A way of making a choice in programming language

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

What is a conditional loop

A

A loop which will allow you to set a condition to a low the program to leave the loop

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

What are logical operators

A

AND
OR
NOT

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

List some testing ranges

A

Normal - In range
Extreme - Boundary
Exceptional - Out of Range

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

What is a syntax error

A

An error resulting from breaking the rules of the language such as missing an end if statement

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

What is an execution error

A

An error that prevents the code from running such as a variable which has not been declared

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

What is a logic error

A

An error that produces incorrect results but does not stop the program from running such as a badly written complex condition

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

Name the 2 software development environments

A

Graphical and text based

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

List the difference in data types between scratch and Visual Basic

A

Scratch has no need to declare variables
Scratch does not have Boolean
Scratch contains arrays of string and numbers only
VB has a complete range of variables and arrays hold any type of data

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

List the differences in constructs between scratch and Visual Basic

A

Scratch has a wait timer

VB has If Then Else and logical operators

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

List the differences in editing between scratch and Visual Basic

A

Scratch prevents syntax errors
VB has more control over the editing process
VB has an error feedback

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

What type of translation is used during scratch and Visual Basic

A

Compiled

17
Q

What is graphical design notation

A

Structured diagrams such as flow charts and block diagrams the show how the various sub tasks break down
These are very clear