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.8/5
(71)
Correct Answer:
Verified

camel casing

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

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

False

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

Free
(Short Answer)
4.8/5
(74)
Correct Answer:
Verified

25

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

(True/False)
4.7/5
(97)

The Console class is defined in the System namespace.

(True/False)
4.7/5
(90)

Which of the following is a user-defined method?

(Multiple Choice)
4.8/5
(84)

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

(True/False)
4.8/5
(80)

All programs consist of at least one ____________.

(Short Answer)
4.7/5
(85)

In order to hold the screen when the program runs, programmers often add ReadKey( ) as a last statement.

(True/False)
4.8/5
(81)

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

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

(Multiple Choice)
4.8/5
(71)

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

(True/False)
4.9/5
(70)

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

Every method that has a return type other than ________ must have a return statement in the body.

(Short Answer)
4.7/5
(77)

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

Which method returns the largest whole number less than or equal to the specified number?

(Multiple Choice)
5.0/5
(78)

The Read( ) method ____.

(Multiple Choice)
4.9/5
(80)

A semicolon is placed on the end of a method heading following the parameter list.

(True/False)
4.8/5
(82)

The primary difference between call by reference using ref versus out is ____.

(Multiple Choice)
4.8/5
(92)

In order to indicate a value is constant and cannot be changed, the keyword constant is added.

(True/False)
4.8/5
(70)
Showing 1 - 20 of 75
close modal

Filters

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