Exam 3: Methods and Behaviors

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

The most restrictive access modifier that offers accessibility only within the body of the class is ____.

(Multiple Choice)
4.8/5
(82)

The return type for the method above is ____.

(Multiple Choice)
4.7/5
(95)

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

(Multiple Choice)
4.8/5
(77)

If a method does not return a value,the void keyword is placed inside the parentheses in the method heading.

(True/False)
4.9/5
(75)

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

(Multiple Choice)
4.7/5
(80)

A standard convention used by programmers for naming classes is to use an action verb phrase.

(True/False)
4.9/5
(81)

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
(99)

Console.WriteLine("Final Grade = {0:N2}", CalculateGrade(90, 75, 83)); -The {0:N2} above indicates the ____.

(Multiple Choice)
4.9/5
(77)

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

(Multiple Choice)
4.9/5
(75)

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

(True/False)
4.9/5
(77)

All programs consist of at least one ____________.

(Short Answer)
4.8/5
(79)

The Read( )method ____.

(Multiple Choice)
4.9/5
(67)

Method names should be defined with meaningful names using ____.

(Multiple Choice)
5.0/5
(79)

Which of the following would be a valid call to the above method?

(Multiple Choice)
4.7/5
(83)

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

(Multiple Choice)
4.9/5
(80)

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
(84)

All Main( )method headings must include the ____________ modifier meaning that the method belongs to the type itself rather than to a specific object of a class.

(Short Answer)
4.8/5
(75)

The access modifier in the heading above is the keyword ____.

(Multiple Choice)
4.7/5
(72)

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

(True/False)
4.8/5
(76)

The definition of the method ____.

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

Filters

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