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
miv72 [106K]
3 years ago
7

Write a recursive, int -valued function, len, that accepts a string and returns the number of characters in the string .

Computers and Technology
1 answer:
vodka [1.7K]3 years ago
7 0
Without knowing the language, it's pretty imposible to write it.  Once you start thinking recursively, it's not a difficult problem.

While you're recursing, pass the string without the first character.
The base case would be a null string which would return 0.
The unwind would just add one and return that.
You might be interested in
A newly installed server communicates properly with its SCSI drives for six hours before requiring a reboot to continue communic
frosja888 [35]

Answer:

There are a number of issues pertaining to hard disks and their use in computers including the physical interface, configuration of the devices, and the difference between logical and physical devices. This lab is meant to serve as in introduction to these concepts focusing on hard drive identification, configuration, installation, and preparation. This laboratory is more about discussing the concepts than it is about any sort of hands-on exercises. After studying this lab and performing the exercises, the student should be able to:

describe the characteristics and differences of the PATA and SATA standards;

describe the purposes of each of the cables used to interface a hard drive to the motherboard;

install a new drive in a machine;

describe what a partition is and its function as it pertains to storage devices; and

partition and format a hard drive using Windows XP.

Drive Interfaces

3 0
3 years ago
Which of the following is not a data type in python Float, string, integer, decimal ​
Hunter-Best [27]

Answer:decimal

Explanation:

these are the types:

String, List, Tuple, Associative array, Floating-point, arithmetic, Integer,

Boolean data type, Set

8 0
4 years ago
Read 2 more answers
Which tag provides information about a web site?
maw [93]
Metatags provide information about web-sites. They are invisible on the page, and can contain for example a page description that google picks up for showing in the search results. A list of keywords is also commonly added using a meta tag. 

Here is an example:

  <span><meta<span> name="description" content="My very cool webpage on pets."</span>></span>
<span>  </span><span><meta<span> name="keywords" content="dogs, cats"</span>></span>
<span>  </span><span><meta<span> name="author" content="John Doe"</span><span>></span></span>
8 0
4 years ago
If your vehicle leaves the pavement for any reason, remember to take your foot off the gas pedal, hold the wheel firmly, and
tester [92]

What you do not do when your vehicle leaves the pavement is as important as what you do. Hold the wheel firmly and steer in a straight line. You should brake lightly and wait until the road is clear. Turn back on the pavement sharply and slowly and continue moving.

4 0
3 years ago
Read 2 more answers
Cite 3 funções para o uso de uma Rede de Computadores
Andru [333]

Answer: Servidores, Clientela, Medios de transmisión

8 0
3 years ago
Read 2 more answers
Other questions:
  • When sending a packet of data from source host to a destination host over a fixed route. Which of the delay components are varia
    8·1 answer
  • In a natural-language processing (NLP) system, the _____ activity involves using the computer to read large amounts of text and
    5·1 answer
  • Which are examples of copyrighted online materials? Check all that apply.
    14·2 answers
  • There are four types of alignment available from on the Home ribbon toolbar. They include all of the following except
    13·1 answer
  • ______ is data that is entered into a computer. ______ is the result produced by a computer.
    6·1 answer
  • Chunking is a good strategy for completing large assignments because it makes the work
    7·2 answers
  • Define<br>output<br>devices<br>.<br>Give<br>any<br>three<br>examples<br>.<br>3.​
    8·2 answers
  • Which of the following statements best describes the relative amount of content held by digital libraries vs. the amount held by
    12·1 answer
  • WHO SAYS BUP ALL THE TIME ​
    8·1 answer
  • What is humanity’s greatest invention?
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!