Passing Arrays by Value and by Reference...
Passing_Arrays_by_Value_and_by_Reference.docx-Passing Arrays by Value and by
Showing 1-2 out of 2
Passing Arrays by Value and by Reference.docx-Pass...
Passing_Arrays_by_Value_and_by_Reference.docx-Passing Arrays by Value and by
Passing Arrays by Value and by Refe...
Passing_Arrays_by_Value_and_by_Reference.docx-Passing Arrays by Value and by
Page 1
Passing Arrays by Value and by
Reference
1. Passing a reference type by value is done to protect:
a) the original object from being modified
b) the reference itself from being modified
c) data outside the bounds of an array
d) All of the above.
Answer:
b
2. What is the method header for passing in the variable that holds a reference to an
array of
String
s?
a)
method_name
( ref String[] array)
b)
method_name
( String[] ref array)
c)
method_name
( String[] )
d) None of the above.
Answer:
a


Page 2
Variable-Length Argument Lists
1. What is the keyword associated with variablelength argument lists?
a)
arg
b)
params
c)
var
d)
vla
Answer:
b
2. What kinds of arrays can variablelength argument lists work with?
a) onedimensional arrays
b) multidimensional arrays
c) All of the above
d) None of the above
Answer:
a


Ace your assessments! Get Better Grades
Browse thousands of Study Materials & Solutions from your Favorite Schools
Florida Agricultural and ...
Florida_Agricultural_and_Mechanical_University
School:
Introduction_to_C_Sharp_Syntax
Course:
Great resource for chem class. Had all the past labs and assignments
Leland P.
Santa Clara University
Introducing Study Plan
Using AI Tools to Help you understand and remember your course concepts better and faster than any other resource.
Find the best videos to learn every concept in that course from Youtube and Tiktok without searching.
Save All Relavent Videos & Materials and access anytime and anywhere
Prepare Smart and Guarantee better grades

Students also viewed documents