Solved

The Following Function Has ____

Question 27

Multiple Choice

The following function has ____.
Function Numeric average()
// Declare variables
Declare Numeric inputNum // number entered
Declare Numeric quantity // numbers input
Declare Numeric total = 0 // accumulated total
Declare Numeric index // loop variable
Declare Numeric avg // avg of numbers

// Ask user how many numbers to input
Display "How many numbers will you input? "
Input quantity

// Ask user how many numbers to input
Display "How many numbers will you input? "
Input quantity

// Compute and return average, end function
Avg = total / quantity
Return avg
End Function


A) strong cohesion
B) high coupling
C) weak cohesion
D) strong vulnerability

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions