Exam 7: Using Methods
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
When writing an event-handling method in a GUI application, what should you consider about a variable's scope?
(Essay)
4.8/5
(41)
Write a DisplaySalesTax() method that receives the sales amount and tax rate as doubles, and calculates and displays the sales tax.The method does not return a value.
(Essay)
4.8/5
(39)
Describe how nested method calls work.For example, if you have three nested method calls, which method executes first and how are return values propagated? Is there a limit to how many method calls can be nested?
(Essay)
4.9/5
(35)
The process of calling a method's name and using the method to perform a job for a class is also known by what term?
(Multiple Choice)
4.8/5
(35)
What is the term used to describe the calling of a method from within another method?
(Multiple Choice)
4.9/5
(39)
If no method access specifier is defined for Main(), what will it be by default?
(Multiple Choice)
4.7/5
(33)
What technique allows a programmer to change the way in which a method works internally without affecting programs that utilize the method?
(Multiple Choice)
4.8/5
(35)
Variables and constants that are declared within a method are only available until the end of the method.Why is this?
(Multiple Choice)
4.9/5
(48)
A formal parameter that receives a copy of the value passed to it is an example of what type of parameter?
(Multiple Choice)
4.9/5
(34)
What characters are placed after the data type in a method's parameter list to indicate that a method parameter is an array?
(Multiple Choice)
4.8/5
(28)
A parameter within a method header that accepts a value is considered to be what type of parameter?
(Multiple Choice)
4.9/5
(44)
To more easily incorporate methods into a program, it is common practice to store methods in their own classes and files.Then you can add them into any application that uses them.What is the resulting compound program called?
(Multiple Choice)
5.0/5
(40)
What is the name for a variable that holds data passed to a method when it is called?
(Multiple Choice)
4.7/5
(34)
Under what circumstances will a method receive the actual memory address of a passed array, and be able to alter values in the original array?
(Multiple Choice)
4.9/5
(38)
If you do not provide an accessibility modifier for a method, it is private by default.
(True/False)
4.9/5
(40)
When can a method be called with fewer arguments than exist in the parameter list for the method?
(Multiple Choice)
4.9/5
(33)
Showing 21 - 39 of 39
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)