Software Design and Development (Implementation: Computational Constructs) Flashcards

1
Q

What are Variables?

A

Variables are what identifies where items are stored in the RAM. They hold data which will be used in the processes that the program will carry out

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

What must we always give each variable?

A

A name or identifier

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

What must we make sure about variable names?

A

That they are easy to understand

eg. “score” instead of “s”

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

How do we assign a value to a value while it is running?

A

SET variable TO variable+1

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

What are the five arithmetic operators and what are there symbols?

A
Add (a+b)
Subtract (a-b)
Multiply (a*b)
Divide (a/b)
Exponent (a^b)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is Concatenation?

A

Concatenation is when strings/characters are joined together

eg. SET displayName TO firstName & “ “ & surname
SEND displayName TO DISPLAY

This would send whichever was the first name and surname together with a space in the middle

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

What is used to make logical decisions in a program?

A

IF statements

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

How are the five logical constructs written and what are there names?

A
< (Less than)
> (More than)
<= (Less than or equal to)
>= (More than or equal to)
= (Equal to)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are the three logical operators?

A

AND
OR
NOT

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

What is the purpose of the AND function?

A

Both conditions must be met

eg. IF age>18 AND age<25
This example allows only data which is one of either 19, 20, 21, 22, 23, or 24

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

What is the purpose of the OR function?

A

Either (or both) conditions must be met

eg. IF drink=”cola” OR drink=”lemonade”
This means that the data could only be one of either “cola” or “lemonade”

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

What is the purpose of the NOT function?

A

Opposite of the condition must be met

eg. IF NOT (score=0)
This example allows data which is not 0, such as 5, to be accepted

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

What are the two kinds of loop?

A

Fixed Loop

Conditional Loop

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

What is the difference between Repetition and Iteration?

A

Repetition is when a program repeats certain lines of code several times whereas Iteration is when a program will repeat certain lines of code until an outcome is achieved

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

What are Fixed Loops?

A

Fixed Loops are when code is to be repeat a set amount of times (Repetition)

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

What are Conditional Loops?

A

Conditional Loops are when code will be repeated until a set outcome is achieved (Iteration)

17
Q

What are the two types of Conditional Loop?

A

Pre-Test

Post-Test