English 101 - CS140 Introduction to Programming Review...

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

CS140 Introduction to ProgrammingReview QuestionsPlease pick onlyONE questionfor each thread. Use the question for theSUBJECTline for your thread.Only FIRST postings with CORRECT answersto questions earn credits unless specified otherwise.Incorrect or invalid postings will be deleted by the Instructor.Passing Data among Functions1.When a function accepts multiple arguments, does it matter what order the arguments are passedin? Why or why not?2.Explain types of parameters – what they are, when they are used and how they are used.3.How do you return a value from a function? How do you return more than one value from afunction?4.Examine the following function header, then write an example call to the function.void showValue(int quantity)5.The following statement calls a function named half. The half fucntion returns a value that is halfthat of the argument. Write the function.result = half(number);6.A program contains the following function.int cube(int num){return num*num*num;}

Upload your study docs or become a

Course Hero member to access this document

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 1 / Exercise 3
JavaScript: The Web Warrior Series
Vodnik
Expert Verified

Upload your study docs or become a

Course Hero member to access this document

End of preview. Want to read all 3 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Fall
Professor
Jacob Smith
Tags
English, Subroutine, Return statement
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 1 / Exercise 3
JavaScript: The Web Warrior Series
Vodnik
Expert Verified

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture