Exam 3: Methods and Behaviors

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

The following members of the Math class,(Round( ),Max( ),Exp( )),must be called using the class name,because they are all ____.

(Multiple Choice)
4.9/5
(83)

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

(Multiple Choice)
4.9/5
(90)

A standard convention used by C# programmers is to use Pascal case style for class,data member identifiers,and method identifiers.

(True/False)
4.8/5
(87)

The Console class is defined in the System namespace.

(True/False)
5.0/5
(75)

Call by ____________ is the default parameter type.

(Short Answer)
4.9/5
(83)

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

(True/False)
4.8/5
(92)

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

(Multiple Choice)
4.8/5
(81)

Which of the following is NOT a parameter type?

(Multiple Choice)
4.8/5
(79)

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

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

(Multiple Choice)
4.9/5
(73)

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

(Short Answer)
4.8/5
(81)

The Parse( )method returns the number representation of its string argument.

(True/False)
4.8/5
(84)

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

(Multiple Choice)
4.8/5
(69)

A namespace is really nothing more than a group of statements placed together under a single name.

(True/False)
4.9/5
(88)

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

(Short Answer)
4.7/5
(64)

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.7/5
(72)

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

(Multiple Choice)
4.9/5
(85)

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

(True/False)
4.9/5
(80)

Ceiling( ),Pow( ),and Floor( )are all static members of the Console class.

(True/False)
4.8/5
(85)

Avoid writing long methods.Consider refactoring when the method exceeds ____________ lines of code

(Short Answer)
4.9/5
(79)
Showing 41 - 60 of 75
close modal

Filters

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