Computer Science, asked by drikithroshan3533, 7 months ago

What possible outputs(s) are expected to be displayed on screen at the time of
execution of the program from the following code? Also specify the maximum values
that can be assigned to each of the variables BEGIN and END.
import random
RUNS = [40,55,60,35,70,50]
BEGIN = random. (0,2)
END = random.r andint(1,3)
for i in range(BEGIN,END+1):
print(RUNS[i],end='#')
(i) 60#35# (ii) 60#35#70#50#
(iii) 35#70#50# (iv) 40#55#60#

Answers

Answered by gyadav30122000
0

Explanation:

What possible outputs(s) are expected to be displayed on screen at the time of

execution of the program from the following code? Also specify the maximum values

that can be assigned to each of the variables BEGIN and END.

import random

RUNS = [40,55,60,35,70,50]

BEGIN = random. (0,2)

END = random.r andint(1,3)

for i in range(BEGIN,END+1):

print(RUNS[i],end='#')

(i) 60#35# (ii) 60#35#70#50#

(iii) 35#70#50# (iv) 40#55#60#52 // integer literal

age // variable name

System.out.println("ABC"); // method call

"Java" // string literal

98.6D // double precision floating-point literal

89L // long integer literal

Similar questions