Exam 3: Methods and Behaviors

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

In order to call or invoke a nonvalue-returning method, enter the ____.

(Multiple Choice)
4.9/5
(40)

One option to holding the screen at the end of a program is to invoke Console.Read( ). Another option is to call ____________. It obtains the next character or function key from the user.

(Short Answer)
4.9/5
(47)

Unless a using statement is added to include the Math class, calls to members like Round( ), Max( ), and Exp( ), must be called using the class name, because they are all ____.

(Multiple Choice)
4.7/5
(40)

In order to call a static method from another class, the class name must be used with the method name.

(True/False)
4.7/5
(36)

When you assign a default value to a parameter, it then becomes a(n) ____.

(Multiple Choice)
4.8/5
(30)

The name of the method, modifiers, return type, and the types of its formal parameters make up the signature of the method.

(True/False)
4.7/5
(28)

When naming a(n) ____________, use an action verb phrase.

(Short Answer)
4.9/5
(41)

The accessibility modifier identifies what type of value is returned when the method is completed.

(True/False)
4.9/5
(36)

When you assign a default value to a parameter, it then becomes a(n) ____________ parameter.

(Short Answer)
4.8/5
(48)

WriteLine("Final Grade = {0:N2}", CalculateGrade(90, 75, 83)); In the statement above, the values placed inside the parentheses following CalculateGrade are ____.

(Multiple Choice)
4.8/5
(35)

Method names should be defined with meaningful names using ____.

(Multiple Choice)
4.8/5
(31)

The term ____________ is often used to indicate where an identifier has meaning and can be used

(Short Answer)
4.8/5
(37)

Calls to ____ methods use the class identifier instead of the object identifier as the method qualifier.

(Multiple Choice)
4.8/5
(43)

Both out and ref parameter types cause a method to refer to the same variable that was passed into the method.

(True/False)
4.9/5
(34)

The Read( ) method is different from the ReadLine( ) method in that the Read( ) returns an int and the ReadLine( ) returns a string argument.

(True/False)
4.8/5
(36)

A method used to convert from one base type to another is ____.

(Multiple Choice)
4.9/5
(32)

The Math class has a number of static methods located in the ____ namespace.

(Multiple Choice)
4.9/5
(37)

The following are examples of the access modifiers available in C#: public, personal, protected.

(True/False)
4.8/5
(34)

The Write( ), WriteLine( ), Read( ), and ReadLine( ) methods are all overloaded.

(True/False)
5.0/5
(33)

____________ is an overloaded method of the Math class that returns the larger of two specified numbers.

(Short Answer)
4.8/5
(40)
Showing 41 - 60 of 75
close modal

Filters

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