• 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/5

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;

5 Cards in this Set

  • Front
  • Back
What is a function ?
A collection of statements that performs a specific task.
What are the benefits of writing functions ?
1. Simplify programming by allowing a specific task to be performed several places in a program as needed. Also known as code reuse.
What is a function call ?
A statement that causes a function to execute.
What is a function definition ?
Contains the statements that make up the function.
What are the parts of a function definition ?
1. Return type: the data type of the value that is sent from a function to execute it.

2. Function Name: A descriptive name of a function.

3. Parameter List: list of variables that can hold values being passed to the function.

4. Body: a set of statements that perform a function's operation, enclosed in set of brackets.