Computational constructs Flashcards
What is a software?
Software are programs and instructions which a computer system runs.
Name the types of software.
- System Software
- Applications (Aka Apps)
Describe system software and give an example.
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”.
Describe Applications and give an example.
Applications are programs which allow the user to perform specific tasks such as playing video games, watching videos and sending instant messages.
Why is it important to have software’s?
Without software, hardware’s may be entirely useless because it needs software so that it knows what to do.
What is it called to describe when you do calculations in coding?
Arithmetic Operators
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 = 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)
Describe the term “Concatenation”
It is when you join text strings together in a program to make a new or longer text string
Give an example of Concatenation in your selected language.
[Livecode]
- Put “Hello my name is” & “ Lewis” into …..
Describe the term “Sequence”
This means the order of codes that the program will execute.
Describe the term “Selection” and give an example of how to do it.
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]
Describe what “Logical Comparisons” is.
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.
Give examples of Logical Comparisons and explain what they do
> [Greater Than]
= [Greater Than OR Equal To]
Try to use logical comparisons with a IF statement using your selected language.
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
Identify “Logical Operators”
AND
OR
NOT