Services
Discover
Homeschooling
Ask a Question
Log in
Sign up
Filters
Done
Question type:
Essay
Multiple Choice
Short Answer
True False
Matching
Topic
Computing
Study Set
Microsoft Visual C#
Quiz 7: Using Methods
Path 4
Access For Free
Share
All types
Filters
Study Flashcards
Practice Exam
Learn
Question 21
Multiple Choice
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?
Question 22
Essay
What are the two most common accessibility levels in C#?
Question 23
Essay
For a method that accepts a parameter, what are the components of the parameter definition that must be included in the method declaration? Show an example of a method declaration with a parameter.
Question 24
Multiple Choice
When a method resides entirely within another method, and can only be called from within the containing method, what is the method known as?
Question 25
Essay
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.
Question 26
Multiple Choice
When a variable or constant is required by multiple methods in a GUI program, where should it be defined?
Question 27
Essay
When writing an event-handling method in a GUI application, what should you consider about a variable's scope?
Question 28
Multiple Choice
If no method access specifier is defined for Main() , what will it be by default?
Question 29
Essay
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?
Question 30
Essay
What are the components of a C# method declaration?
Question 31
Multiple Choice
When you place a button named okButton on a Form in the IDE and double-click it, what method header is generated automatically? (Note that if you are using Visual Studio 2019, each method name will start with an uppercase letter.)