Looking for Course 67 test answers and solutions? Browse our comprehensive collection of verified answers for Course 67 at dl.guscollege.com.
Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!
Що буде в результаті виконання коду:
name = "John"
print("Hi, %s" % name)
Скільки разів виконається цикл?
i=1000
while i > 100:
print (i)
i/=2
В чому помилка у цьому коді?
i = 0
while i < 5:
print(i)
Скільки буде значення змінної x після 4 ітерацій циклу? (впишіть число)
x = 1
i = 0
while i < 4:
x = x + 2
i += 1
Визначте, що буде надруковано в результаті виконання наступного скрипта:
a=23
b=4
while a>b:
if a % 2 == 0:
b=b+a
else:
a = a - 2 * b + 1
print(а)
Скільки разів виконається тіло циклу?
i = 0
while i < 3:
print(i)
i += 1
Що буде результатом цього коду?
x=23
num = 0 if x > 10 else 11
print(num)
Який алгоритм реалізовано в цьому коді?
a = 48
b = 18
while b != 0:
a, b = b, a % b
print(a)
Який оператор здійснює вихід із циклу навіть у тому випадку, коли умова виконується і не всі операції ще виконані?