Exam 6: Modularizing Your Code with Methods

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

void methods are useful for simplifying complex conditions that are tested in decision and repetition structures.

(True/False)
4.9/5
(42)

In general, the same naming rules that apply to variables also apply to methods.

(True/False)
4.9/5
(29)

Nested if statements can be useful for modularizing input validation.

(True/False)
4.8/5
(37)

A method that has an output parameter must set the output parameter to some value before it finishes executing.

(True/False)
4.8/5
(42)

Dividing a large problem into several smaller problems that are easily solved is sometimes called ____________.

(Multiple Choice)
4.9/5
(32)

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

(True/False)
4.9/5
(35)

When you want a method to be able to change the value of a variable that is passed to it as an argument, the variable must be ____________.

(Multiple Choice)
4.9/5
(31)

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

(True/False)
5.0/5
(33)

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

(Multiple Choice)
4.7/5
(38)
Showing 61 - 69 of 69
close modal

Filters

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