Ava45018 Ava45018
  • 19-03-2020
  • Computers and Technology
contestada

Why is the answer B?

Why is the answer B class=

Respuesta :

problemsolver2019
problemsolver2019 problemsolver2019
  • 20-03-2020

Answer:

The first for loop will add =["1", "2",..............."10"]

The second for loop will delete 1, 3, 5, 7, 9

Since, k = 1 and the k = 1+2 =3 and so on till 9, and not 11 as 11 is more than 10.

And hence, the output will be [2,4,6,8,10] and which is B.

Explanation:

B is the correct answer, and as explained in the answer section.

Answer Link

Otras preguntas

In what way did President Taft accomplish more than President Roosevelt?
One of the best network traits you can develop is A. Cheeriness B. A modest attitude C. The ability to listen D. Fearlessness Penn foster peeps help me out
As far as we know, approximately how many terracotta warriors were created to protect Shi Huangdi's tomb?
I need to know the combined total
What is one advantage of organic farming over conventional farming? A. Yields generally are higher than in conventional farming. B. Organic products are gua
The fact that we cannot have everything we want is caused by scarcity benefits trade-offs demand
As the human immunodeficiency virus (hiv begins to kill the host's _____________________, the host's immune system begins to fail.
Can you guys tell me what's the answer please I'm stuck
the first step in using time more efficiently is
What got the farmers in western Pennsylvania so upset?