Exam 6: Modularizing Your Code With Methods

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

In general, the same rules that apply to variable names also apply to method names.

(True/False)
4.8/5
(43)

Pieces of data that are sent into a method are known as ____________.

(Multiple Choice)
4.9/5
(47)

Programmers commonly use a technique known as ____________ to break down an algorithm into methods.

(Multiple Choice)
4.9/5
(33)

A method that contains a(n) ____________ allows you to specify which parameter variable the argument should be passed to.

(Multiple Choice)
5.0/5
(34)

A parameter variable's scope is the ____________ in which the parameter variable is declared.

(Multiple Choice)
4.8/5
(43)

When calling a method and passing a variable as an argument, always write the data type and the variable name of the argument variable in the method call.

(True/False)
4.9/5
(40)

You can write methods that return any type of data.

(True/False)
4.7/5
(37)

Which of the following is the best choice for modularizing input validation?

(Multiple Choice)
4.7/5
(31)

When a ____________ is provided for a parameter, it becomes possible to call the method without explicitly passing an argument into the parameter.

(Multiple Choice)
4.8/5
(30)

The top-down design process is sometimes called stepwise refinement.

(True/False)
4.8/5
(38)

When you call a method that has an output parameter, you must also write the keyword out before the argument.

(True/False)
4.8/5
(42)

The memory address that is saved by the system when a method is called and is the location to which the system should return after a method ends is known as the ____________.

(Multiple Choice)
4.8/5
(39)

When you call a ____________, it executes the statements that it contains and then it returns a value back to the statement that called it.

(Multiple Choice)
4.9/5
(40)

The ____________ is a collection of statements that are performed when the method is executed.

(Multiple Choice)
4.9/5
(31)

A(n) ____________ works like a reference parameter, but the argument does not have to be set to a value before it is passed into the parameter.

(Multiple Choice)
4.9/5
(40)

Passing an argument by reference guarantees that the argument will not be changed by the method it is passed into.

(True/False)
4.9/5
(42)

When a method is called, the program branches to that method and executes the statements in its body.

(True/False)
4.8/5
(28)

It is a standard convention among C# programmers to use ____________ for method names because it differentiates method names from variable and field names.

(Multiple Choice)
4.8/5
(42)

When you pass an argument to a ref parameter, that argument must already be set to some value.

(True/False)
4.8/5
(40)

Which of the following data types can be returned from a method?

(Multiple Choice)
4.8/5
(33)
Showing 21 - 40 of 61
close modal

Filters

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