C XX asrning 50-yillarida


qism: Har bir topshiriq 1,5 balldan baholanadi



Yüklə 64,67 Kb.
səhifə2/3
tarix21.10.2023
ölçüsü64,67 Kb.
#158667
1   2   3
Test

qism: Har bir topshiriq 1,5 balldan baholanadi





  1. Informatika fanining o‘tmishdoshi hozirgi kunda nima deb ataladi?

A) Dokumentalistika B) Computer science C) IT D) Kriptografiya



  1. Python dasturlash tilida berilgan quyidagi dastur natijasini aniqlang.

print(3 in [1, 2, 3, 4, 5])


A) False B) True C) dasturda xatolik mavjud D) 1



  1. Python dasturlash tilida berilgan quyidagi dastur natijasini aniqlang(qo‘shtirnoqlarsiz).

S = [['him', 'sell'], [90, 28, 43]] print(S[0][1][1])


A) “h” B) “90” C) “i” D) “e”





  1. Python dasturlash tilida berilgan quyidagi dastur natijasini aniqlang(qo‘shtirnoqlarsiz).

print(‘informatika’[5:999])


A) “rmatika” B) “matika” C) dasturda xatolik mavjud D) “atika”





  1. Python dasturlash tilida berilgan quyidagi dastur natijasini aniqlang.

def r(q):


return q * 2 def s(q):
return q * 3 x = 7
x = r(x)
x = s(x)
x = r(x) print(x)


A) 84 B) 7 C) 63 D) 126



  1. A=rost, B=yolg‘on, C=rost, D=yolg‘on bo‘lsa, quyidagi mantiqiy ifoda natijasini aniqlang. (A and B or C and D) and (A or B)

A) rost B) yolg‘on C) aniqlab bo‘lmaydi D) ifodada xatolik mavjud



  1. 5₁₀ soniga qoldiqsiz bo‘linadigan sonlar berilgan qatorni toping.

A) 123454321₆, 11223344₆ B) 23452345₆, 141414141₆
C) 123123123₆, 11223344₆ D) 123454321₆, 141414141₆



  1. MS Excel dasturida A3:B3 katakchalar bloki quyidagicha to‘ldirilgan bo‘lsa, C4 katakchada hosil bo‘ladigan sonni toping.


A) 9 B) 12 C) 39 D) 0





  1. MS Excel dasturida belgilangan C4:D6 bloki nechta katakni o‘z ichiga oladi? A) 4 B) 6 C) 8 D) 10

  2. Quyidagi rostlik jadvalga mos mantiqiy formulani toping.



A

B

C

Natija

0

0

0

0

0

0

1

0

0

1

0

0

0

1

1

0

1

0

0

0

1

0

1

1

1

1

0

1

1

1

1

1




  1. A and B and C or not A and B and C or A and not B and C

  2. not A and B and C or A and not B and C or A and B and not C
  3. A and not B and C or A and B and C or A and B and not C


  4. not A and not B and not C or A and B and C or A and B and not C



  1. qism: Har bir topshiriq 2,6 balldan baholanadi





  1. MS Excel dasturida katakka noto‘g‘ri oraliqda qiymat kiritilganda qaysi xatolik sodir bo‘ladi?

J: #ПУСТО!





  1. MS Excel dasturida E14 katakka yozilgan “=B$6” formulaning H28 katakdagi nusxasini aniqlang.

J: =E$6





  1. Python dasturlash tilida berilgan quyidagi dastur natijasini aniqlang.

a = ['foo‘, 'bar', 'baz', 'qux', 'corge'] while a:


if len(a) < 3: break
print(a.pop())
print('Done.')
J: corge qux baz
Done. (Izoh: Done so`zidan keyin albatta .(nuqta) bo`lishi shart)

  1. Python dasturlash tilida berilgan quyidagi dastur natijasini aniqlang.

for i in [1, 2, 3, 4][::-1]:


print(i, end='-')
J: 4-3-2-1-

  1. Python dasturlash tilida berilgan quyidagi dastur natijasini aniqlang.

import random T = 1000000


s = 0
for t in range(T):
a = random.randint(1, 100) b = random.randint(1, 100) if (a * b) % 2 == 1:

Yüklə 64,67 Kb.

Dostları ilə paylaş:
1   2   3




Verilənlər bazası müəlliflik hüququ ilə müdafiə olunur ©azkurs.org 2024
rəhbərliyinə müraciət

gir | qeydiyyatdan keç
    Ana səhifə


yükləyin