D 278 WGU SCRIPTING AND PROGRAMMING FOUNDATIONS FINAL PAPER EXAM
QUESTIONS ACCURATE ANSWERS FULL SOLUTION
Question:
Array
Answer:
A special variable having one name, but storing a list of data items with each item being directly
accessible (also called a Vector) Must be an integer type, cannot be floating-point
Question:
Element
Answer:
Each item in an array
Question:
Index
Answer:
Each elements location number within an array (the number in backets)
Question:
Swapping
Answer:
Means to assign two variables with each others value (ex. x=3 y=7 swap x=7 y=3) A common
method is to use a third variable ex. x=22 y=99 tempVal = x x=y y = tempVal x=99 y=22
, Question:
Function definition
Answer:
Consists of the new function's name and a block of statements. The function's name can be any valid
identifier
Question:
Local variable
Answer:
AA variable declared in a function, which is then accessible only within that function
Question:
Parameter
Answer:
A functions input specified in a function definition Ex. pizza area function might have diameter as a
parameter
Question:
Argument
Answer:
A value provided to a function's parameter during a function call.
Question:
Return variable
Answer:
What function returns (return value)
QUESTIONS ACCURATE ANSWERS FULL SOLUTION
Question:
Array
Answer:
A special variable having one name, but storing a list of data items with each item being directly
accessible (also called a Vector) Must be an integer type, cannot be floating-point
Question:
Element
Answer:
Each item in an array
Question:
Index
Answer:
Each elements location number within an array (the number in backets)
Question:
Swapping
Answer:
Means to assign two variables with each others value (ex. x=3 y=7 swap x=7 y=3) A common
method is to use a third variable ex. x=22 y=99 tempVal = x x=y y = tempVal x=99 y=22
, Question:
Function definition
Answer:
Consists of the new function's name and a block of statements. The function's name can be any valid
identifier
Question:
Local variable
Answer:
AA variable declared in a function, which is then accessible only within that function
Question:
Parameter
Answer:
A functions input specified in a function definition Ex. pizza area function might have diameter as a
parameter
Question:
Argument
Answer:
A value provided to a function's parameter during a function call.
Question:
Return variable
Answer:
What function returns (return value)