Exam 3: Methods and Behaviors

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

Methods that use the static m odifier are called _________ methods.

(Short Answer)
4.7/5
(32)

Calls to ____________ methods must be placed at a location in your code where the value could be accepted when the method is finished.

(Short Answer)
4.8/5
(41)

The ____ of an identifier is the region of the program in which that identifier is usable.

(Multiple Choice)
4.9/5
(45)

The entries found inside the parentheses of the method heading are called the access modifiers.

(True/False)
4.8/5
(35)

____________ is used to indicate that no value is being returned from a method.

(Short Answer)
4.9/5
(41)

Call by ____________ is the default parameter type.

(Short Answer)
4.8/5
(35)

WriteLine("Final Grade = {0:N2}", CalculateGrade(90, 75, 83)); In the statement above, CalculateGrade(90, 75, 83) is ____.

(Multiple Choice)
4.9/5
(40)

The ____________ type is always listed immediately preceding the name of the method.

(Short Answer)
4.8/5
(39)

____ is added to hold the screen when the program runs.

(Multiple Choice)
4.9/5
(45)

Which of the following is NOT a parameter type?

(Multiple Choice)
4.8/5
(42)

public static void Main( ) The access modifier in the heading above is the keyword ____.

(Multiple Choice)
4.9/5
(39)

Methods that use the static modifier are called class methods.

(True/False)
4.8/5
(41)

The definition of the method includes the entry inside the curly braces, which is sometimes called the body of the method.

(True/False)
4.9/5
(48)

One way to ensure that you have one entry and one exit from a method is to include a single return statement as the last statement in the method.

(True/False)
4.9/5
(43)

The ____ specifies what kind of information is returned when the body of the method is finished executing.

(Multiple Choice)
4.9/5
(41)

C# offers both call by value and call by reference parameters. Call by value is the default type.

(True/False)
4.8/5
(38)

double answer = Math.Pow(3, 2); The result of the call to Math.Pow( ) in the above statement is to store ____ in answer:

(Multiple Choice)
4.8/5
(35)

The return type is physically placed ____.

(Multiple Choice)
4.8/5
(44)

Which of the following methods are not overloaded?

(Multiple Choice)
4.9/5
(38)

public static void Main( ) The return type for the method above is ____.

(Multiple Choice)
4.8/5
(35)
Showing 21 - 40 of 75
close modal

Filters

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