Computational constructs Flashcards

1
Q

What is a software?

A

Software are programs and instructions which a computer system runs.

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

Name the types of software.

A
  • System Software

- Applications (Aka Apps)

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

Describe system software and give an example.

A

System Software is a type of program which is designed to control and manage a computer’s hardware

A example of system software is “Operating System”.

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

Describe Applications and give an example.

A

Applications are programs which allow the user to perform specific tasks such as playing video games, watching videos and sending instant messages.

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

Why is it important to have software’s?

A

Without software, hardware’s may be entirely useless because it needs software so that it knows what to do.

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

What is it called to describe when you do calculations in coding?

A

Arithmetic Operators

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

Describe what these lines of codes do, (A = 10, B = 5)

=A+B
=A-B
=A*B
=A/B
=A^B

(A = 7, B = 3)
=A%B

A

[A = 10, B = 5]

=A+B (Adds 10 to 5) 
=A-B (10 subtract 5) 
=A*B (10 x 5)
=A/B (10 divided by 5)
=A^B (10 to the power of 5)

[A = 7, B = 3]

=A%B (Calculates how much times the value of B goes into 7 and shows the remainder, result would give you 7/3 = 2r1)

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

Describe the term “Concatenation”

A

It is when you join text strings together in a program to make a new or longer text string

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

Give an example of Concatenation in your selected language.

A

[Livecode]

- Put “Hello my name is” & “ Lewis” into …..

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

Describe the term “Sequence”

A

This means the order of codes that the program will execute.

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

Describe the term “Selection” and give an example of how to do it.

A

Selection allows you to decide to do something depending on what is going on in the program.

One of the main methods to do this, is by using a [If statement]

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

Describe what “Logical Comparisons” is.

A

Using logical comparisons means you can check if a variable contains a value that meets, or doesn’t meet, a certain condition.

They are very useful when you are using conditional statements, such as if statements, and you need to check if variables meet different criteria.

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

Give examples of Logical Comparisons and explain what they do

A

> [Greater Than]

= [Greater Than OR Equal To]

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

Try to use logical comparisons with a IF statement using your selected language.

A

On Get_Age

Ask “Please enter your age”

Put it into “Age”

If Age = 18 THEN put “Please wait for the game to load”

END IF

End Get_Age

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

Identify “Logical Operators”

A

AND
OR
NOT

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

Describe “Repetition” in a program

Give an example

A

Repetition in a programs means that the lines of code will run multiple times according to a fixed/set number of times.

REPEAT with loop = 1 to 15

17
Q

Describe “ Iteration” in a program

Give an example

A

Iteration in a program means that the lines of code will keep repeating until a condition is met.

REPEAT until carnumber > 1

18
Q

Describe “Pre-defined functions”

A

Pre-defined functions are functions that are built into a language to allow you to do things