• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/7

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

7 Cards in this Set

  • Front
  • Back

Parameter Type

This is specified at the time the parameter is created, and indicates what kind of value to expect when the method is called - for example, will it be a character in the world or a numerical value?

Default Value

If a parameter is added to an existing method, then Alice automatically updates every call to the method to include a parameter value. Alice uses a default or standard value for this - for example, for the numeric type, Alice uses the number one.

Parameter

specified in a method, this is the name given to a value that is supplied when the method is called. The name can be used in the method code to refer to, or access, the value supplied.

Method Call

similar to the method calls we've seen before, only now we need to supply values if the method has specified that it uses parameters.

"pass values to" a method that "takes" parameters

so far on this page, we have said that "values are supplied when the method is called", if the method specifies that it uses parameters. The computer speak for this is as follows. A method that specifies that it uses parameters is a "method that takes parameters", and when calling such a method, we say that we "pass values to the method".

Method

A collection of instructions that naturally belong together to do some thing/task (e.g., Freak Out).

Reus

Making use of work done earlier to create code to solve a task. Achieved in two ways... (1) by putting code for a task that is performed more than once into a method, and then making multiple calls to that method prevents the need for the code to appear more than once. And (2) by copying a section of code or a method from one program to another. The code is copied, yes, but the effort to create the code is 'reused' in the second program.