C XX asrning 50-yillarida


s += 1 print('%.2f' % (s / T))


Download 64.67 Kb.
bet3/3
Sana04.11.2023
Hajmi64.67 Kb.
#1745331
1   2   3
Bog'liq
Test

s += 1
print('%.2f' % (s / T))
J: 0.25



  1. Python dasturlash tilida berilgan quyidagi dastur natijasini aniqlang.

def f(n):


if n <= 2: return 1
return 3 * f(n - 1) - f(n - 2)


print(f(8))
J: 233



  1. Python dasturlash tilida berilgan quyidagi dastur natijasini aniqlang.

s = 0


for i in range(4, 257, 9):
s += i print(s) J: 3770



  1. Python dasturlash tilida berilgan quyidagi dastur natijasini aniqlang.

s = 0


for i in range(11):
for j in range(11):
s += (i & j) print(s)
J: 211



  1. Python dasturlash tilida berilgan quyidagi dastur natijasini aniqlang.

s = 0


for i in range(1, 11):
for j in range(1, 11): s += (i // j)
print(s)
J: 100



  1. Python dasturlash tilida berilgan quyidagi dastur natijasini aniqlang.

print([1, 2] * 3)


J: [1, 2, 1, 2, 1, 2]

S

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

J





























































T.J





























































Test bali___________________




Bog’ot tumanidagi 21-son maktabning 9-sinf o’quvchisi ________________________________________________________ning maktab ichki olimpiadasi uchun testi
Download 64.67 Kb.

Do'stlaringiz bilan baham:
1   2   3




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling