Exam 3: Methods and Behaviors

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

The definition for a method includes just the heading. The signature includes the heading and the body of the method.

(True/False)
4.9/5
(39)

The first line of a method is called the ____ of the method.

(Multiple Choice)
4.9/5
(36)

public static int Abs(int) Which of the following would be a valid call to the above method?

(Multiple Choice)
4.9/5
(36)

When a distinction is made between parameters and arguments, ____.

(Multiple Choice)
4.9/5
(35)

The return keyword may not be included with a non-value returning method (void method).

(True/False)
4.9/5
(45)

Methods may be defined in any order and placed anywhere in the file, in or outside of the class.

(True/False)
4.9/5
(26)

The body of a method can include statements that declare other methods.

(True/False)
4.7/5
(32)

Methods can be defined globally outside of a class in C#.

(True/False)
4.9/5
(27)

An advantage of using named parameters is: ____.

(Multiple Choice)
4.9/5
(35)

The definition of the method ____.

(Multiple Choice)
4.8/5
(40)

A method that does not return any value on exit, ____.

(Multiple Choice)
4.9/5
(44)

Console applications require a Main( ) method, unlike Windows applications that do not require a Main( ) method.

(True/False)
4.8/5
(36)

One required entry for a method heading is the return type.

(True/False)
4.9/5
(34)

The ____ parameter type cannot be used unless the original argument is initialized before it is sent to the method.

(Multiple Choice)
4.9/5
(45)

Methods are the members of a class that perform an action, and through writing methods you describe the behavior of data.

(True/False)
4.7/5
(37)
Showing 61 - 75 of 75
close modal

Filters

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