Exam 7: Methods: a Deeper Look

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

When a return statement executes,control proceeds immediately to the first statement after the method that issues the return.

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

False

Overloaded methods normally perform similar tasks,but on different types of data.

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

True

A recursion step normally includes the keyword return.

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

True

It's always better to write your own code than to search and use a class from the FCL.

(True/False)
4.8/5
(29)

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

(True/False)
4.9/5
(37)

Value types normally represent single pieces of data.

(True/False)
4.9/5
(26)

Any variables declared in a for statement header have block scope within that statement.

(True/False)
4.8/5
(37)

Methods defined by the programmer may consist only of predefinedNET method calls.

(True/False)
4.8/5
(28)

A variable of a reference type contains:

(Multiple Choice)
4.9/5
(36)

An overloaded method is one that

(Multiple Choice)
4.8/5
(39)

Any variable declared with keyword const is a constant and cannot be changed after it's declared and initialized.

(True/False)
4.8/5
(36)

A return type of is specified for a method that does not return a value.

(Multiple Choice)
4.9/5
(39)

Pass-by-value is used when optimal program performance is necessary.

(True/False)
4.7/5
(37)

When calling a method,you must specify the arguments in the same order that the corresponding parameters are declared in the method's parameter list.

(True/False)
4.9/5
(31)

Values produced by random-number generating methods are truly random.There is no way to predict the next result.

(True/False)
4.9/5
(40)

Which of the following cannot be an enum's underlying type

(Multiple Choice)
4.8/5
(40)

Any parameter in a parameter list can be declared as an optional parameter.

(True/False)
4.9/5
(40)

Which of the following statements describes block scope

(Multiple Choice)
4.7/5
(34)

_________ methods can be called without the need for an object of the class to exist.

(Multiple Choice)
4.8/5
(40)

The Next method produces a random number from zero up to and including the number provided by the programmer in the method call.

(True/False)
4.7/5
(33)
Showing 1 - 20 of 95
close modal

Filters

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