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
lana [24]
3 years ago
15

If you create and invoke a recursive function without accounting for a base case, what can go wrong?

Computers and Technology
1 answer:
oksian1 [2.3K]3 years ago
6 0

Every recursive function should have an exit criterion (=handling the base case) to exit the recursion.

Without it, it wil recurse forever, until system resources run out (typically the call stack will overflow and your program will crash).

You might be interested in
The following function open_file() opens a file called 'example.txt' and returns the file pointer. This function is called withi
dsp73

Answer:

Code is given as below:

Explanation:

def open_file():

   fpointer = open('example.txt')

   return fpointer

def main():

   dictlist = []

   dict_of_words = dict()

   fp = open_file()

   # loop to iterate over lines in file

   for line in fp:

       for word in line.split():

           if(not dict_of_words.get(word)):

               dict_of_words[word] = 1

           else:

               dict_of_words[word] += 1

   for key, value in dict_of_words.items():

       temp = (key.lower(), value)

       dictlist.append(temp)

   print(sorted(dictlist))

main()

8 0
3 years ago
Question 1:
RideAnS [48]

Answer:

1. A

2. B

3. C

hope this helps in some way

6 0
3 years ago
Select the different network functions from the list below.
VashaNatasha [74]

Answer:

IP address

blocking spam

power

SAN

8 0
3 years ago
On your Web page, you include various links and clickable images that have the ability to trigger various functions when users c
denis23 [38]

Answer:

Event is the correct answer to the given question.

Explanation:

Because when user clicks from the mouse on the image or any link then the clickable event triggered the various function. Event one of the essential part of DOM. It is an important event in the JavaScript. When the left button of the mouse is clicked on the images or links which are clickable then the mouseup event occurs.

HTML contains the set if an events when the user click on the clickable events then the JavaScript code are triggered

4 0
4 years ago
Please define processor​
fredd [130]
Processor means to break down something.
6 0
3 years ago
Other questions:
  • Microbes that enter the body, causing disease, are<br>known as​
    13·1 answer
  • You want to make it possible for your smartphone to share its internet access wirelessly with your friends device which of the f
    10·1 answer
  • ASAP ε=ε=ᕕ(°□°)ᕗ<br> Sorry if you can't see it but please help me if you can!
    6·1 answer
  • If you are working with a team of students on a class project and your team chooses to share content by uploading Word and Excel
    13·1 answer
  • Whats the answer :)?<br>i will give brainslist​
    11·1 answer
  • Code Problem 2 in Python 2.
    5·1 answer
  • Hannah wants to write a book about how scientists and society interact, and she has generated ideas for chapters. Which chapter
    13·1 answer
  • When a browser is open on your computer, what browser tool is used to move the webpage to the previously viewed page on the brow
    8·1 answer
  • What are three major events in computer science history?
    11·2 answers
  • While operating a vehicle on any highway of this state, it it illegal to physically hold or support a wireless device with any p
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!