qism: Har bir topshiriq 1,5 balldan baholanadi
Informatika fanining o‘tmishdoshi hozirgi kunda nima deb ataladi?
A) Dokumentalistika B) Computer science C) IT D) Kriptografiya
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
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”
Python dasturlash tilida berilgan quyidagi dastur natijasini aniqlang(qo‘shtirnoqlarsiz).
print(‘informatika’[5:999])
A) “rmatika” B) “matika” C) dasturda xatolik mavjud D) “atika”
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
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
5₁₀ soniga qoldiqsiz bo‘linadigan sonlar berilgan qatorni toping.
A) 123454321₆, 11223344₆ B) 23452345₆, 141414141₆
C) 123123123₆, 11223344₆ D) 123454321₆, 141414141₆
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
MS Excel dasturida belgilangan C4:D6 bloki nechta katakni o‘z ichiga oladi? A) 4 B) 6 C) 8 D) 10
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
|
A and B and C or not A and B and C or A and not B and C
not A and B and C or A and not B and C or A and B and not C
A and not B and C or A and B and C or A and B and not C
not A and not B and not C or A and B and C or A and B and not C
qism: Har bir topshiriq 2,6 balldan baholanadi
MS Excel dasturida katakka noto‘g‘ri oraliqda qiymat kiritilganda qaysi xatolik sodir bo‘ladi?
J: #ПУСТО!
MS Excel dasturida E14 katakka yozilgan “=B$6” formulaning H28 katakdagi nusxasini aniqlang.
J: =E$6
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)
Python dasturlash tilida berilgan quyidagi dastur natijasini aniqlang.
for i in [1, 2, 3, 4][::-1]:
print(i, end='-')
J: 4-3-2-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:
Dostları ilə paylaş: |