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
USPshnik [31]
3 years ago
13

Which of the following are actions a programmer could take when debugging a segment of code that would most likely lead to findi

ng a problem and fixing it? (choose two)
A. Change the names of variables within the program and run the program again.
B. Display the value of variables at various points during the program.
C. Ask a friend or collaborator to look over the code segment to see if they are able to find any errors.
D. Delete the code and re-type it to make sure there were no spelling errors and that it was written correctly.
Computers and Technology
1 answer:
Verizon [17]3 years ago
6 0

Answer:

Option B and C are the correct answer for the above question

Explanation:

The above question asked about the work of the programmer to catch an error of the program--

  • Then the option B states that the programmer needs to prints the value of the various program variable on every line of the program which is the correct solution because it is used to find the error easily. It defines the value of every variable in every place of the program and the programmer caught the error statement in the program if anywhere the variable gets the false value.
  • The C option states to help from a friend, it is also a good solution because the friend can easily be caught the error of the program by seeing every line of code.
  • But the other option is not correct because the option A states that the change the name of the variable which is not a result of anything.
  • And the option D states that the code will be retyped again which is also not justify anything.

You might be interested in
9.17 LAB: Acronyms An acronym is a word formed from the initial letters of words in a set phrase. Write a program whose input is
AlexFokin [52]

Answer:

Hence the code is given as follows,

import java.util.Scanner;

public class LabProgram {

   public static String createAcronym(String userPhrase){

       String result = "";

       String splits[] = userPhrase.split(" ");

       for(int i = 0;i<splits.length;i++){

           if(splits[i].charAt(0)>='A' && splits[i].charAt(0)<='Z')

               result += splits[i].charAt(0);

       }

       return result;

   }

   public static void main(String[] args) {

       Scanner scan = new Scanner(System.in);

       String s = scan.nextLine();

       System.out.println(createAcronym(s));

   }

}

6 0
3 years ago
In the Dynamic Partitioning technique of memory management, the placement algorithm that scans memory from the location of the l
Shtirlitz [24]

Answer:

best-fit

Explanation:

Best-fit: Closest in size to the request: In the Dynamic Partitioning technique of memory management, the placement algorithm that scans memory from the location of the last placement and chooses the next available block that is large enough to satisfy the request

3 0
3 years ago
Adding _____ will allow the user to create text as it will often appear in publications with multiple articles, such as a newspa
mart [117]
Does applications make sense <span />
5 0
4 years ago
Read 2 more answers
A company's intranet is set up on this type of server.
Scrat [10]

Answer:

The answer to the given question is "communication".

Explanation:

In the given question the answer is communication because An intranet is a private network within a company that is used to securely exchange confidential information and resources among employees. and all option are not correct that can be described as:

  • In the intranet, we use the web browser to open web application.
  • The print server is a software program that is used to manages print requests.
  • The web server is used to provide the communication.

That's why the answer to this question is "communication".

7 0
3 years ago
Which of the following items will you use to store your digital portfolio? A. notebook B. file C. flash drive D. folder
AnnZ [28]

Answer:

C)

Explanation:

that what i would use

3 0
3 years ago
Read 2 more answers
Other questions:
  • Data silos are often associated with ________________.
    12·1 answer
  • Why are user application configuration files saved in the user’s home directory and not under /etc with all the other system-wid
    6·1 answer
  • A. What sectors are used with Foo?
    8·1 answer
  • Implement a method called bubbleSort, that takes an ArrayList, sorts it using bubble sort algorithm, and returns a sorted list;
    14·1 answer
  • CIST 1122 Project 2 Instructions
    11·1 answer
  • ¿Cuánta energía consumirá una lavadora de 1200W de potencia, si se deja conectada durante 20 horas? ¿Cuánto deberemos pagar si e
    7·1 answer
  • Given positive integer num_insects, write a while loop that prints that number doubled up to, but without exceeding 100. Follow
    6·1 answer
  • Organizations following Waterfall methodology usually begin with requirements gathering, in which the development team attempts
    14·1 answer
  • In a well-developed paragraph - using domain-specific vocabulary and academic writing - address the following writing prompt:
    12·1 answer
  • People who connect one network to another within the company or even across organizations are A. central connectors. B. boundary
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!