Q11hard
(Code Output) What will this pseudocode print?
x = 10
while (x > 5):
x = x - 2
print(x)
Topic-wise practice questions for Problem Solving & Analytical Skills. Test your knowledge, check solutions on demand, and pace your preparation.
x = 10
while (x > 5):
x = x - 2
print(x)
for i from 1 to 4:
if (i == 2):
continue
print(i)
What is printed?
flag = False
while (NOT flag):
print("Running")
flag = True
print("Done")
How many times will "Running" be printed?arr of size N?
for i from 0 to N-1:
if (arr[i] < 0):
arr[i] = 0