Unit 1: Introduction to Coding
command
The first element of code usually one word
loop
a control structure for specifying repetition
algorithm
a list of steps to complete a task.
nesting loop
a loop within a loop
function
a section of code that can be programmed to perform a specific task
program
a set of instructions given to a computer
sequence
a set of steps that follow one another in order.
decomposition
breaking a problem into smaller parts.
control structure
helps you to make sure your code is clear and easier for others to follow
statement
includes all other parts of a command
high-level code
is more beneficial for the user, it does take more time for the computer to understand it, which slows down the return of output, allows for more creativity and its language makes it easier to detect problems within the code.
runtime error
occur when a program with no syntax errors asks the computer to do something the computer is unable to do.
logic error
occurs when there is a design flaw in your program.
code
program written in a specific language
debugging
removing errors in the code that cause it to behave unexpectedly or not run at all.
repetition
repeats a piece of code multiple times in a row
syntax error
represent errors in the grammar of the programming language.
define
step 1 programming process
compiling
taking the entire program and converting it into binary code, which it then stored in a file.
design
taking the time to create a plan of action
binary code
the language that computers use to communicate; it is how they send, receive, and store information.
sequential
this is the structure the compiler or interpreter will automatically follow.
interpreting
using the code itself to perform actions, it does not need to be converted into binary code.
test
where you make sure your code delivers the expected outcome and that there are no syntax or run-time errors
low-level code
written in language that is extremely close to machine language. It is as close to binary code as you can get, without using ones and zeros.