NEW
Font size
S
M
L
XL
WorksheetsBBK test
Total questions: 7
Worksheet time: 4mins
Name
Class
Date
1.
Python'da fonksiyon tanımlamak için hangi anahtar kelime kullanılır?
a)
as
b)
class
c)
def
d)
import
2.
fonksiyonlarda değer hangi yöntem ile geri çevrilir ?
a)
self
b)
init
c)
return
d)
math
3.
a = 10
def fonksiyon():
a=2
print(a)
print(a)
çıktı nedir?
a)
2
10
b)
10
2
c)
hata
d)
2 10
4.
def fonksiyon():
a=2
print(a)
print(a)
çıktı nedir?
a)
2
b)
hata
c)
a
d)
2
hata
5.
try:
a=int(asdasdasd25)
print("çalıştı")
except:
print("buraya girdi")
çıktı nedir?
a)
buraya girdi
b)
çalıştı
c)
hata
d)
kod çalışmaz
6.
from math import sqrt,ceil
hangi fonksiyonları getirir?
a)
hepsini
b)
append
c)
sqrt
d)
sqrt,ceil
7.
kontrol="askılık">"Askı"
print(kontrol)
Hangi sonucu verir?
a)
true
b)
false
c)
hata
d)
Askı
Reset
