Exam 6: Methods

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

Variables declared in a method exist while the method is active and are destroyed when the method is exited.

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

True

Passing arguments by reference can weaken security because the called method can modify the caller's data.

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

True

Which of the following cannot be an Enum's underlying type?

Free
(Multiple Choice)
4.7/5
(41)
Correct Answer:
Verified

D

__________ forces you to declare all variables before they're used in a program.

(Multiple Choice)
4.9/5
(41)

The Step Out debugger command can be used to __________.

(Multiple Choice)
4.8/5
(39)

The expression value = 2 + randomObject.Next(8)will result in a random number in what range?

(Multiple Choice)
4.8/5
(38)

The return type of a method's return value is specified in the method call.

(True/False)
4.8/5
(37)

Overloaded methods always have the same _________.

(Multiple Choice)
4.8/5
(33)

Which of the following will violate the rules of overloading methods?

(Multiple Choice)
4.9/5
(37)

Subroutines are _______.

(Multiple Choice)
4.8/5
(27)

If you wish to execute several statements without repeatedly clicking the Step Over debugger command,you can right click the statement where you'd like to continue step-by-step execution,then select Run to Cursor from the menu that appears.The debugger will execute the statements up to,and including,that statement.

(True/False)
4.8/5
(47)

A variable declared in a class cannot have the same name as a variable declared in another class.

(True/False)
4.8/5
(36)

A method is invoked by a .

(Multiple Choice)
4.9/5
(34)

Which statement is false?

(Multiple Choice)
4.8/5
(37)

The header for a function must define the return type of the value to be returned.

(True/False)
4.9/5
(40)

The values produced by Random are weighted so that some values will be generated with greater frequency than others.

(True/False)
4.8/5
(27)

Which of the following method calls would not be valid with the following method header?Which of the following method calls would not be valid with the following method header?

(Multiple Choice)
4.9/5
(31)

You must provide a default value for any arguments that are declared Optional.

(True/False)
4.9/5
(30)

Repeating high-quality,high-performance code in a program helps ensure higher quality programs.

(True/False)
4.7/5
(32)

A method's changes to a variable that is passed by value do not affect the value of the original variable.

(True/False)
4.8/5
(35)
Showing 1 - 20 of 76
close modal

Filters

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