wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Python есептер 1

Total questions: 16

Worksheet time: 8mins

Name
Class
Date
1.

s = 'Kazakhstan'

print(len(s)) программа нәтижесі

a)

9

b)

10

c)

4

d)

S

2.

for i in 'hello world':

if i=='l':

continue

print (i*2, end='')

a)

hheelloo

b)

lloowwdd

c)

hheeoo wwoorrlld

d)

heo word

3.

a = 1

b = 2

print(a>b) программа нәтижесі

a)

False

b)

1

c)

2

d)

a

4.

for i in 'hello world':

if i=='o':

break

print (i*2, end='')

a)

hel wrld

b)

world

c)

hheell

d)

hheellll

5.

Жауабы неге тең?  print (31//6)

a)

5

b)

7

c)

2

d)

6

6.

i=s=0

while i<100:

i+=1

s+=i

print(s)

a)

5050

b)

4950

c)

5000

d)

100

7.

a = int(input()) #123

print(a+100)   түсініктемені көрсетіңіз

a)

int

b)

print

c)

123

d)

100

8.

a = int('123')

print(a+100) экранға шығатын нәтиже

a)

223

b)

123

c)

100

d)

a+100

9.

text = 'Salem barshaga'

print (type (text) ) экранға шығатын нәтиже

a)

'Salem barshaga'

b)

Salem barshaga

c)

<class 'str'>

d)

text

10.

Жауабы неге тең?  print (3**2)

a)

3

b)

9

c)

2

d)

6

11.

a=b=c =1000

print (a,b,c)

экранға шығатын нәтиже

a)

3000

b)

1000 1000 1000

c)

a b c

d)

1000

12.

i=s=0

while i<100:

i+=1

s+=i

print(s)

a)

1

3

5

7

9

b)

9

8

7

6

5

4

3

2

1

c)

10

9

8

7

6

5

4

3

2

1

d)

1

2

3

4

5

6

13.

for i in 'hello world':

if i =='a':

break

else:

print('Bul qatarda a aripi joq')

a)

Bul qatarda a aripi joq

b)

aaa

c)

a

d)

Bul qatarda a aripi bar

14.

for num in range(10):

if num < 7:

print(num)

else:

break

a)

1

2

3

4

5

6

7

b)

1

2

3

4

5

6

c)

0

1

2

3

4

5

6

7

d)

0

1

2

3

4

5

6

15.

for num in range(5):

if num == 3:

continue

else:

print(num)

a)

0

1

2

3

4

b)

3

4

5

6

c)

0

1

2

4

d)

1

2

3

4

16.

i=0

while i<10:

if i==5:

break

else:

print(i)

i+=1

a)

0

5

1

1

2

b)

1

2

3

4

5

c)

0

1

2

3

4

d)

0

1

3

4