Which of the following is true of functions? * 2 points A. Programs written with functions run more quickly B. Functions can help remove repeated code from a program C. Replacing repeated code with a function will reduce the number of commands the computer needs to run D. Functions are called once but can be declared many times

Answers

Answer 1

Answer:

I’m sure if I remember that this is “B.”

Explanation:

I have taken computer science class before so I remembered!

Answer 2

The option that is true of functions is B. Functions can help remove repeated code from a program.

It should be noted that the fact that programs are written with functions doesn't mean that they will run quickly.

Functions can help remove repeated code from a program. Also, replacing repeated code with a function doesn't reduce the number of commands the computer needs to run.

Read related link on:

https://brainly.com/question/17691320


Related Questions

I NEED HELP ASAP IM BAD AT THIS

Answers

A float is a floating point number. This means that's the number has a decimal place. Numbers with or without decimal places can be stored in a float variable but more commonly numbers with decimal points.

The correct choices are 1 and 3.4

what is mainframe computer​

Answers

Answer:

Explanation:

it's a computer that is used by large companies for applications. For example, a census taker might use a mainframe computer. It's mainly used for bulk data processing .

The complete process for learning through repetition is to read, write, say, rest and revisit the information. Please select the best answer from the choices provided T F

Answers

Answer:

True.

Explanation:

The complete process for learning through repetition is to read, write, say, rest and revisit the information.

This ultimately implies that, when an individual indulge in learning through repetition, he or she would is strengthening the single memory trace and as such enhancing the learning process.

Hence, learning through repetition such as reading, writing, saying, resting and revisiting the information is very effective because it engages and activates the visual, auditory, tactile and kinesthetic neural pathways to the brain.

Additionally, it is advisable to wait for about ten (10) minutes in between the repetition process when learning through repetition.

Answer:

True

Explanation:

Just took the quiz.

What is GIGO ?
plz answer me​

Answers

Answer:

Garbage in, garbage out

Explanation:

In computer science, garbage in, garbage out is the concept that flawed, or nonsense input data produces nonsense output or garbage

Any application that wants to be displayed on the web must use the HTTP protocol
True
False

Answers

Answer:

true

Explanation:

Do you know how to change your grades on a printer???????????

Answers

Answer:

To change ur grade make sure to do it on the website first by right clicking your mouse and clicking inspect element and once done changing x out and it will save

Explanation:

Write an algorithm for a program which inputs the lengths a, b and c of the three sides of a triangle. The program then determines whether the triangle is right-angled and prints out a message to say whether or not the triangle is right angled. You may assume that a is the longest side.

Answers

Answer:

Algorithm:

Step 1: Start

Step 2: Declare variables a,b,c

Step 3: Input a,b,c

Step 4: If a^2 == b^2 + c^2

                  Display "The triangle is right angled"

            Else

                  Display "The triangle is not right angled"

Step 5: Stop

Explanation:

A triangle is right angled if the square of the largest side equals the sum of the square of the other two sides

The algorithm will be based on the above analysis.

This indicated the start of the algorithm

Step 1: Start

This declares required variables

Step 2: Declare variables a,b,c

This gets values for the declared variables

Step 3: Input a,b,c

This checks for the condition to determine right angled triangle

Step 4: If a^2 == b^2 + c^2

If true, this message that states the triangle is right angled is printed

                  Display "The triangle is right angled"

If otherwise

            Else

This message that states the triangle is not right angled is printed

                  Display "The triangle is not right angled"

This indicates the end of the algorithm

Step 5: Stop

The algorithm when implemented in Python is as follows:

a = float(input("a: "))

b = float(input("b: "))

c = float(input("c: "))

if a**2 == b**2 + c**2:

   print("The triangle is right angled")

else:

   print("The triangle is not right angled")

It follows the same explanation as the algorithm

Can someone help me please?

Answers

Answer:

WAN is correct.

Explanation:

Typically, a WAN consists of two or more local-area networks (LANs).

Answer:

yes it is WAN:)

Explanation:

^_^your welcome

PLEASE HURRY

If a flowchart has a diamond with the words "yes" and "no" to the sides of it, then it is representing a program that is a sequence O True O False​

Answers

Answer:

its true

Explanation:

- What is a good strategy for making sure that you don't participate in cyber bullying?
Ignore the rules and expectations of any online community.
Look out for groupthink and try to avoid it wherever you can.
Always side with the least popular person or opinion in an argument.
Behave exactly as you would in real life.

Answers

Answer:

Look out for groupthink and try to avoid it wherever you can

Explanation:

By participating in large groups, bullying may be more likely to occur. These "keyboard warrior" target people that are not agreed with, and the bullying may flower into death threats.

Behaving as you would in real life may not be helpful, as some people are not nice in real life.

where can you apply the hand wire splicing technique

Answers

Answer:

When you want to extend an electrical wire for an apparatus, e.g., a lamp or a speaker.

what does this mean??

Answers

Answer:??????????????

Explanation:

Answer:

what the heck maybe you have to call apple

Explanation:

Beth earned a bachelor’s degree and has worked as a systems analyst for three years. Which of the following has Beth acquired? experience data information knowledge
A.experience
B.Data
C.information
D.Knowledge

Answers

A experience


Explanation

Because it shows that she knows what she is doing since she has earned a bachelors degree in this field.

The meaning of docile can be determined by the... context clue. synonym atonym or explanation

Answers

Answer:

Synonym

Explanation:

I'm pretty sure it's either synonym or explanation, but if there isn't an explanation, it's almost always synonym... so... synonym is correct.

Answer:

it is explanation

Explanation:

trust me

Problems that are undecidable and algorithms that are unreasonable both touch on the limits of the kinds of computing
that a computer can accomplish. In your own words, explain the difference between undecidable problems and
unreasonable time algorithms.

Answers

Answer:

An unsolvable problem is one for which no algorithm can ever be written to find the solution. An undecidable problem is one for which no algorithm can ever be written that will always give a correct true/false decision for every input value.

Undecidable problems simply describes problems which do not have the algorithm to produce the required 'yes' or 'no' solution while unreasonable time algorithm are those problems which run time grows exponentially.

A problem is tagged as Undecidable if no algorithm exists to allow such problem produce a 'yes' or 'no' solution. Hence, undecidable problems would sometimes run infinitely or give a wrong output in some cases.

Unreasonable time algorithm describes problems whose run time increases in an exponential nature. Such programs increases in run time very quickly due to the nature of the of the computation. Example ; 10^n.., where n is a range of values.

Therefore, both undecided and unreasonable time algorithm affects the limits of computing attainable by different computer systems.

Learn more :https://brainly.com/question/21242780?referrer=searchResults

the contents in cells are A1 through A6 are 6,3,4,7,9 and 7. What function would return the answer 6?​

Answers

Answer:

The formula =AVERAGE(A1:A6) would return the average of those numbers which is '6'.

Explanation:

The content in cells is A1 through A6 are 6,3,4,7,9 and 7.

As the average of 6,3,4,7,9 and 7 is 6.

If the range A1:A6 contains numbers, the formula =AVERAGE(A1:A6) would return the average of those numbers.

Therefore, the formula =AVERAGE(A1:A6) would return the average of those numbers which is '6'.

4.8 Code Practice: Question 3

Answers

for x in range(200, 301, 2):

   print(x)

I hope this helps!

The code practice is an illustration of loops;

Loops are statements that are used to perform repeated actions

The complete program in Python

The program in Python, where comments are used to explain each action is as follows:

#This iterates from 200 to 300

for i in range(200,301,2):

#This prints the even numbers

   print(i)

Read more about loops at:

https://brainly.com/question/24833629

#SPJ2

the contents in cells are A1 through A6 are 6,3,4,7,9 and 7. What function would return the answer 6?​

Answers

Explanation:

hsidjdujdn I have been trying the new year with everything else was there to

Choose a half-hour television program, watch it, and take notes. It can be any program.

Answer the following questions about this program:

What behaviors do you think someone might learn from watching this program?
What attitudes might someone learn from watching this program?
What messages about social norms might someone learn from watching this program?

Answers

Answer:

Here's my answers.

Explanation:

I think, that from watching this program, the person watching may learn about supernatural (and fictional) abilities, and probably start to watch more of it.

The attitudes someone might learn from this program are funny attitudes, smart attitudes, and calm attitudes.

The messages about social norms that someone might learn from watching this program are that it's perfectly okay to run up to your adopted brother who has been ruining your life, tried to steal your girlfriend, and burned your dog alive and punch him hard in the face.

(The series, if you haven't guessed it already, is JoJo's Bizarre Adventure.)

"prevention is better than cure" Justify this statment.​

Answers

Answer:

Hope

you like it and helpful

__________for about 10 minutes in between each repetition session helps you to remember the information better. a. Reading c. Sleeping b. Resting d. None of these

Answers

the answer is a.) reading

Answer:

Hey make sure you REST before school ( Its b. resting)

Explanation:

I hope everyone that sees this has a wonderful day and if your not hopefully this cat and dog will make you feel better, BYE LOVIES!!

WHERE DO I GO TO DO THIS AND WHAT DO I WRITE?????
Write a pseudocode plan for your program.
Write the code for your program.
Test your program. Run it at least three times with different inputs.
Save your program as a .txt file for you cannot upload a .py file.
Evaluate your project using this rubric.
What to Submit
Submit the .txt file holding your program.

Answers

You can just look up "python ide online" on google and paste this code:

n = -1

count = 0

while n < 0:

   n = int(input("We're checking to see if a number is prime or not! Enter a positive number: "))

if n % 2 == 0:

   if n == 2:

       print("{} is a prime number".format(n))

   else:

       print("{} is not a prime number".format(n))

else:

   for x in range(n, 1, -1):

       if n % x == 0:

           count += 1

   if count > 1 or n == 1:

       print("{} is not a prime number".format(n))

   else:

       print("{} is a prime number".format(n))

I've written some code that checks to see if a number entered by the user is a prime number or not.

Sorry, but I'm not too good with pseudocode plans and all that. I hope this helps.

Answer:

import math

print("Let's solve ax² + bx + c = 0")

a = int(float(input('Enter a value for a: ')))

b = int(float(input('Enter a value for b: ')))

c = int(float(input('Enter a value for c: ')))

D = b*b-4*a*c

if (D<0):

   print("Sorry, this equation has no solutions.")

elif (a == 0):

   if (b == 0):

       if (c == 0):

           print("Every value of x is a solution")

       else:

           print("Sorry, this equation has no solutions")

   else:

       x = -c/b

   print("The one solution is x={:.3g}".format(x))

elif (D==0):

   x = (-b + math.sqrt(D)) / (2*a)

   print("The one solution is x={:.3g}".format(x))

else:

   x1 = (-b + math.sqrt(D)) / (2*a)

   x2 = (-b - math.sqrt(D)) / (2*a)

   print("This equation has two solutions: x={:.3g} or x={:.3g}".format(x1, x2))

Explanation:

Above is another little program to use the quadratic formula.

Need help pleaseeee!!!!!

Answers

Answer:

Attenuation

Explanation:

This means the signal is getting weaker in long cables.

The Quick Access tool bar allows you to customize the actions or commands you frequently use.

True
False

Answers

I believe its true.

who invite computer ?​

Answers

Answer:

Charles Babbage, an English mechanical engineer and polymath, originated the concept of a programmable computer. Considered the "father of the computer", he conceptualized and invented the first mechanical computer in the early 19th century.

If you meant who ‘invented’ computers, it was Charles Babbage.
Hope this helps!

what do you think about when you enter school​

Answers

Answer:

i think my day is about to start and i'm going to get the chance to finally talk to my best friends on D!$C0rD, and then i think about how my parents are rUDe for not letting me talk to my friends. :/

Not again

Or

I’m going to end my life today

I don’t like school

Computer Science uses the power of ______________ to solve problems.

Answers

Computer Science uses the power of computers to solve problems.

Mary Grossman has been selling cupcakes for the past few years. She keeps meticulous record of every cupcake that she has ever made and sold. She has also kept records of customers’ comments on all her cupcakes. These have been entered into a computerized accounting information system that her accountant refers to as a "data warehouse." Mary is considering rebranding her cupcake business and has asked her accountant to identify the top-selling cupcakes for the past few years. Mary wants her accountant to engage in:______.

Answers

Answer:

Data mining

Explanation:

Based on the information given we were told that she is considering the rebranding of her cupcake business in which she asked her accountant to help her identify her top selling cupcakes for the past few years which means Mary want to make use of the large information recorded into the Data warehouse to improve her business.

Hence we can say that she wants her accountant to engage in DATA MINING.

DATA MINING can be defined as the process of making use of information collected or data collected to help know business lapses for the sole aim of improving the business and to help use the data collected to make goods business choices.

Therefore Mary wants her accountant to engage in DATA MINING

Which is better, in most situations, a bumper switch or a limit switch, and why?

Answers

Answer:

limit switch because why not

Explanation:

Can someone help me?

Answers

the one you have selected!! good job (:
Other Questions
The fatihful servant and the princess can both be considered dynamic characters and thr king and princess can be considered static characters why? Click this link to view O*NET's Work Activities section for Architects. Note that common activities are listed toward thetop, and less common activities are listed toward the bottom. According to O*NET, what are common work activitiesperformed by Architects? Check all that apply.repairing and maintaining mechanical equipmentcommunicating with persons outside of the organizationdrafting, laying out, and specifying technical devices, parts, and equipmentusing dynamic flexibility to repeatedly bend, stretch, or twist with arms or legsusing night vision and peripheral visionmaking decisions and solving problemsthinking creatively DONT SKIP PLS!! Select all the correct answers. Which geographic features are associated with a divergent boundary?A:hydrothermal vents B:continental mountains C:ridgesD:subduction trenchE:rift Choose the possessive case of the plural noun belowgold seekersa gold seeker'sb. gold seekers'C. gold's seekersd. correct as is Question 141 ptsHow many moles of NaCl could be found in 0.4 L of a 0.9 M solution? Round your answer totwo decimal places. Which of the following is a unit rate? My grandparents have four grandchildren. The product of the ages of the four grandchildren is 67 184. The youngest grandchild is younger than 10, and is also 30 years younger than the oldest grandchild.Determine all possibilities for the ages of my grandparents grandchildren. In a survey of market, it is found that 143 persons use white toothpaste and 135 use red toothpaste. If 70 of them use both the toothpaste then find the number of persons who use at least one of the toothpaste The distance from Jason's house to school is 0.1 kilometer. What is this distance in meters? Help pls HELP I NEED THIS DONE ASAP 20 POINT In 2 paragraphs Discuss the differences between U.S. foreign policies during the Cold War and discuss which policy you believe was most effective and why. Which policy do you think was least effective and why? Determine whether AB and CD are parallel, perpendicular, or neither. A(2,8), B(-1, -2), C(3, 7), D(0, -3) Consider the passage and theme. Devin kept a low profile in school. He attended classes and talked with his friends in the hall, but few knew him well. He rarely raised his hand in class and never spoke out of turn. Even in band class, he refused to draw attention to himself. Though he had earned the honor of first-chair saxophone, he did not reveal his passion for his instrument to his classmates. Then, sophomore year, Devin joined the marching band despite his fear of public scrutiny. The night of the first football game, his palms were sweating and his heart was racing as the band marched onto the field. But as soon as he began to play, his fears were forgotten, and through the glare of the lights he could see the crowd swaying and clapping to the music. Devin was completely at ease during his solo, and after the game a friend told him, "You were great! I didn't know you had it in you." Theme One: It is important to take risks. What other theme is addressed in the passage? A. People can reveal themselves through their passions. B. Music entertains people with varied interests. C. A leader knows how to share the spotlight with others. D. Shyness can prevent people from finding social success. A 68-year-old woman who presents after a fall reports progressive difficulty climbing stairs for the past 3 months. She also feels a loss balance when rising from a chair. She has a 5-year history of diabetes mellitus for which she takes metformin. Examination demonstrates intact cranial nerve function; normal sensory examination except for mildly decreased touch and vibration in her toes, normal motor function except for 4+/5 deltoid power and 4+/5 hip power bilaterally, and an inability to stand on her toes. Deep tendon reflexes are 2+ but 1+ at the ankles; plantar responses are flexor; cerebellar function is normal except for mild difficulty with heel-knee-shin testing. She has difficulty rising from a chair without pushing up with her hands. These clinical findings are best explained by dysfunction in which of the following regions of the nervous system?A. anterior horn cellB. muscleC. nerve plexusD. peripheral nerveE. spinal cord This map of Germany reflects which conflict?O A. World War IO B. World War IIC. Cold WarD. Russian Revolution A lawn-mowing company is trying to grow its business. It had 26 clients when they started its business and wants to increase by 3 new clients each week. Use an arithmetic sequence to write a function to represent this real-world situation and determine the range of the function for the first four weeks of data. f(x) = 3x + 26; 0 y 4 f(x) = 3x + 23; 26 y 35 f(x) = 3x + 26; 26 y 35 f(x) = 3x + 23; 0 y 4 What is an important part of the endocrine system that acts as a chemical messenger?hormonesarteriesspinal cordneurons Identify the hypotenuse.A. MNB. LN find the y intercept One student filled three-fourths of a flask with water and closed its mouth with a rubber stopper. He put a glass tube through the hole in the rubber stopper. The flask was heated on a Bunsen burner. After some time the boiling water was forced up through the glass tube as shown below. (1 point)Image of a flask sitting on a Bunsen burner, the flask is 3/4 filled with water, the flask is closed with a rubber stopper that has a glass tube through it, water is rising to approximately 1/3 of the glass tube.The student's experiment demonstrates the formation ofwellscavesgeyserssinkholes which way are the Articles of Confederation and the US Constitution similar? A. Both allow the federal government to require state payments. B. Both allow the federal government to regulate trade. C. Both allow the federal government to create a uniform federal tax rate. D. Both allow the federal government to coin money.