logo

Crowdly

Browser

Add to Chrome

Алгоритмізація та програмування ННІ 4-25-101-102 Кб (2 сем)

Looking for Алгоритмізація та програмування ННІ 4-25-101-102 Кб (2 сем) test answers and solutions? Browse our comprehensive collection of verified answers for Алгоритмізація та програмування ННІ 4-25-101-102 Кб (2 сем) at kursant.khnuvs.org.ua.

Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!

Що буде результатом?

try:

raise KeyboardInterrupt

except Exception:

x = 1

finally:

x = 2

print(x)

0%
0%
0%
100%
View this question
При якому значенні b виконується умова 37 // b = 5 ?
0%
100%
0%
0%
View this question
Який результат буде виведено?

x = 1

y = 2

if x > y:

res = x

elif x == y:

res = x + y

else:

res = y - x

print(res)

0%
100%
0%
0%
View this question
Що повертає вираз a = -5; b = 2; a //= b; a?
0%
100%
0%
0%
View this question
Що буде результатом?

try:

print("A")

raise Exception("B")

except Exception as e:

print(e)

finally:

print("C")

0%
0%
0%
100%
View this question
Яке значення буде у змінній `x` після виконання?

x = 0

for i in range(5):

if i == 3:

break

x += i

print(x)

0%
0%
0%
100%
View this question
Що буде результатом?

x = -1

if x:

x += 10

else:

x = 0

print(x)

100%
0%
0%
0%
View this question
Який результат виконання?

def f(a, b=[]):

b.append(a)

return b

f(1)

print(f(2))

0%
0%
100%
0%
View this question
Що повертає вираз -17 // 4 + 17 // -4?
0%
0%
100%
0%
View this question
Що виведе програма?

x = 0

for i in range(1, 4):

for j in range(1, 4):

if i == j:

continue

x += 1

print(x)

0%
0%
0%
100%
View this question

Want instant access to all verified answers on kursant.khnuvs.org.ua?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome