Autumn Test Flashcards
What is the difference between a parameter and an argument?
Parameter = A parameter represents a value that the procedure expects you to pass when you call it. Argument = An argument represents the value that you pass to a procedure parameter when you call the procedure.
What is binary?
Base 2 number system which represents on/off or voltage/no voltage
What is a bit?
A binary digit, either 1 or 0
What is a byte?
A byte is 8 bits
What is hexadecimal or hex?
A number system based on 16s
How do you convert Denary to Hex?
Divide denary number by 16 until it can not be divided anymore
Why is hexadecimal used?
Hexadecimal is used to simplify binary number. It easier fro the human brain to remember ACE than 1010 1100 1110
Also it is easier to to convert binary to hexadecimal than decimal to hexadecimal
What is ASCII?
ASCII is code that gives each letter of the alphabet a deanery digit so that it can be understood by computers
It can go up to 128 characters
Most computers use ASCII to transfer data from one computer to another
What is a high level language?
A coding language that allow the user not to communicate with computers using binary instead the user uses a language which is similar to english
What is an example of a high level language?
Python
What is an example of machine code?
Binary
What is logic?
The study of the principles of reasoning. In computer science those principles relate to how you communicate with computers
What are the three basic logic structures in all programming languages?
Sequence
Selection
Iteration
What is the definition of sequence?
Running code top to bottom without skipping anything
What is the definition of selection?
A question is asked which produces a Boolean value (either true or false) and the action that follows depends on the answer
What is the definition of iteration?
This means looping or executing the same set of instruction a given number of times or until a specified result is obtained
What is a variable?
A variable points to a memory location containing a value (some data)