Exam 8: Advanced Method Concepts
Exam 1: A First Program Using C#40 Questions
Exam 2: Using Data39 Questions
Exam 3: Using Gui Objects and the Visual Studio Ide40 Questions
Exam 5: Looping40 Questions
Exam 6: Using Arrays40 Questions
Exam 7: Using Methods39 Questions
Exam 8: Advanced Method Concepts39 Questions
Exam 9: Using Classes and Objects39 Questions
Exam 10: Introduction to Inheritance40 Questions
Exam 11: Exception Handling39 Questions
Exam 12: Using Controls40 Questions
Exam 13: Handling Events41 Questions
Exam 14: Files and Streams40 Questions
Exam 15: Making Decisions40 Questions
Select questions type
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 methods with identical names that have identical parameter lists but different return types?
(Multiple Choice)
4.8/5
(35)
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)
Showing 21 - 39 of 39
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)