1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
miss Akunina [59]
3 years ago
14

.Like a loop, a recursive method must have some way to control the number of times it repeats itself? (true, false)

Computers and Technology
1 answer:
Nataly_w [17]3 years ago
3 0

Answer:

True.

Explanation:

In a recursive method, method call itself.If there is no control statement then it will call itself for infinite time.To prevent this we need to create a base/ termination  condition in the recursive method. So that when it meets the base/termination condition, method will stop calling itself.

Here is an example of controlled recursive method :

void dig(int n)

{

// base condition to stop calling itself

  if(n==0)

  return;

 

  else

   {

       cout<<n%10<<" ";

       // function will itself until it meets the base condition

       // recursive call

       rdig(n/10);

   }

}

this method to print the digits of a number in revers order.first it will  print the last digit and update the number as num/10. this will repeat until num become 0. When it reaches the base condition it will stop calling itself and returned.

You might be interested in
Universal Containers wants line items to be organized into pre-defined groups on the output document. The name of these pre-defi
devlian [24]

Answer:

Set the Group field on the Line Items type of Template Content record.

Set the New Quote Group field on each Product record with the associated group name.

Explanation:

The two array that can be implemented are:

  • Set the Group field on the Line Items type of Template Content record.
  • Set the New Quote Group field on each Product record with the associated group name.
5 0
3 years ago
Programmers refer to programs that contain meaningful names as ____. AnswerThe answer is: Programmers refer to programs that con
andreyandreev [35.5K]
Self documenting, we also make comments.
3 0
3 years ago
A(n) ________ HTML tag is used to mark information about the page.
Rina8888 [55]

Answer:

sorry im late ^^; but the answer is metadata!

Explanation:

8 0
3 years ago
A person's birth date consists of the month, day, and year in which that person was born. The domain for a relation R is a set o
Y_Kistochka [10]

Answer:

A parties order and a total order

Reason is because the person is the related to the person being discussed and they share the same birthday date.

3 0
3 years ago
How to make a wallpaper ofor a phone with paint.net?
juin [17]

Find the correct resolution for your phone (this is most likely to be 1080x1920) and set the dimensions on paint.net to the appropriate length and width (in pixels) and then you can create whatever you want :)

7 0
3 years ago
Other questions:
  • What is the output of the following code snippet? double income = 45000; double cutoff = 55000; double minIncome = 30000; if (mi
    14·1 answer
  • Which software is used to play, create, and modify audio and video files?
    7·2 answers
  • Which of the following identifies the patterns used for each data series in a chart?
    13·1 answer
  • Semiconductors are only somewhat conductive electronic components.<br><br> True or False?
    14·1 answer
  • How many bytes does a common processor require to represent an integer?
    7·1 answer
  • Your friend Margo is considering what type of display to purchase with her new desktop computer and she asks you for advice. You
    14·1 answer
  • An argument does not always have to be made in words. A piece of music
    12·1 answer
  • In Scheme, the form (symbol-length? 'James) will return: Group of answer choices 0 5 6 error message
    11·1 answer
  • PLS HELP ASAP!! which of these would be easier to do in a database program than a spreadsheet program? check all of the boxes th
    5·2 answers
  • Terence creates software requirements specification (SRS) documents for various software development projects. In which phase of
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!