Which of these is a programming best practice?
Use general variable names such as V1 and V2.
Use lots of comments in the code.
Make lines of code as long as possible.
If you need to repeat a function, paste a copy of it each time you need it.

Answers

Answer 1

Answer:

B

Explanation:

You should question C. That looks like a very poor practice, but sometimes it can't be helped. Try and make short lines

D also looks questionable. You'll wind up with pages and pages of code. A better practice is to create subroutines (functions and procedures in the language I use) and then learn how to pass parameters.

A is not a good idea either because if you look at the code a month later, chances are you won't know the difference between v1 and v2.

The best answer is B. But how many programmers do it?

Answer 2

Answer:

B. use lots of comments in the code

Explanation:


Related Questions

Forests are crucial to the health of our planet because they __________. A. Can easily be cut down to make room for agriculture and cattle grazing B. Provide homes for species of plants that are used to make medicines C. Clean and protect the atmosphere by absorbing carbon dioxide and releasing oxygen D. Provide fuel and lumber for houses and industries

Answers

Answer:

C

Explanation:

Trees release oxygen :)

Answer:

C. clean and protect the atmosphere by absorbing carbon dioxide and releasing oxygen

Explanation:

9. A convex lens of focal length 8 cm forms a real image of the same size as th
object. What will the distance between the object and its image be:
1) 32cm
2) 8cm
3)16cm
4)24cm​

Answers

Answer: 32cm

Explanation:

Since the focal length of the convex lens is 8cm, the distance between the object and its image be 4f which will be:

= 4 × f

= 4 × focal length

= 4 × 8

= 32cm

The distance between the object and its image is 32cm.

1.Menciona tres factores o variables que consideras influirán en el oscurecimiento del alimento cortado o pelado expuesto a la intemperie

Answers

La respuesta correcta para esta pregunta abierta es la siguiente.

A pesar de que no se incluyen opciones o incisos para responder a la pregunta, podemos comentar lo siguiente.

Los tres factores o variables que considero influyen en el oscurecimiento del alimento cortado o pelado expuesto a la intemperie son los siguientes.

1.- La exposición al elemento "oxígeno" cuando están a la intemperie.

2.- La temperatura del medio ambiente que afecta directamente al alimento.

3.- Los minerales y los metales que constituyen al alimento cuando tienen contacto con el medio ambiente.

En estos momentos, las sustancias que componen al alimento comienzan a tener reacciones químicas y se empiezan a oxidar cuando permanecen abiertas a temperaturas ambiente.

Es por eso que los expertos recomiendan que una vez abierta la comida -la fruta, la verdura- tiene que refrigerarse lo más pronto posible para poderse conservar un poco más de tiempo.

Sharon wants to include her name on each slide in her science presentation. Where in the Header and Footer dialog box would she type her name?

Answers

Answer:

She will type her name in the Footer

Explanation:

To answer this question, I will assume Sharon is using the Microsoft Office PowerPoint package to handle her presentation.

In PowerPoint, the footer helps users to add names or any other details on every slide.

To do this:

Go to INSERT in the menu barThen, go to Text menuSelect Header & Footer to open the boxCheck the Footer optionEnter the text in the provided text box(This is where Sharon will enter her name)Lastly, click Apply to All to effect the changes

The 60-watt light bulb has a 400 hour life expectency how much will it cost to operate during its time

Answers

Answer:

$2.40

Explanation:

the unit electricity bill is kilo watt hour.

The 60-watt light bulb has a 400 hour life expectency means it will consume

60×400/1000 = 24 KWh units of electricity. Let us suppose each unit of electricity costs is 10 cents.

Then 24×10 = 240 cents  = $2.40

1) "Information systems are revolutionizing the way businesses function in the 21st century," Do you agree or disagree with this statement? Provide evidence to support your position, (2 points)​

Answers

Answer:

true

Explanation:

everything is computerized. banks, shopping, financial business records, ect

Can someone write this in java? Also, does anyone know how to do Edhesive assignments? I NEED HELP!!!!!

Answers

Answer is in the file below

tinyurl.com/wpazsebu

Each menu title in an application does not need to have a unique access key.

Answers

Answer:

Explanation:

True

how to use function in python

Answers

Answer:

Use the keyword def to declare the function and follow this up with the function name.

Add parameters to the function: they should be within the parentheses of the function. ...

Add statements that the functions should execute.

I really need help in this!!!

Type the correct answer in each box. Spell all words correctly.

How does an employer judge a candidate?

The employer judge's the candidate's ________ for a job.

Answers

Answer:

An employer always looks over a candidate's resume (pronounced "reh-zoo-may" before deciding to hire them.

Explanation:

this not a queston but a warning

if you see a tnyInk link DO NOT DOWNLOAD THE FILE IN IT they most likley contain malware and if you see that link in a comment report it please it will help. and also show this to your freinds or someone.

Answers

okay. epic swag man. z

Give 3 features and uses of
Desktop
laptop
palmtop computer

Answers

Answer:

A Palmtop or hand-held personal computer is small enough to hold in one hand and operate with the other. Also called a handtop, these ultra-small computers may have specialized keyboards or keypads for data entry applications or have small qwerty keyboards.

• Palmtops are also called PDAs, hand-held computers and pocket computers.

• Palmtop or hand-held personal computer, lightweight, small, battery-powered, general-purpose programmable computer. It typically has a miniaturized full-function, typewriter like keyboard for input and a small, full color, liquid-crystal display for output. In addition to an operating system that is compatible with that of a desktop computer, a palmtop will typically contain a word processor, a spreadsheet program, and a calendar and phone book. A variety of other programs can be loaded and executed, and data can usually be transferred to and from a desktop computer. Although some palmtops are like personal digital assistants in that they accept handwritten or touch screen input, they generally differ in that the palmtop has more memory, a keyboard, and a greater variety of available programs.

Explanation:

Which of the following items are not a
component of a graphical user
interface?
(A) windows
(B) icons
(C) menus
(D) prompts​

Answers

Answer:

D

Explanation:

we dont use prompts on graphical iser

Prompts​ following items are not a component of a graphical user interface.

What is Graphical user interface?

A mouse is used to interact with a graphics-based operating system interface, which uses menus and icons to govern user interaction. The Xerox GUI was made popular in the 1980s by the Apple Macintosh.

However, Microsoft Windows, the company's GUI, has since become the standard user interface for personal computers. At the time, Microsoft's operating system, MS-DOS, required the user to input particular commands (PCs).

A graphics library, an interface toolkit, an interface style guide, and standardized applications make up a complete GUI environment. A high-level graphics programming interface is offered by the graphics library.

Therefore, Prompts​ following items are not a component of a graphical user interface.

To learn more about Graphical user, refer to the link:

https://brainly.com/question/14758410

#SPJ2

What is "public static grossPay()" an example of?



A) Method()


B) Literal()


C) Private()


D) Order()

Answers

Answer:

A) Method()

Explanation:

This is an example of a Java method header. It has the visibility modifier called public which makes it visible to other classes. It is a static method which means it can be only be called through the Class's name because an object instance of it cannot be created. It is named grossPay and has no parameters and does not return any type.

How can I hide my cracked phone screen? or How can I fix it myself without my parent finding out? or How can I fix my phone without going to a repair shop?

Answers

Ummm I don’t know how to answer that

HOW CAN YOU GET THE COOLEST FONTS ON GOGGLE SLIDES???

Hint: Im looking for like bubble letters or like stuff to like install for goggle slides, now mind u i do have a/am using a Chromebook so ya

Answers

i would love to help. but if you could text my number i could help more. i have a chromebook

Answer:

mhmm. you can go to www.bubbleimages.com

Explanation:

what is computer memory measured in​

Answers

Answer:

MB I think I learned it actually.

Explanation:

To make your brand colors stand out, it is important to implement what with your color scheme?
A. Blacks
B. Grays
C. Whites
D. All of the above.

Answers

Answer:

All of the above

Explanation:

It's better to have a pattern of colors than one single color in you color scheme.

Answer:

D. All of the above

Explanation:

Most wires are covered in rubber to insulate them and keep people safe from electricity and heat true of false

Answers

Answer:

I think it is true...

Explanation:

Hope its right

According to the narrator of "EPIC 2015, in 2015, "news" is:
A. fed to a monitor in all homes and is required to be on at all times.
B. provided by hard-working journalists who are committed to truth.
C. reorganized and combined with other information for individuals.
D. created by apathetic journalists who care little how true a story is.

Answers

Answer:

D created by apathetic journalists who care little how true a story is.

Explanation:

D

Based on the narrator of "EPIC 2015, in 2015, "news" is reorganized and combined with other information for individuals.

What is a reorganization?

The term  reorganization connote a vital and disruptive way that is used to restore a troubled business or any other thing to ensure its usefulness. It can be through the act of shutting or through the act of replacement, etc.

Conclusively, using the narrator point of view as written in "EPIC 2015, in 2015, "news" as said to have been reorganized and there was a combination of news with other information for people.

Learn more about narrator from

https://brainly.com/question/1934766

Fill in the blank to make the following true.
2 ** 3 =

Answers

Answer:

2 ** 3 = 8

Explanation:

Answer:

8

Explanation:

Question, what do yall like gaming better with, Contoller, touch screen, or keyboard and mouse?

I like gaming with a contoller better, and when the game has a built in ch at like among us, pubg etc. i use the keyboard to type.

Answers

Answer:

I like to used the keyboard to type and controller too.

Explanation:

Answer:

Gaming with MnK is better

Explanation:

Mouse and keyboard allow for faster response times

The programs that run on a computer are called:

Answers

Software.............

Can someone please answer these, I'm tired of wasting points on questions that no one answers.

Describe the respective benefits of participatory design and contextual design, with examples of situations in which each might be preferred.

Outline which activities involve mathematical reasoning skills..

Explain the most appropriate methods to use in designing a product for the user in the following scenario, including aspects of the user interface that might need special attention.
Situation: A researcher approaches a designer with a request for a computer interface that will allow the evaluation of the ways children process spatial relationships and the various changes as they learn and develop. The computer interface will not have to perform any task but to play visual spatial games, recording and analyzing all elements in how children between the ages of 2 and 5 manipulate visual objects on a screen.

Answers

What format do you need it in?

What is the velocity of a 0.100kg car with a momentum of 5 kgm/s?

Answers

Answer:

v = 50 m/s

Explanation:

p = mv

5 = 0.1v

v = 50

Activity in September 2014, the Federal Bureau of Investigation (FBI) announced that is next generation Idenufication system was fully functional The FBI named it the integrated Automated Fingerprint Identification system (IAFIS), Conduct online research on this system and answer the following questions 1. Which elements can be stored in IAFIS? 2. What is the response time of this system? 1. How has this system benefited the FBI​

Answers

Answer:

(Answers may vary.)

In addition to fingerprints, IAFIS stores criminal histories, mug shots, and physical information like scars, tattoos, eye color, hair color, weight, and height. It also stores fingerprints of individuals who are or were employed by the US military and the federal government.

The system’s average response time for criminal fingerprint processing is about 27 minutes. Civil fingerprint processing takes over an hour.

Previously, the tenprint submission and identification was a manual, tedious process. It took the FBI weeks or months to process a single fingerprint submission. IAFIS has automated this process and added advanced identification capabilities. The submission and processing takes just few minutes. This has helped the FBI solve and prevent crime and tighten holds on criminals and terrorists.

Explanation:

HELP MY TABLET KEEPS ON REBOOTING I TRIED TO FACTORY RESET BUT IT KEEPS ON REBOOTING

Answers

Answer: try to restart It

Explanation:Random reboots can happen because of problems with the firmware, but can also be due to some app you installed that is making the system unstable, or perhaps some bad bit of data that is in the system cache. A corrupt SD card can also cause problems.

Answer: it most likely a thrid party app that is causing this

Explanation: Random restart problems are sometimes caused by a bad third party app. To check if that's the case here, try running your tablet on safe mode and observe. If it works normally and won't restart on safe mode for some time, that can mean that an app is causing the trouble.Mar 6, 2021

Here is the API for a robot library.
// moves the robot forward
function moveForward();

// turns the robot to the left
function rotateLeft();

// turns the robot to the right
function rotateRight();

// checks if a robot can move in any direction
// direction {string} - the direction to be checked
// return {Boolean} - true if the robot can move in that direction, otherwise returns false
function canMove(direction);
Which code segment will guarantee that the robot makes it to the gray square without hitting a wall or a barrier (black square)?



A.
B.
C.
D.

Answers

Answer:

hi

Explanation:

NEED ANSWERS ASAP 50 POINtTS!!!!
Katie wants to use VLOOKUP for a column in a table. Which value of the mode parameter should she use to look for an exact match of the searched data?
Katie should use the __ value of mode parameter for an exact match with the searched data.

Answers

Answer:

The exact match mode is the mode parameter that Katie should use to look for an exact match of the searched data

Further Explanation:

The VLOOKUP function in Excel helps us search for and retrieve information from a particular column in a table and lookups a value in the left-most column of the table. It has two modes of matching.

Exact matching – When you perform a range_lookup, an argument FALSE is defined to mean that there is an exact match of the return value.

To achieve this, select a cell in your Excel worksheet

Type =VLOOKUP in the type bar of the Excel sheet

Select the value to look up and then select the data range

Type the column number that you want to search and then type FALSE

Press enter

Answer:

The exact match mode is the mode parameter that Katie should use to look for an exact match of the searched data

Explanation:

The VLOOKUP function in Excel helps us search for and retrieve information from a particular column in a table and lookups a value in the left-most column of the table. It has two modes of matching.

Exact matching – When you perform a range_lookup, an argument FALSE is defined to mean that there is an exact match of the return value.

To achieve this, select a cell in your Excel worksheet

Type =VLOOKUP in the type bar of the Excel sheet

Select the value to look up and then select the data range

Type the column number that you want to search and then type FALSE

Press enter

Differentiate between a window and Windows​

Answers

Answer:

A window is a graphic control element which are controlled by the keyboard usually and windows is an operating system

Explanation:

Other Questions
Which of the following were true of the Northwestern tribes? (Select all that apply.) They were wood carvers, Society was divided into three classes: chiefs, freemen, and slaves, They valued wealth and status, They did not believe in slavery, They included the Chinook, Haida, and Nootka, They wore elaborate sandals and moccasins, They harpooned whales, Each nuclear family had its own house, Potlaches were great parties where the chief was given gifts by all his guests, They included the Tillamook, Tlingit, and Yurok. 3.Which of the following is a nonverbal strategy in public speaking?A. pronouncing key words loudly for emphasisB. using a series of wordsC. using gestures and facial expressionsD. varying the rate at which you speak 1-a. Prepare a contribution format income statement for the game last year. 1-b. Compute the degree of operating leverage. 2. Management is confident that the company can sell 18,000 games next year (an increase of 3,000 games, or 20%, over last year). Given this assumption: a. What is the expected percentage increase in net operating income for next year? b. What is the expected amount of net operating income for next year? (Do not prepare an income statement; use the degree of operating leverage to compute your answer.) What is the correlation between a tax rate of zero and a tax rate of 100% government? What do I know helps you figure out your Due to recent political and economic events, general prices of goods and services are expected to increase significantly over the next five years. You were about to purchase a five-year bond. You now require a higher return on the bond than you did before you found out about these expected price increases. Determine which of these fundamental factors is affecting the cost of money in the scenario described: How are fossil fuels taken from earth? The radius of the base of a metallic rod is 2 centimeters, and its height is 24 centimeters. What is the volume of this cylinder? A. 96pi cm B. 92pi cm C. 84pi cm D. 98pi cm 0.862 y. 0.917ayudaaaaaaaaaaa(lo escriben en espaol no hablo ingles) Most populations do not experience: ____ va) exponential growth b) Linear growth c) Resources d) Competition Each side of a square classroom is 8 yards long. The school wants to replace the carpet in the classroom with new carpet that costs $72.00 per square yard. How much will the new carpet cost? Kevin has $50 and wants to buy some art paper and paints. One pack of art paper costs $12, and the paints cost $6 per tube. He buys 2 packs of paper. Which inequality should Kevin solve to find the maximum number, n, of tubes of paint that he can buy? List 3 ways you can tell a friend no Andrew has $90 in a savings account. The interest rate is 10% per year and is not compounded. How much interestwill he earn in 2 years? Find the surface area of a basketball with a diameter of 10 in.25 in10 in100 in400 in Can Poor mental health be long-lasting? Why? How can you access your router if your provider is spectrum I've tried calling spectrum, they tried helping me but somehow it hasn't really helped me, is there any other way that I can access my router? what is the exact value of cos5pie/12 Computing Number of SharesThe charter of Vista West Corporation specifies that it is authorized to issue 212,000 shares of common stock. Since the company was incorporated, it has sold a total of 145,000 shares (at $16 per share) to the public. It has bought back a total of 15,000. The par value of the stock is $6. When the stock was bought back from the public, the market price was $23.Required:1. Determine the authorized shares. 2. Determine the issued shares. 3. Determine the outstanding shares. In the story "First Steps," how does Maria's act of leaving thespaceship to explore the new planet affect the story?She gains the respect of Captain Curran and the other children.It gives her friends the confidence to join her. She encounters dangerous animals for the first time.It overwhelms her and she returns tot he ships for safety.