Soru 30 What will be the output of the following code segment: print(10) def f10: return "bye" Yantnz: obye O nothing error Yaniti temizle Geri Sonraki Kalan sre: 78:05 01 - 10 11-20 21 - 30 31 32 33 Soru 31 What are the values that the variable a contains through the iterations of the following for loop? for a in range(1.-5, 100%3): Yanitiniz: 01. 2. 3. 4.5 O 1.2.3.4 1.3 not going to enter the loop Yaniti temizle Geri Sonraki Kalan sre: 77:40 Soru 32 global is NOT a keyword in Python. Yantnz: Yes O No Yaniti temizle Geri Sonraki Aramak iin buraya yazn Kalan sre: 77:29 01 - 10 11 -20 21-30 31 Soru 33 Which list will be referenced by the variable a after the following code is executed? number = list(range(100, 0, -20) number[:5:3] Yantnz: O [100.40] O [100.80, 60, 40. 20] O [100.80.60, 40, 20, 0] O [100.60.20) Yant temizle Geri Sonraki Kalan sre: 77:15 01 - 10 11-20 21-30 31 32 Soru 34 How many times does the following nested loop repeat itself? for a in range (5): for bin range (5): Yanitiniz: 1 O 5 25 none Yaniti temizle Geri Sonraki icin bursa vazin Soru 35 What will be the output of the following code segment: def fi(a,b); if a > b: return a,b else: return b,a print(f1("python","java")) Yantnz: O Java, python O python, Java Nothing / None Error Yaniti temizle Geri Sonraki Soru 36 In Python, list indices start from -1. Yantnz: O True O False Yant temizle Geri Sonraki Aramak iin buraya yazn 01-10 11-20 21 - 30 31 32 Soru 37 In a string named city with the value besiktas, what will the following slice give? -- [0::1] Yantnz: besiktas Osatkiseb Obesikta O Error or Empty String Yaniti temizle Geri Sonraki 01 - 10 Soru 38 names = ["batu", "ecenisan", "ayse", "melisa". "berkay". "berkay", "yusa"] After the following code is executed, what will be the resulting list? names.remove("berkay) Yantnz: o names - ("batu", "ecenisan", "ayse", "melisa", "berkay". "yusa"] o names = ["batu", "ecenisan", "ayse", "melisa", "yusa"] O None of the above Yant temizle Geri Sonraki Soru 39 Assuming that the following function is defined properly: def calculate_it(a, b, c,): if a *c b C: print(b * c) else: print(a * c) What will be the result of the following function call if a is set to 4, b is set to "B", and is set to 4? calcutale_it(a,b,c) PS: In case you don't see the picture of the function, here is the link: https://pasteboard.co/JBJpRWD.png Yantnz: 4444 O 16 error Yaniti temizle Geri Sonraki ramak icin buraya yazn 01-10 11-20 21-30 31 Soru 40 Which of the following is the correct way to open a file named people.txt to erase its contents? Yantnz: of = open("w", "people.txt") of= open("people.txt", "W") O f = write("people.txt") of = writelines("people.txt") Yant temizle Geri Sonraki icin buraya yazin