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
Scilla [17]
3 years ago
5

When breaking a problem down, you often encounter elements that you want to use repeatedly in your code. Sometimes it's appropri

ate to write a new function; at other times it's appropriate to write a loop. There is no hard-and-fast rule as to which is better, but what do you think? What kinds of circumstances would lead you to writing a function versus using a loop?
Computers and Technology
1 answer:
ddd [48]3 years ago
8 0

<u>Answer:</u>

<em>FUNCTION:</em>

  • A function does not require the number of times that the <em>code script needs to be executed </em>
  • When we go for large programming, ie. while creating projects, we can invoke function from one file to another based on the access <em>specifier mentioned for the function. </em>
  • There is a stack call created in the memory whenever a <em>function is called. </em>

<em>LOOP :</em>

  • Whereas the number of times that the loop has to be <em>executed must be defined </em>
  • A loop cannot be called, it can be used only the code block in <em>which it is present. </em>
  • There is not overhead of creating a stack since it is not invoked and there is no <em>transfer of control from one module to another </em>

You might be interested in
What is the name of the directory that contains symbolic links to unix sysv rc scripts for runlevel 2?
xeze [42]

/etc/rc2.d is the name given to the directory that contains symbolic links to UNIX SysV rc scripts for runlevel 2.

<h3>What is a directory service?</h3>

A directory service can be defined as a software system designed and developed to store, organize and provide end users with a name and an access to directory information, so as to effectively and efficiently unify (synchronize) all network resources.

In Computer networking, /etc/rc2.d is the name given to the directory that contains symbolic links to UNIX SysV rc scripts for runlevel 2.

Read more on UNIX SysV here: brainly.com/question/15616559

#SPJ12

8 0
2 years ago
What line of business (L'Oréa)?​
tatiyna

Answer:

skin care personal care

Explanation:

just search up what line of business in l orea

6 0
2 years ago
Read 2 more answers
What do you click to create a new presentation in Normal view? A. Section B. Blank Presentation C. Layout D. New Slide
Kazeer [188]
B. Blank presentation, this way you have a normal view presentation but you can also add your own features.
3 0
3 years ago
Read 2 more answers
a ____ consists of wires connecting the cpu and other parts of the computer. The _____ transfers data between CPU and memory uni
geniusboy [140]

Answer:

A power supply consists of wires connecting the cpu and other parts of the computer. The data bus transfers data between CPU and memory unit.

Explanation:

4 0
3 years ago
HELPPPP KOKICHI IS OUT TO KILL ME
Ne4ueva [31]
Oh my- good luck with that-
3 0
2 years ago
Other questions:
  • What is the output after the following code executes?
    14·1 answer
  • The use of digital technology and the Internet to execute the major business processes in the enterprise is called
    11·1 answer
  • Discussion group may have a___________ who monitors the postings and enforces the sides rules​
    13·1 answer
  • Siva added a "Contact Form" to her website.
    10·1 answer
  • 1. Zack sees an online contest. He could win $10,000 instantly! On the sign-up form, he enters his name and email address. He is
    15·1 answer
  • All 24-point fonts take up the same amount of space on a slide. True False
    7·2 answers
  • Four major parts of the keyboard
    12·2 answers
  • Where can a client identify the instant deposit options for their QuickBooks Payments account?
    5·1 answer
  • What is being done to reduce the python population in florida?.
    5·1 answer
  • I am trying to sum up a set of data based on 2 criteria (needs to have "green" in column E, and "January 2020" in collum A). Col
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!