Which of the following is the best example of a way in which a programmer can use abstraction to manage the complexity of a program?

Replacing each instance of repeated code with a call to a procedure

Replacing longer variable names with shorter variable names to reduce typing errors

Replacing several lines of documentation with a single line of documentation

Replacing lists with individual variables

Answers

Answer 1
Answer : C

Explanation
Answer 2

The best example of a way in which a programmer can use abstraction to manage the complexity of a program is to  Replacing longer variable names with shorter variable names to reduce typing errors.

Why the replacement?

The act of  Replacing longer variable names with shorter variable names to reduce typing errors is very important.

Conclusively, in any programming, to handle the complexity of a program, on can Replace the string variables such as name1, name2, name3, and name4 with the use of list of strings known as the shorter form called names.

Learn more about programmer  from

https://brainly.com/question/23275071


Related Questions

Using complete sentences post a detailed response to the following.

Many users do not like pop-ups such as alert boxes. Some people even have pop-up blockers in their browsers, which means that no boxes can pop up. As a website developer, would you include pop-up boxes? Why or why not? Should users block them in their browsers?

Answers

Answer:

No, I would not include pop-up ads in a website.

Explanation:

In my opinion, pop-up ads are very distracting and make it harder to navigate the website. If a website I'm on has too many pop-up ads I would leave. It drives people away and it annoys them.

There is a population of owls in a forest. In one year there are 20 new owls born and 10 owls die. In this same year, 5 owls entered the forest and 2 owls left. How did the population of owls change in one year?

Answers

Answer:

The owls population increased by 13 in one year

Explanation:

The given data on the owl population are as follows;

The number of new owls born = 20 (positive increase in population)

The number of owls that die = 10 (negative decrease in population)

The number of owls that enter the forest = 5 (positive increase in population)

The number of owls that left the forest = 2 (negative decrease in population)

Let 'w' represent the number of new owls born, let 'x' represent the number of  owls that die, let 'y' represent the number of owls that enter the forest and let 'z' represent the number of owls that left the forest, we get;

The change in population, ΔP = w - x + y - z

By plugging in the values, we get;

ΔP = 20 - 10 + 5 - 2 = 13

The change in the population of owls in one year is an increase in 13 owls.

will robots take people's jobs?
write in complete sentence.

Answers

Answer:

yes

Explanation:

yes because they already have them for old gun ships (which they still use) and they have made cars with them and more including bombing situations IED detinators they used in Afghanistan and in Iraq in 2011.

Harold is working on a science project that includes a spreadsheet containing calculated results based on the data. An obviously incorrect result is being calculated and displayed. The data is correct, but the formula must be flawed. To get the correct information, Harold clicks on the cell containing the incorrect results and adjusts information contained in the:
A. the formula bar.
B. the shortcut toolbar.
C. the calculator pop-up.
D. the column header.

Answers

Answer: When entering a formula into a cell, you begin with  an equal sign

Functions and formulas are calculations a spreadsheet program applies to data.

Functions are preset calculations within spreadsheet software.

Formulas are user-entered calculations that may contain cell references, numerical values, and preset calculations.

how do i turn off itallics on a school chromebook i accidentally turned them on in another tab and i dont know how to undo them

Answers

u go in to the bar with i b u the is italics and u press it again and it will turn it off but u have to have the text selected

You learned that you can use the tags to insert a link to another webpage. One problem that webpage developers face is that, after a time, links may no longer work. Can you think of ways that you can avoid broken links?

Answers

Answer:

Create hyperlinks instead

Explanation:

algorithm of how to calculate the area of a square.

Answers

Answer:

In order to calculate area of a square, 'A' be the area of square and the length of the square be 'a'. Then we need to calculate A= a*a. Step 2 :- Accept as input, the length of the sides of the square, and store the value in variable a. Step 3 :- Calculate the area of the square (a*a) and store in a variable A.

Explanation:

Answer:

Area = side x side. For example, the area of a square of each side of length 8 feet is 8 times 8 or 64 square feet.

The following procedure is intended to return true if the list of numbers myList contains only positive numbers and is intended to return false otherwise. The procedure does not work as intended. PROCEDURE allPositive(myList) { index ←← 1 len ←← LENGTH(myList) REPEAT len TIMES { IF(myList[index] > 0) { RETURN(true) } index ←← index + 1 } RETURN(false) } For which of the following contents of myList does the procedure NOT return the intended result?

Answers

Answer:

[-1, 0, 1]

Explanation:

Given

The above procedure

Required

Which list does not work as intended

The question has missing options (the options are available online).

From the question, we understand the procedure is to return true for lists that contain only positive numbers.

However, the list does not work for [-1, 0, 1]

The reason is that; the procedure starts checking from index 1.

i.e. index ←← 1

In [-1, 0, 1], the element at index 0 is negative (-1).

Since the procedure starts checking from index 1, the procedure will not check the element at index 0 (i.e. -1).

Hence, it will return true, instead of false

In this exercise we have to use the knowledge of computational language in python, so we have that code is:

It can be found in the attached image.

So, to make it easier, the code in python can be found below:

NumList = []

Number = int(input("Please enter the Total Number of List Elements: "))

for i in range(1, Number + 1):

   value = int(input("Please enter the Value of %d Element : " %i))

   NumList.append(value)

print("\nPositive Numbers in this List are : ")

for j in range(Number):

   if(NumList[j] >= 0):

       print(NumList[j], end = '   ')

See more about python at brainly.com/question/2266606

name the default Package of java

Answers

Answer:

java.lang package

Explanation:

Java compiler imports java. lang package internally by default. It provides the fundamental classes that are necessary to design a basic Java program.

A friend is working on piecing together a computer. He calls and explains that he needs to buy a circuit board with ports and sockets that connects the main devices of his computer. Which computer component is he most likely explaining? Group of answer choices

Answers

So this component is the motherboard

Hope this helps.

-scav

jdr-wivg-vmb
co.me a.nd jo.in fa.st...
go.ogle me.et​​​​​

Answers

Explanation:

what is this don't post like this

Question #4
Multiple Choice
MEZEA
Which is immutable?
O dataset
O tuple
O deque
O list

Answers

Answer:

tuple

Explanation:

the inner machinations of my mind ar- hey wait i´m not Patrick

ASAP PLZZ

1. In the space below, explain how the Table Tools can be accessed in Word.

Answers

Answer:

Creating a Table

1) Click the Insert tab on the Ribbon

2) Click on Table

3) Highlight the number of columns and rows you’d like

OR

4) Click Insert Table

5) Click the arrows to select the desired number of columns

6) Click the arrows to select the desired number of rows

7) Click OK

areas in which there has been significant technological advancement (electricity, transportation, communication, etc.)?

Answers

Answer:

transportation,communication,health care and agriculture

Explanation:

transportation through the provision of vehicles

comminication through the use of mobile

phones and laptops

health care through the use of machines and incubators

agriculture through the use of tractors and fertilizers

What is motherboard ?​

Answers

Answer:

A motherboard is the main printed circuit board in general-purpose computers and other expandable systems. It holds and allows communication between many of the crucial electronic components of a system, such as the central processing unit and memory, and provides connectors for other peripherals

What is the first step to understand the potential impact to the business about a Security threat?

Answers

Answer:

Identify assets and their values

Explanation:

As a security analyst, the first step to determine the potential security threat is to understand

what kind of assets needs to be protected?what is the value of such assets?

what would be the most constructive response

Answers

Answer:

we cant tell what your talking abt please repost with at pitcher or a exolination

Explanation:

What is the purpose of a hyperlink in a presentation?
A to add a joke to a presentation
B to create an attractive image
C to connect a user to a new slide, a file, or a webpage
D to keep track of the order of slides

Answers

Answer:

Answer:c to connect a user to a new slide, a file, or a webpage

Explanation:

Explanation:c

Answer:

c

Explanation:

One way to use contiguous allocation of the disk and not suffer from holes is to compact the disk every time a file is removed. Since all files are contiguous, copying a
file squires a seek and rotational delay to read the file, followed by the transfer at full speed. Writing the file back requires the same work. Assuming a seek time of 5 msec, a rotational delay of 4 msec, a transfer rate of 8 MB/sec, and an average file size of 8 KB, how long does it take to read a file into main memory and then write it back to the disk at a new location? Using these numbers, how long would it take to compact half of a 16-GB disk?

Answers

Answer:

The answer is below

Explanation:

a) Seek time = 5 msec, transfer time = 4 msec, transfer rate = 8 MB/sec = 8000 KB/sec, average file size = 8 KB

Transfer time = 8 KB ÷ 8000 KB/sec = 1 msec

The time required to read and write is twice the sum of the seek and transfer time.

Total time = (5 msec + 4 msec) * 2 + 1 msec = 19 msec

b) half of 16 GB = 8 GB = 8000000 KB

number of read and writes = (8000000 KB of total file size/ 8 KB of average file size) * 2 = 2000000

Transfer rate = 8 MB/sec = 0.008 GB/sec

Transfer time = 8 GB ÷ 0.008 GB/sec = 1000 sec

Total time = (5 msec + 4msec) * 2000000 + 1000 sec = 19000 sec

meaning and explanation of fortran​

Answers

Definition of FORTRAN. : a computer programming language that resembles algebra in its notation and is widely used for scientific applications. Hope this helped!

Answer:

is a general-purpose, compiled imperative programming language that is especially suited to numeric computation and scientific computing.

Explanation:

Fortran, as derived from Formula Translating System, is a general-purpose, imperative programming language. It is used for numeric and scientific computing. Fortran was originally developed by IBM in the 1950s for scientific and engineering applications.

1 – Como contar uma história com responsabilidade e ética, utilizando técnicas aprimoradas para elaborar uma narrativa atrativa e responsável?

Answers

Answer:

Explain each part of the story in appropriate manner.

Explanation:

In order to tell the story with responsibility and ethics and create an attractive and responsible narrative, we have to explain each paragraph of the story that gives more information about the story as it proceeds to the audience. The story must have actions and humor in order to increase the interest of the listeners as well as a good message to the audience. Avoid inappropriate words or language during storytelling because it makes bad impression on the reader's mind.

What creative commons license allow for the work to be copied, distributed, displayed, or performed but modifications may not be made without the owner's consent

Answers

Answer:

No derivative works.

Explanation:

An intellectual property can be defined as an intangible and innovative creation of the mind that solely depends on human intellect. They include intellectual and artistic creations such as name, symbol, literary work, songs, graphic design, computer codes, inventions, etc.

Copyright law can be defined as a set of formal rules granted by a government to protect an intellectual property by giving the owner an exclusive right to use while preventing any unauthorized access, use or duplication by others.

A copyright can be defined as an exclusive legal right granted to the owner of a creative work (intellectual property) to perform, print, record, and publish his or her work. Also, the owner is granted the sole right to authorize any other person to use the creative work. For example, the copyright law which protects the sharing and downloading rights of music is known as the Digital Millennium Copyright Act (DMCA).

A creative commons license is simply a public copyright license that allows for the free distribution of a copyright protected material and it can only be used by the intellectual property owner.

Generally, there are four (4) main types of creative commons and these includes;

I. Attribution.

II. Share alike.

III. Non-Commercial.

IV. No Derivative Works.

No Derivative Works is a creative commons license which allow for a body of work (material) to be copied, distributed, displayed, or performed by another person but modifications may not be made without the owner's consent.

what would happen without satellites???

Answers

Answer: without satellites there would be no way for the world to communicate

Explanation:

Answer:

Explanation:

Without satellites, we wouldn't have much choice in our television programs either, because there would be no more direct-to-home broadcasting, and cable operators would no longer have easy access to such a wide variety of channels.

PLSSSSSS HELPPPP!!!!Which aspect of the water cycle directly affects erosion?

A.Precipitation transfers water back to the earth.

B.Transpiration transfers water from plants.

C.Condensation humidifies the atmosphere.

D.Evaporation forms clouds in the atmosphere.

Answers

Answer: A.Precipitation transfers water back to the earth.

Explanation:

Erosion affects waterways. If erosion is high, eroded particles deposit in river beds or available banks. Therefore, when there is a flood in such places lots of places will be under water. Erosion also cause river ships unoperability.

The aspect of the water cycle is that the water moves in a cyclic manner and affects the rate of erosion and deposition.  

The rate of rainfall determines the rate of erosion of the land surface. As water is an agent of erosion.  Option A is correct as it falls on earth.

Learn more about the aspect of the water cycle directly affecting.

brainly.com/question/14171817.

Wesellyoubuy, a consumer electronics company, received consumer complaints about its employees not being able to communicate with consumers properly. After investigating the prime reason behind these complaints, the management found that the consumer service employees were following the same strategy to address all types of consumer issues. The management immediately started a new training program for the consumer service employees where they were trained to respond to every possible query a consumer might have. Eventually, their service ratings and sales showed improvement. In this scenario, the consumer service team improved _____.

Answers

Answer:

customer satisfaction

Explanation:

The consumer electronics company started a new training program for the consumer service employees as the company found that the consumer service employees were following the same strategy to address all types of consumer issues due to which they were not able to communicate with consumers properly.

This leads to improvement in service ratings and sales.

In this scenario, the consumer service team improved customer satisfaction

(True or False) All notes have a rest?

Answers

Answer:

True i think i am not sure

Explanation:

Every type of note, like crotchets, minims etc, has a corresponding rest symbol that has the same time value.

Why should you list more than one font if you are formatting some text using CSS?
Not every browser supports every font.
CSS will select the font that fits best on the page.
CSS will use different fonts when the page is refreshed.
All of the fonts will appear in the webpage.
PLZZ HELP ME IM TIMED

Answers

Answer:

Because if one font is not available, it will fall back on the ones that are. By providing several, you have a higher level of control over what happens to the site if a browser does not support one of the fonts. The alternative is the browser deciding to use it's own default font as a fallback. This can result in the webpage looking weird.

Which of the following best describes the purpose of an IP address?

IP addresses provide a unique number for identifying devices that send and receive information on the Internet

IP addresses assist in the reconstruction of a message that has been divided into many packets

IP addresses indicate the location where an internet-connected computing device was manufactured

IP addresses indicate how many times an individual packet has been requested by a router

Answers

IP addresses provide a unique number for identifying devices that send and receive information on the Internet

The best describes the purpose of an IP address is, that IP addresses provide a unique number for identifying devices that send and receive information on the Internet. The correct option is A.

What is an IP address?

An IP address is an address of the network of computers connected to the internet. The address is a sequence of numbers that are provided by the internet servers.

The full form of the IP address is internet protocol. It is the online address that is provided by the internet provider, The address will easily recognize if the person is using the internet. This address will be connected to the computers.

Thus, the correct option is A. IP addresses provide a unique number for identifying devices that send and receive information on the Internet.

To learn more about IP addresses, refer to the link:

https://brainly.com/question/16011753

#SPJ6

What are benefits for robots doing work instead of humans?
What are some drawbacks for robots replacing humans?
write in complete sentences.

Answers

Answer:

Explanation:

Robots are able to complete tasks more efficiently and with more perfection than humans.

Humans in many production based jobs will loose their lively hood.

List two building techniques or materials that should be considered if you are building in Tornado Alley.

Answers

Have a strong foundation and a tornado shelter.
Other Questions
6 times the quotient of 3 and 5 The value of x can be 2 or 5The value of y can be 3 or 12List the possible values ofXY Please answer this question correctly PLSSSSSSSS HELPPPPPPPP What is Li Hongbo best known for? cos=-2/10. find the angle. plz help me hii please help asap ill give brainliest thanks The volume of a prism is the product of its height and area of its base, V = Bh. A rectangular prism has a volume of 16y4 + 16y3 + 48y2 cubic units. Which could be the base area and height of the prism?a base area of 4y square units and height of 4y2 + 4y + 12 unitsa base area of 8y2 square units and height of y2 + 2y + 4 unitsa base area of 12y square units and height of 4y2 + 4y + 36 unitsa base area of 16y2 square units and height of y2 + y + 3 units HELP ME PLS!!! ANSWER QUICKLY!!! Match the financial institutions with the services provided by them.commercial banksinvestment bankscredit unionsavings and loan associationspension fundinsurance companiesserve the interests of both investors as well as companies looking for capitalaccept deposits, finance home loans and have safe deposit facilities acts as a link between small money savers and home buyerscooperatives that lend and borrow money among themselvescollects money in the form of premiums with an assurance to protect the customer from risksprovides post-retirement benefits to employees does anyone do primavera online 8B i need help ASAPlots of point how does the acid rain pollute the great lakes Find the slope that passes through the points (1,4) and (-4,14) A: 1B: -2C: 1/2D: -1 The formula for the pH of a solution of hydronium ions is given by the logarithmic equation pH= -log[h3o^+], where [H3o^+] is the hydronium ion concentration. Find the pH of a certain agricultural product with the hydronium ion concentration of 4.7x10^-4The pH is =? Someone please answer theses 2 questions PLEASE math problem time lol Who were important war chiefs and what happened to them? y is inversely proportional to x^2When x = 4, y = 3.Find y when x= 5. I need help pleaseeee What is the volume of the triangular prism?