Answer the following statements true (T) or false (F)

1. When calling a method and passing a variable as an argument, always write the data type and the variable name of the argument variable in the method call.
2. You can pass string literals as arguments to methods containing string parameters.
3. You can pass int arguments into int parameters, but you cannot pass double or decimal arguments into int parameters.
4. A parameter variable can be accessed by any statement outside the method in which the parameter variable is declared.

1. false
2. true
3. true
4. false

Computer Science & Information Technology

You might also like to view...

Which feature can you use to choose adjustments from a gallery?

A) View B) Animations C) Presets D) Add-Ins

Computer Science & Information Technology

? In the figure above, the paragraphs pointed to by the red arrows are formatted the same way because they _____ .

A. are linked B. share anid C. belong to the sameclass D. have the same href value

Computer Science & Information Technology