PrepAway - Latest Free Exam Questions & Answers

What code should you use to complete the code?

You are employed as a developer at ABC.com. You make use of C# and ASP.NET for
development purposes.
You are planning to make use of an InitFields method that obtains two parameters of data type
double, but does not retrieve a value for the calling code.
You start writing code to define the InitFields method as shown below:
public void InitFields(double l, double w)
What code should you use to complete the code?

PrepAway - Latest Free Exam Questions & Answers

A.
{
retrieve length + width;
}

B.
{
length = l;
width = w;
}

C.
{
retrieve length – width;}

D.
{
retrieve length + width;
}

One Comment on “What code should you use to complete the code?


Leave a Reply