Vocabulary Memory Cards--Sample EasyCode Foundations Vocabulary Memory Cards--Sample
computer program
--A set of instructions which are simple tasks provided to the computer
statement
--An element which expresses some action to be carried out The instructions in a computer program are statements
functions
-- The set of actions that an object can do
object
--Everything in the scene we can interact with Ex: bush, bridge, banana, turtle
argument
-- The input that we add to the function (the action)
syntax
-- The rules that are used to write and read programming languages
simple loop
--A sequence of instructions that repeats a specified number of times
variable
-- stores data for use when needed x= 20 identifier (can be any letter or word) value
distanceTo
--Function used with an object --Function used with an object. Computer gives “return value” (computes distance) Ex: distanceTo banana Can be combined with variables Ex: x = distanceTo banana step x
array
-- A group of objects, which share a common name and are usually of the same type.
element
--Each object in an array
index
--The number used to tell which element in an array. Starts with 0.
array indexing
If there are 5 bananas on the screen the first banana is: bananas[0] name of the array Index will be 0,1,2,3 or 4 brackets
for loop
--repeating an action to all the elements in an array individually Has a loop variable and array From challenge #56: The 6 bananas belong to an array called bananas. for (this tells the computer that there is a "for" loop here) b (definition of the loop variable) in (part of the "for" loop) bananas (the name of the array) turnTo b (b is the loop variable that refers to an object in the array) step distanceTo b (b is the loop variable that refers to an object in the array) for b in bananas turnTo b step distanceTo b
iteration
--the process of performing a function to every object in a collection If there is a collection of turtles, you would say that you iterate over the collection of turtles. Ex: for t in turtles t.step 10
nested loops
--a loop inside of a loop When using a nested for loop, the inner loop is fully executed over and over. For every element of the outer loop, the inner loop is executed from start to end, then the whole process repeats for the next element in the other loop, and so on. Challenge 70
Where to find more Vocabulary Words This card set is a sample. To find additional vocabulary words, look in the Details tab of the challenge.