CIS 230

Ch. 5, Worksheet #4 Answers

The following VB statements call either a general function procedure (usually called "functions") or a general sub procedure (usually called "procedures"). Identify which type of procedure the statement calls by writing "function call" or "sub procedure call". In some exercises, VB naming conventions are followed although in some they are not. If there is not enough information within the statement to determine whether it is a function call or a procedure call or if there is a syntax error, then write "no answer".

  1. Call AddThem(intA) sub procedure call
  2. Call Average(A, B) sub procedure call
  3. SquareRoot intN sub procedure call
  4. OutputAmount curFirstNum, curSecondNum sub procedure call
  5. curFinal = Ave(A, B) function call
  6. lblOutput = Square(intSum) + 16 function call
  7. Call Dividing M, N, X sub procedure call
  8. txtOutput = A(X, Y) / B(intA) function call (2 actually)