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
Caroline has been asked to find a standard to guide her company’s choices in implementing information security management system
koban [17]

Answer:

ISO 27002

Explanation:

The acronym ISO stand for The International Organization for Standardization. its a non governmental body that is responsible for setting standards guide internationally.

while NIST stand for National Institute of Standards and technology and it is also a body that is responsible for setting up standard guide in the US..

ISO 27002  is a standard code for implementing information security management systems. while  ISO 27017 is for cloud security.  NIST 800-12 is a general security and NIST 800-14 is for policy development. thus option A is correct.

Note :

All code preceded by ISO is from The International Organization for Standardization and are international standard. while those preceded by NIST is from National Institute of Standards and technology  and are not international standard.

7 0
3 years ago
I need answers and explanation
larisa86 [58]

Answer:

B. Run-time Error

Explanation:

You can't divide by zero in math because it could be divided by itself an infinite number of time, which is not possible.

A. Syntax error is just the 'grammar' of the code. An example could be forgetting to add a semicolon at the end of your code in C. Another example is forgetting to close brackets or quotes

<em>printf("inclomplete string      </em>WRONG, will give syntax error

B. Run-time error is an error that occurs while the program is running. This might happen because of many reasons, one of which is calculation errors such as dividing by 0.

C. I don't know what an Undetected Error is. Never hear of it.

D. Logic error is an error when a condition is not logically correct. This could be because you used the wrong type of operator.

if(a = b)   WRONG, will give logic error

if(a == b)    CORRECT

4 0
3 years ago
Which of the following is a collection of data organized in a manner that allows access, retrieval, and use of that data?
Alex73 [517]
Database is were servers are on server hold ip adress spread sheets hold datd 
it is spread sheet
4 0
2 years ago
Do you believe that OOP should be phased out and we should start working on some alternative(s)? Provide your answer with Yes or
o-na [289]

Answer:

I don't think so. In today's computer era, many different solution directions exist for any given problem. Where OOP used to be the doctrine of choice, now you would consider it only when the problem at hand fits an object-oriented solution.

Reason 1: When your problem can be decomposed in many different classes with each many instances, that expose complex interactions, then an OO modeling is justified. These problems typically produce messy results in other paradigms.

Reason 2: The use of OO design patterns provides a standardized approach to problems, making a solution understandable not only for the creator, but also for the maintainer of code. There are many OO design patterns.

5 0
2 years ago
The internet backbone is a foundation network linked with _____ that can support very high bandwidth.
slava [35]
The internet backbone is a foundation network linked with fiber-optic cables that can support very high bandwidth. Fiber-optic cables can be compared with an electrical cable because they use the fibers to carry light and transfer information. The fiber-optics within a network help the information travel through the bandwidths at a fast, clear speed. 
8 0
2 years ago
Other questions:
  • Alonzo collects bugs. He has created a fascinating display of large insects. Collecting bugs is a(n) _____ to Alonzo.
    10·2 answers
  • A(n) ____ is a client, server, or other device that can communicate over a network and is identified by a unique number, known a
    10·1 answer
  • What is the purpose of a title slide on power point
    14·2 answers
  • Janice usually works on a particular workbook that contains all business related data. She decides to keep a backup of all the d
    7·2 answers
  • It is important to verify internet source because-------- choose that apply. A.the source should be written by real author. B.an
    6·2 answers
  • Suppose a MATV/SMATV (Satellite Master Antenna Television) firm has to start it's operation in the metropolitan area of a countr
    12·1 answer
  • ____ involves taking data from your database and putting it into an electronic file in a format that another external applicatio
    9·1 answer
  • Technological advances have made cyberbullying
    5·1 answer
  • Pls help I will give points
    9·2 answers
  • Which of the following statements about recommendation engines is TRUE?A: An online recommendation engine is a set of algorithms
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!