Test Your Knowledge!

  1. For each of the following examples, write down the number of arguments in the first function to be called (in other words, the function whose name appears first). The function in each case is not real, but rather imagined for the purpose of this exercise:
  1. Assemble( 1, 4 )
  2. Switch()
  3. Extract( (12 / 3 ), 2 )
  4. Trav( 8, 4, 9 )
  5. Rep( Enter( 14, 3 ) )
  6. Charge( Plug( 3 ), 3 & “ units”, 4 + InputVal )
  7. Drop( 7 ) & Rep( 9 > QuoteLevel )
  8. Replace( OldNumber, Refresh(), "True" )
  9. Super() * ( 12 * 4 )
  1. Create an expression that models the flowchart below, including variable names appropriate to each stage of the flow chart. Attention should be paid to parentheses pairings and argument order:

 

<< Previous: Lesson Summary | Next: How Did You Do? >>