What are the arguments and parameters in the code snipped?

```
1. var shirt = "blue";
2. var pants = "gray";
3. var clothes = wearIt(shirt, pants);
4. function wearIt( x, y)
5. {
6. var myOutfit = "Today I will wear a " + pants + ?
" shirt and " + shirt + " pants.";
7. return myOutfit;
8. }
9. document.write(clothes);
```

a. arguments: x, y
parameters: shirt, pants
b. arguments: shirt, pants
parameters: x, y
c. arguments: shirt, x
parameters: pants, y
d. arguments: shirt, y
parameters: pants, x


b. arguments: shirt, pants
parameters: x, y

Computer Science & Information Technology

You might also like to view...

Given the following pseudocode variable declaration, which of the statements shown would display the last character in the string?

``` Declare String lunch = "Spaghetti is stringy!" ``` a. Display lunch[0] b. Display lunch[18] c. Display lunch[length(lunch)] d. Display lunch[length(lunch) - 1]

Computer Science & Information Technology

A(n) ____ list is used to display information in sequential order.

A. ordered B. numeric C. alphanumeric D. bulleted

Computer Science & Information Technology

Select the main reason for the initial development of the World Wide Web from the list below:

a. To allow companies to advertise over the Internet. b. To allow companies to conduct commerce over the Internet c. To allow communication between researchers and links between research papers d. none of the above

Computer Science & Information Technology

The smallest unit of digital data.

A. Byte B. Pixel C. Bit

Computer Science & Information Technology