karrieblue karrieblue
  • 12-10-2020
  • Computers and Technology
contestada

How many times would the following loop iterate?
Set k = 1
While k < 5
Display k
Set k = k + 1
End While

Respuesta :

asarwar
asarwar asarwar
  • 13-10-2020

Answer:

The answer to this question is given below in the explanation section

Explanation:

The code is :

Set k = 1

While k < 5

Display k

Set k = k + 1

End While

this is a while loop, that will iterate 4 times and display the body of loop.  and at the fifth iteration, the loop condition does not meet the condition and the loop will get terminated.

Answer Link

Otras preguntas

on sara's computer, 3/8 of the hard drive is files. Of the files, 1/6 are games . What part of the hard drive is games?
What were the 4 major truths Jefferson presented in the declaration of independence?
2 ( 4a - 12 ) + 3a = 6a + 1
10u + 7 = 8 ( 2u - 4 ) - 9
Your model locomotive is 18 inches long. It is an exact model of a locomotive that is 72 feet long. A window on the locomotive is how many times wider than a wi
36 is _______% less than 60?
2 ( 4a - 12 ) + 3a = 6a + 1
36 is _______% less than 60?
A light plane flew from its home base to an airport 255 miles away. With a head wind, the trip took 1.7 hours. The return trip with a tail wind took 1.5 h
A light plane flew from its home base to an airport 255 miles away. With a head wind, the trip took 1.7 hours. The return trip with a tail wind took 1.5 h