Welcome to the CSC Q&A, where you can get help (and share your knowledge) about computer science!

Practice MT2: Q7

+6 votes
What are the answers to question 7 about method calls & parameters?

(Perhaps explain why for anything tricky?)
asked Jan 25, 2015 in (Winter 14) by Forrest Stonedahl (3,438 points)

1 Answer

+2 votes
a. IS valid because the parameters are in the correct format. First a string, then a int, then a double.

b. IS NOT VALID because there are no parameters being passed into the method "whatsItDo"

c. IS NOT VALID. although it does pass 3 seperate parameters into the method.. they are not the right type. this is tricky because we may overlook what type the parameters are. but the order and type while passing is important.
answered Jan 25, 2015 by Ethan Blatti (100 points)
Looks good...
...