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
(27)
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.9/5
(36)
Correct Answer:
Verified

False

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

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

25

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

(True/False)
4.7/5
(40)

The Console class is defined in the System namespace.

(True/False)
4.7/5
(47)

Which of the following is a user-defined method?

(Multiple Choice)
4.8/5
(30)

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

(True/False)
4.8/5
(41)

All programs consist of at least one ____________.

(Short Answer)
4.7/5
(37)

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

(True/False)
4.8/5
(42)

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

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

(Multiple Choice)
4.9/5
(32)

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

(True/False)
4.8/5
(26)

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

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

(Short Answer)
4.7/5
(38)

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

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

(Multiple Choice)
4.9/5
(40)

The Read( ) method ____.

(Multiple Choice)
4.9/5
(39)

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

(True/False)
4.8/5
(44)

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

(Multiple Choice)
4.8/5
(45)

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

(True/False)
4.7/5
(35)
Showing 1 - 20 of 75
close modal

Filters

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