wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Python test

Total questions: 10

Worksheet time: 10mins

Name
Class
Date
1.

var= "Hello" olarsa, var dəyişənin tipi nədir?

a)

String

b)

Set

c)

Tuple

d)

Float

2.

a=10, b=6 olarsa a<b ifadəsi nəyə bərabərdir?

a)

6

b)

True

c)

10

d)

False

3.

st = "Hello" olarsa, st[1:3] ifadəsi nəyə bərabərdir?

a)

"He"

b)

"elo"

c)

"ello"

d)

"el"

4.

Hansı string metodu deyil?

a)

upper()

b)

lower()

c)

index()

d)

value_counts()

5.

st= "Salam" olarsa, st.find("m") ifadəsinin nəticəsi nə olacaq?

a)

E

b)

4

c)

True

d)

Flase

6.

Hansı string metodu deyil?

a)

replace()

b)

startswith()

c)

nunique()

d)

count()

7.

Hansı Pythonun əsas data tipi deyil?

a)

Set

b)

String

c)

Dictionary

d)

matrix

8.

1.      a= {"Samed":50, "Vaqif":80, "Nicat":100} olarsa, Nicatın dəyərini 300-ə hansı metodla dəyişmək olar?

a)

a.select({“Nicat”:300})

b)

a.update({“Nicat”:300})

c)

a.insert({“Nicat”:300})

d)

a.push({“Nicat”:300})

9.

1.      sum([1,4,5]) ifadəsi nəyə bərabərdir?

a)

1

b)

10

c)

5

d)

4

10.

n = 10 olarsa , n dəyişəninin tipi nədir?

a)

String

b)

Float

c)

Integer

d)

Tuple