The variable strFirst's scope is _____.

The Variable StrFirst's Scope Is _____.

Answers

Answer 1
pretty sure it’s d, hope this helps
Answer 2

Answer:

- the usernameMaker function

Explanation:

When you look at the code, you can see it's located alongside the usernameMaker. It it only utilized then, therefore being it's scope. For reassurance, it's also correct on Edge.

I hope this helped!

Good luck <3


Related Questions

Two character strings may have many common substrings. Substrings are required to be contiguous in the original string. For example, photograph and tomography have several common substrings of length one (i.e., single letters), and common substrings ph, to, and ograph as well as all the substrings of ograph. The maximum common substring length is 6. Let X = X122 . Im and Y = yıy2 - - • Yn be two character strings. Using dynamic programming, design an algorithm to find the maximum common substring length for X and Y using dynamic programming. Please follow the general steps for designing a dynamic programming solution as in Q1 (other than the actual programming part).

Answers

Answer:

Explanation:

The following function is written in Java. It takes two strings as parameters and calculates the longest substring between both of them and returns that substring length.

import java.util.*;

class Test

{

   public static void main(String[] args)

   {

       String X = "photograph";

       String Y = "tomography";

       System.out.println(X + '\n' + Y);

       System.out.println("Longest common substring length: " + longestSub(X, Y));

   }

   static int longestSub(String X, String Y)

   {

       char[] word1 = X.toCharArray();

       char[] word2 = Y.toCharArray();

       

       int length1 = X.length();

       int length2 = Y.length();

       int substringArray[][] = new int[length1 + 1][length2 + 1];

       int longestSubstringLength = 0;

       

       for (int i = 0; i <= length1; i++)

       {

           for (int j = 0; j <= length2; j++)

           {

               if (i == 0 || j == 0)

                   substringArray[i][j] = 0;

               else if (word1[i - 1] == word2[j - 1])

               {

                   substringArray[i][j]

                           = substringArray[i - 1][j - 1] + 1;

                   longestSubstringLength = Integer.max(longestSubstringLength,

                           substringArray[i][j]);

               }

               else

                   substringArray[i][j] = 0;

           }

       }

       return longestSubstringLength;

   }

}

Other Questions
Una camisa me costo $10.500, con lo que gaste el 25% de mi dinero cuanto dinero tenia? (puede ir con desarrollo) HELP PLEASE WILL LEAVE GOOD RATING Simplify: x + 2y - 3z + 4x 5y + 6z The Ming Dynasty was characterized byA. the repair of the Great WallB. lower taxesC. acquiring new landsD. all of the above Miko and her parents rent boats for the afternoon. Her parents rent a canoe and Miko rents a kayak. It costs $20.49 to rent a canoe plus an additional $7.49 for each hour. It costs $17.99 to rent a kayak plus an additional $5.99 for each hour. Miko and her parents rent one canoe and one kayak for the same amount of time, and their total cost for the rentals is $78.92. Write and solve an equation to determine the amount of time, in hours, that they rented the kayak and canoe. Please help me need ASAP Pls help spanish home work Please do both Helppppppppppp!!!!! Please Why doesn't Katniss kill Snow?Snow and Katniss have decided to become allies.BSnow offers to adopt Katniss.C Snow poisoned Katniss with the scent of his white roses.D Katniss realizes that Snow is dying and is no longer the leader of Panem, in turn shechooses to use her arrow on Coin. paul is 5 feet tall and casts a 12-foot shadow. A nearby tree casts a 42-foot shadow. how tall is the tree Find the missing side. Roundto the nearest tenth.1744x = [?] 8. Which of the following is not true about the mandate system? A. Britain and the U.S. controlled the areas of the former Ottoman Empire. B. It would prepare former Ottoman Empire territories for future independence. C. Britain and France controlled the areas of the former Ottoman Empire D. This will lead to long-simmering resentment of European control in the region The new number 200 is 400 less than the original number what is the approximate per percent change Penny Arcades, Inc., is trying to decide between the following two alternatives to finance its new $28 million gaming center: a. Issue $28 million of 6% bonds at face amount. b. Issue 1 million shares of common stock for $28 per share. 2. Which alternative results in the highest earnings per share President Roosevelt did not want to support the growing Japanese empire, so he placed an ___________ on Japan, which banned the import and export of oil.A.armisticeB.allianceC.reparationD.embargo The price of a dress wasreduced from $60 to $45.By what percentage wasthe price of the dressreduced? Function f (x) = 25x/x + 3 has a discontinuity at x = 3. What are Limit of f (x) as x approaches negative 3 minus and Limit of f (x) as x approaches negative 3 plus? Which of the following is a process used by animals that produces carbon dioxide as a by-product? Combustion Diffusion Photosynthesis Respiration What is the scientific name for a pig? PLEASE HELPConjugate the -ar verb.La maestra nunca (gritar) en la clase.a) gritasb) gritanc) gritod) grita