Exam 7: Using Methods

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

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)

How are the parameters for a Click() method received?

(Multiple Choice)
4.9/5
(40)

What is the return type of the ReadLine() method call?

(Multiple Choice)
4.8/5
(34)

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)

What are the two most common accessibility levels in C#?

(Essay)
4.8/5
(38)
Showing 21 - 39 of 39
close modal

Filters

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