Ch09_Logic8e_Solutions - Programming Logic and Design, 8e...

This preview shows page 1 - 3 out of 46 pages.

Programming Logic and Design, 8eSolutions 9-Programming Logic and Design, 8th EditionChapter 9Review Questions1.Which of the following is true?a.A program can call one method at most.b.A method can contain one or more other methods.c.A program can contain a method that calls another method.d.All of the above are true.1
2.Which of the following must every method have?
3.Which of the following is most closely related to the concept oflocal?
4.Although the termsparameterandargumentare closely related, the difference isthatargumentrefers to _____.
5.A method’s interface is its _____.a.parameter listb.return typec.identifierd.all of the above
6.When you write the declaration for a method that can receive a parameter, whichof the following must be included in the method declaration?
We have textbook solutions for you!
/JavaScript-The-Web-Warrior-Series-6th-Edition-9781305078444-2709/
The document you are viewing contains questions related to this textbook.
Chapter 2 / Exercise 4
JavaScript: The Web Warrior Series
Vodnik
Expert Verified
Programming Logic and Design, 8eSolutions 9-d.two of these7.When you use a variable name in a method call, it _____ as the variable in themethod header.
8.Assume you have written a method with the headervoid myMethod(num a,string b). Which of the following is a correct method call?
9.Assume you have written a method with the headernumyourMethod(stringname, num code). The method’s type is _____.a.numb.stringc.numandstringd.void
10.Assume you have written a method with the headerstring myMethod(numscore, string grade). Also assume you have declared a numeric variablenamedtest. Which of the following is a correct method call?
11.The value used in a method’sreturnstatement must _____.
12.When a method receives a copy of the value stored in an argument used in themethod call, it means the variable was _____.

Upload your study docs or become a

Course Hero member to access this document

Upload your study docs or become a

Course Hero member to access this document

End of preview. Want to read all 46 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Fall
Professor
N/A
Tags
Subroutine, ISBN, NUM, Void type
We have textbook solutions for you!
The document you are viewing contains questions related to this textbook.
JavaScript: The Web Warrior Series
The document you are viewing contains questions related to this textbook.
Chapter 2 / Exercise 4
JavaScript: The Web Warrior Series
Vodnik
Expert Verified

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture