wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Python Semester 2

Total questions: 14

Worksheet time: 7mins

Name
Class
Date
1.

_?_ olan yere hangi kod gelmelidir ?

a)

def

b)

int

c)

print

d)

while

2.

Yandaki kodun ekran çıktısı ne olur?

a)

5

b)

5 6 7 8 9

c)

5 7 9

d)

6 7 8 9

3.

Yandaki kodun ekran çıktısı ne olur?

a)

nothing

b)

process opened

c)

process closed

d)

error

4.

print(3**2) kodunun ekran çıktısı ne olur ?

a)

3

b)

6

c)

9

d)

1.5

5.

print(5%2) kodunun ekran çıktısı ne olur ?

a)

2.5

b)

1.5

c)

1

d)

3

6.

cities=("izmir","paris","roma")

cities[0]="istanbul"

print(cities[0])

Yukarıdaki kodun çıktısı ne olur ?

a)

izmir

b)

paris

c)

istanbul

d)

error

7.

1 nolu alana hangi kod gelmelidir?

a)

def

b)

class

c)

random

d)

init

8.

2 nolu alana hangi kod gelmelidir ?

a)

for

b)

if

c)

def

d)

while

9.

3 nolu alana hangi kod gelmelidir ?

a)

import

b)

int

c)

randint

d)

str

10.

4 nolu alana hangi kod gelmelidir ?

a)

str

b)

int

c)

def

d)

float

11.

5 nolu alana hangi kod gelmelidir ?

a)

input

b)

for

c)

def

d)

print

12.

6 nolu alana hangi kod gelmelidir ?

a)

while

b)

if

c)

str

d)

else

13.

7 nolu alana hangi kod gelmelidir ?

a)

if

b)

for

c)

elif

d)

else

14.

8 nolu alana hangi kod gelmelidir ?

a)

else

b)

elif

c)

if

d)

for