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

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;

29 Cards in this Set

  • Front
  • Back

group of statements within a program that performs a specific task

function

program where each task in the program is its own function

modularized program

benefits of modularized design?

faster coding


team work


code reuse


simpler code


better testing/debugging

what makes up the header of a function?

returnType functionName(parameters){


}

instructions inside of a function

block

the part of the program in which a variable may be accessed

the scope of a variable

returning to the code where a function was called

function return

variables declared inside a function

local variables

piece of data that is sent to a function

argument

variable assigned the value of an argument when the function is called

parameter

what is the scope of a parameter?

the function in which the parameter is used

what is pass by value?

the changing the value of a parameter does not affect the value of the argument

data type that the function returns

return type

this specifies what a function does

function definition

this variable is created with an assignment statement outside of all functions

global variables

how do you declare a global constant?

final int VALUE_X = 42;

this is a technique used to break an algorithm into functions

top-down design / divide-and-conquer

this shows a relationship between functions

hierarchy chart

this describes the input, processes, and output of a function

IPO chart

_________ structure makes a computer repeat included code as is necessary

repetition

one execution of a body of a loop

iteration

what are the two types of loops? give an example of each

condition-controlled loops (while)


count-controlled loops (for)

this kind of loop tests a condition before iterating

pretest loop

this kind of loop has an error which causes it to never stop

infinite loop

this kind of loop iterates a specific # of times

count-controlled loop

the variable which is the target of the assignment at the beginning of each iteration

target variable

give an example of an augmented assignment operators

++, --, +=, -=, *=, /=

a loop contained within another loop

nested loop

What are the eight steps in program development?

1. Define the problem.


2. Outline a solution.


3. Translate solution into an algorithm.


4. Test algorithm logic.


5. Algorithm -> code.


6. Correct syntax errors.


7. Run/test code.


8. Correct logic errors.