Question

1. Properties can contain both ______________ accessors. a. get and value b. get and set c....

1.

Properties can contain both ______________ accessors.

a.

get and value

b.

get and set

c.

return and set

d.

return and value

2.

Identify the correct statement from the following:

a.

Properties cannot specify arbitrary parameters, although methods can.

b.

Read-only properties have both get and set accessors.

c.

Both properties and methods can be of type void.

3.

Identify the correct explanation of an indexer.

a.

Indexers are differentiated by name, and a class can declare two indexers with the same signature

b.

Indexers in C# may not have any parameters

c.

The ref and out parameter modifiers are not permitted in indexers

d.

None of the above

4.

A finally block is optional after a try block that does not have any corresponding

catch blocks.

True

False

5.

The __________ property of the DateTime structure retrieves your computer’s current date and time.

a.

CurrentTime

b.

DateTime

c.

Now

d.

Time

0 0
Add a comment Improve this question Transcribed image text
Answer #1
Question 1:
get and value

Question 2:
Properties cannot specify arbitrary parameters, although methods can.

Question 3:
Indexers are differentiated by name, and a class can declare two indexers with the same signature

Question 4:
True

Question 5:
Now
Add a comment
Know the answer?
Add Answer to:
1. Properties can contain both ______________ accessors. a. get and value b. get and set c....
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT