Exam 8: Advanced Method Concepts

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

If a default value is assigned to any variable in a method's parameter list, what must all parameters to the right of that parameter have?

(Multiple Choice)
4.9/5
(40)

What type of parameter requires you to indicate the parameter's type and name, and the method receives a copy of the value passed to it?

(Multiple Choice)
4.8/5
(28)

For the sake of convenience, what parameter type can be used when the variable to be passed does not have an assigned value at the time the method is called?

(Multiple Choice)
4.7/5
(36)

What are two options for writing a called method that results in altering a single value in the calling method?

(Essay)
4.8/5
(39)

A method's name and parameter list both constitute what component of the method?

(Multiple Choice)
4.8/5
(39)

What technique allows for the ability to write multiple versions of a method using the same method name?

(Multiple Choice)
4.8/5
(33)

How can you avoid throwing an exception during data conversion when a value cannot be converted to an appropriate type?

(Multiple Choice)
4.7/5
(40)

On occasion, you might want a method to be able to alter a value you pass to it.What type of parameter should you use in this case?

(Multiple Choice)
4.9/5
(34)

What are the four types of mandatory parameters supported by C#?

(Essay)
4.8/5
(44)

What are methods with identical names that have identical parameter lists but different return types?

(Multiple Choice)
4.8/5
(35)

What is another name for unnamed method arguments?

(Multiple Choice)
4.8/5
(38)

What type of arguments are ignored for betterness purposes on argument conversions?

(Multiple Choice)
4.7/5
(37)

What programming principle is violated when using named arguments and why is this important?

(Essay)
4.7/5
(30)

When you use a reference parameter, any passed variable must have an assigned value.

(True/False)
4.9/5
(38)

What type of parameter to a method will have a value automatically supplied if you do not explicitly send one as an argument?

(Multiple Choice)
4.9/5
(36)

Overloaded methods sharing the same identifier must have the same return type.

(True/False)
4.8/5
(38)

In C#, what can be done to ensure that a parameter for a method is required in every method call?

(Multiple Choice)
4.8/5
(39)

What type of parameters act as aliases, or pseudonyms, for the same memory location occupied by the original variable being passed to a method?

(Multiple Choice)
4.8/5
(40)

What statement regarding overloading methods is accurate?

(Multiple Choice)
4.9/5
(42)
Showing 21 - 39 of 39
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)