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
salantis [7]
3 years ago
15

PLS HURRY Look at the image below

Computers and Technology
1 answer:
Nimfa-mama [501]3 years ago
4 0

Answer:

20

Explanation:

During the first iteration for the list [1, 4], numB = 1.

During the first iteration of the list [2, 3], numA = 2.

answer = answer + numA + numB

= 0 + 2 + 1

= 3

Since the list [2, 3] is in a nested loop, we need to first finish iterating the whole list before numB iterates to the next number, so numA = 3 this time and numB still stays at 1.

answer = answer + numA + numB

= 3 + 3 + 1

= 7

Now, numB moves to 4 and numA starts back at 2 again.

answer = answer + numA + numB

= 7 + 2 + 4

= 13

numB still says at 4 and numA moves to 3 since it is in a nested loop:

answer = answer + numA + numB

= 13 + 3 + 4

= 20

print(answer) will print the output 20.

Hope this helps :)

You might be interested in
Quick SearchLinks to an external site. lets you refine or narrow your search results using links on the right side of the screen
nikdorinn [45]

Answer:

Answer is

By topic, By collection.

Refer below.

Explanation:

Quick SearchLinks to an external site. lets you refine or narrow your search results using links on the right side of the screen. Do a search on wind power. Some criteria that can refine your search results in Quick Search are:

By topic

By collection

5 0
3 years ago
Which of the following describes how modern operating systems function?: A
sertanlavr [38]

Answer:

Try B

Explanation:

6 0
3 years ago
Write a program which:
Studentka2010 [4]

Answer:

Ill do this in C# and Java

Explanation:

C#:

public static void Main(string[] args)

       {

           string input = Console.ReadLine();

               switch (input)

               {

                   case "A1":

                       Console.WriteLine("Footwear:");

                       Console.WriteLine("Shoes");

                       break;

                   case "B1":

                       Console.WriteLine("Tops:");

                       Console.WriteLine("Jackets");

                       break;

                   case "C1":

                       Console.WriteLine("Pants:");

                       Console.WriteLine("Trousers");

                       break;

                   case "A2":

                       Console.WriteLine("Footwear:");

                       Console.WriteLine("Trainers");

                       break;

                   case "B2":

                       Console.WriteLine("Tops:");

                       Console.WriteLine("TShirts");

                       break;

                   case "C2":

                       Console.WriteLine("Pants:");

                       Console.WriteLine("Shorts");

                       break;

                   default:

                       Console.WriteLine("Incorrect Input");

                       break;

               }

       }

Java:

public static void main(String[] args)

   {

       Scanner myObj = new Scanner(System.in);  // Create a Scanner object

       String input = myObj.nextLine();

       {

           switch (input)

               {

                   case "A1":

                       System.out.println("Footwear:");

                       System.out.println("Shoes");

                       break;

                   case "B1":

                       System.out.println("Tops:");

                       System.out.println("Jackets");

                       break;

                   case "C1":

                       System.out.println("Pants:");

                       System.out.println("Trousers");

                       break;

                   case "A2":

                       System.out.println("Footwear:");

                       System.out.println("Trainers");

                       break;

                   case "B2":

                       System.out.println("Tops:");

                       System.out.println("TShirts");

                       break;

                   case "C2":

                       System.out.println("Pants:");

                       System.out.println("Shorts");

                       break;

                   default:

                       System.out.println("Incorrect Input");

                       break;

               }

       }

3 0
4 years ago
Which data type would you ascribe to a pointer? (unsigned) real (unsigned) integer boolean No answer text provided.
poizon [28]

Answer:

The Unsigned Integer

Explanation:

Solution

The data type i would ascribe to a pointer is the unsigned integer because it can be a pointer (int*number).

The unsigned Integer: they are like integers that is whole numbers, but have the property that they don't contain a + or - sign related with them. thus they are seen as non-negative (zero or positive).

6 0
3 years ago
||Can candid / posed pictures be about animals??||
Mumz [18]

Yes, they can involve animals! Hope this helps(:

6 0
4 years ago
Other questions:
  • When you develop an application using a 3-layer architecture, the layer that provides the user interface is called the _____ lay
    13·1 answer
  • In any *NIX system, after saving a script named "script_name," you need to make it executable so that you can run it. Which comm
    12·1 answer
  • A computer "nibble" consists of four "bits," each bit being either a 0 or a 1. If characters are represented using a code that u
    12·1 answer
  • What laws are broken when you hack someone?
    9·1 answer
  • Related to Image Classification
    13·1 answer
  • Which option is the default when creating appointments and meetings in a user’s own calendar as it relates to Free/Busy informat
    8·1 answer
  • Case Project 9-4: Troubleshoot an IP configurationYou work at a help desk and have just received a call from an employee who say
    11·1 answer
  • Which of the columns (A) to (I) in the truth table below is correct for the expression
    13·2 answers
  • 56- What is the term used when you press and hold the left mouse key and more the mouse
    8·1 answer
  • How has the widespread shift to remote work caused businesses to reconsider their use of Extended Reality (XR)?.
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!