What is an array?
It is a special variable having one name, but storing a list of data items, with each item being directly accessible.
What is a vector?
Used by some languages, which is similar to array
What is an element?
It is the name of each item in an array.
What is an “index”?
This is the location number of each element within an array.
What is the meaning of swapping two variables?
This means y’s values assigned to x’ values, and vice versa.
What is a function?
It is a named list of statements
What is a function definition?
It contains details of the function, that can be stored for later use, and won’t be ran unless you call it. -Parameters can be added here.//
It consists of the new function’s name and a block of statements. The function’s name can be any valid identifier.
What is a function call?
It is an invocation of a function’s name, causing the function’s statements to execute.
What is a local variable?
It is a variable declared in a function, which is then accessible only within that function.
Define “parameter”.
It is a function input specified in a function definition. This is like a variable declaration.
Ex: A pizza area function might have diameter as an input.
Define “argument”.
It is a value provided to a function’s parameter during a function call. Ex: PrintPizzaArea(12.0)
What is a scalar variable?
It stores only one item
Define modular development.
It is the process of dividing a program into separate modules that can be developed and tested separately and then integrated into a single program.
Define incremental development.
It is a process in which a programmer writes and tests a few statements, then writes and tests a small amount more, and so on.
Define function stub.
It is a function definition whose statements have not yet been written.