Exam 3: Methods and Behaviors

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

When naming local variable identifiers and parameters,use ____________.

Free
(Short Answer)
4.7/5
(85)
Correct Answer:
Verified

camel casing

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

Free
(True/False)
4.8/5
(73)
Correct Answer:
Verified

False

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

Free
(True/False)
5.0/5
(79)
Correct Answer:
Verified

True

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

(Short Answer)
4.8/5
(70)

Which of the following methods are not overloaded?

(Multiple Choice)
4.8/5
(86)

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

(Multiple Choice)
4.8/5
(94)

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

(True/False)
4.7/5
(83)

When a class or a class member does not specify a modifier,the default accessibility level of _______________ is assumed.

(Short Answer)
4.8/5
(91)

Methods that use the static modifier are called class methods.

(True/False)
4.8/5
(84)

Which of the following is a user-defined method?

(Multiple Choice)
4.9/5
(85)

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

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

(True/False)
4.8/5
(70)

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

(Short Answer)
4.7/5
(73)

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

(Multiple Choice)
4.8/5
(73)

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

(Short Answer)
4.9/5
(85)

The result of the call to Math.Pow( )in the above statement is to store ________ in answer:

(Multiple Choice)
4.8/5
(78)

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

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

(Short Answer)
4.9/5
(74)

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

(True/False)
4.9/5
(84)

Console.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.9/5
(74)
Showing 1 - 20 of 75
close modal

Filters

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