Exam 7: Methods: a Deeper Look

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

When may an app omit the string[] args parameter from the Main header

(Multiple Choice)
4.8/5
(29)

A recursive method is a method that:

(Multiple Choice)
4.9/5
(39)

Methods should be large and perform as many tasks as possible.

(True/False)
4.9/5
(37)

A primitive-type variable can store exactly one value at a time,whereas one object can contain many individual pieces of data.

(True/False)
4.8/5
(38)

Consider the following Cube method: Static int Cube(int x) { Return x * x * x; } Which of the following statements is false

(Multiple Choice)
4.9/5
(28)

How are various parameters separated in the method header

(Multiple Choice)
4.8/5
(41)

Which of the following is not part of recursion

(Multiple Choice)
4.8/5
(39)

Methods of the same name can be declared in the same class,as long as they have different sets of parameters (determined by the number,types and order of the parameters).

(True/False)
4.8/5
(38)

If a local variable in a method has the same name as a field of the method's class,what will occur

(Multiple Choice)
4.8/5
(33)

To compare a simple-type value to the underlying value of an enumeration constant,you must use a cast operator to make the two types match.

(True/False)
4.9/5
(37)

Methods that call themselves are known as ________ methods.

(Multiple Choice)
4.7/5
(28)

A variable that has not been initialized cannot be passed to a method.

(True/False)
4.7/5
(36)

A(n)conversion occurs when a type is converted to a type that can hold more data.

(Multiple Choice)
5.0/5
(30)

Which of the following is a C# built-in reference type

(Multiple Choice)
4.8/5
(36)

Methods are called by writing the name of the method followed by a left brace followed by the argument (or a comma-separated list of arguments)of the method followed by a right brace.

(True/False)
4.9/5
(35)
Showing 81 - 95 of 95
close modal

Filters

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