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
Blababa [14]
2 years ago
15

Why should you keep lines of code short?

Computers and Technology
1 answer:
Nataly [62]2 years ago
3 0

The programmers should keep lines of code short because It makes the code more readable by other programmers.

<h3>Short lines of Code</h3>

Normally, a shorter lines of code are more efficient than spreading the code over several lines

Also, If a programmer have more lines of code, there are more places for bugs to hide and finding them might be more of a hassle.

So, the fewer lines of code can achieve the same results or much better than many lines of code

Hence, the programmers should keep lines of code short because It makes the code more readable by other programmers.

Therefore, the Option A is correct.

Read more about Short lines of Code

<em>brainly.com/question/20475581</em>

You might be interested in
Given the int variables x, y, and z, write a fragment of code that assigns the smallest of x, y, and z to another int variable m
Marysya12 [62]

Answer:

// here is code in C++.

#include <bits/stdc++.h>

using namespace std;

// main function

int main()

{

   // variables

   int x=5,y=2,z=9;

   int min;

   // find the smallest value and assign to min

   // if x is smallest

   if(x < y && x < z)

   // assign x to min

    min=x;

     // if y is smallest

else if(y < z)

 // assign y to min

    min=y;

// if z is smallest

else

 // assign z to min

    min=z;

// print the smallest

cout<<"smallest value is:"<<min<<endl;

return 0;

}

Explanation:

Declare and initialize variables x=5,y=2 and z=9.Then check if x is less than y and x is less than z, assign value of x to variable "min" .Else if value of y is less than value of z then smallest value is y, assign value of y to "min".Else z will be the smallest value, assign its value to "min".

Output:

smallest value is:2

6 0
3 years ago
Is this free? do i have to pay to use this app??
Virty [35]
No i don’t have to pay but there is additional stuff if you pay but i don’t pay for anything
3 0
3 years ago
Please Help ASAP. Marking Brainliest For Correct Answer.
mezya [45]

Answer: It is not working because it is missing the code needed to turn right.

Sentence :The robot would move forward two squares and would stay stuck there because it can not move forward nor turn left. You would need to add code for the robot to be able to turn right so that the robot can reach the goal

6 0
3 years ago
Which type of account will typically have the highest interest rate
Mazyrski [523]
The correct answer is D because customers then leave their money in the bank account for a fixed amount of time and cannot access it useless they pay a fine
8 0
4 years ago
Read 2 more answers
The Self-Quiz gives you an opportunity to self-assess your knowledge of what you have learned so far.
Kamila [148]

Answer:

a. True

Explanation:

A test can be defined as an examination or quiz given to a student (pupil) during an academic calendar in order to measure or determine his or her intelligence. It is usually graded based on a set of defined grades or scores.

The key characteristics of a well-designed test includes the following;

I. Standardization: it is important that test is set based on certain criteria and acceptable rules within the education community and curriculum.

II. Reliability: the questions contained in a test should be credible and backed by correct answers.

III. Validity: the test questions should be genuine and authentic across board.

Basically, a Self-Quiz is a form of test which is aimed at assessing or measuring the knowledge of a self quiz taker (user) such as a student or pupil.

This ultimately implies that, Self-Quiz avail an end users the opportunity to self-assess his or her knowledge of what he or she might have learned over a specific period of time.

However, any result or score obtained through a Self-Quiz count for nothing with respect to final grade or gaining admission into the university.

5 0
3 years ago
Other questions:
  • Life can get busy and hectic but relationships matter what is an effective way to mending relationships that may have been negle
    9·1 answer
  • How do you change your age on here? I accidentally put that i was 15 but i am only 13. How do I change this?
    12·1 answer
  • Where can you go in QuickBooks Online to import a list of products and services? Select the Quick Create icon and under the Tool
    12·1 answer
  • Which of the following is NOT a possible duty for a professional working in the Web and Digital Communications pathway?
    7·1 answer
  • You are troubleshooting a mobile device with no sound output from the headset or external speakers.
    6·1 answer
  • Write a function square_evens(values) that takes a list of integers called values, and that modifies the list so that all of its
    9·1 answer
  • Enlist the advantages of data consolidation in a spreadsheet
    10·1 answer
  • What is 11100111 to decimal form?
    9·2 answers
  • One benefit for a small business using the hosted software model for its enterprise software is that it can succeed without ____
    9·1 answer
  • Please please help I don’t understand this
    12·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!