Python_Exam

Python_Exam

Professional Development

20 Qs

quiz-placeholder

Similar activities

Bioteknologi kelas IX

Bioteknologi kelas IX

Professional Development

21 Qs

ÇAĞLAYAN EYLÜL 2021

ÇAĞLAYAN EYLÜL 2021

Professional Development

25 Qs

Exception_handling

Exception_handling

Professional Development

15 Qs

Farma 17.06.25

Farma 17.06.25

Professional Development

20 Qs

Hz. Fatıma Kur'an Kursu Hafızlık Hazırlık Sınıfı Deneme Sınavı

Hz. Fatıma Kur'an Kursu Hafızlık Hazırlık Sınıfı Deneme Sınavı

Professional Development

15 Qs

Aviation Fuel and Terminal Operations Quiz

Aviation Fuel and Terminal Operations Quiz

Professional Development

20 Qs

Producto Técnico Actual

Producto Técnico Actual

Professional Development

20 Qs

TUGAS BTIK VIII H MS.EXCEL1

TUGAS BTIK VIII H MS.EXCEL1

Professional Development

20 Qs

Python_Exam

Python_Exam

Assessment

Quiz

Science

Professional Development

Practice Problem

Easy

Created by

habip akyol

Used 1+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 mins • 1 pt

"""Verilen kod parçasının çıktısı aşağıdakilerden hangisidir?"""


if [1,2,3,4][2] == 2:

    print("YES")

else:

    print("NO")

2

1

Hata

NO

2.

MULTIPLE CHOICE QUESTION

10 mins • 1 pt

"""Verilen kod parçasının çıktısı aşağıdakilerden hangisidir?"""


def mesaj():

    print("Merhaba!")


mesaj()

Hata

Çalışır ama çıktı üretmez

Merhaba!

Merhaba

3.

MULTIPLE CHOICE QUESTION

10 mins • 1 pt

def islem(x):

    if (x<0):

        return "NO"

    else:

        x*5

islem(2)



NO

Hata

Çalışır, ama çıktı vermez

10

4.

MULTIPLE CHOICE QUESTION

10 mins • 1 pt

A = []

B = []

for i in [1,"a",12,"b"]:

    if type(i) == int:

        B.append(i)

    else:

        A.append(i)


A[1]

'b'

B

12

1

5.

MULTIPLE CHOICE QUESTION

10 mins • 1 pt

def islem(x):

    if (x>10):

        return "YES"

    else:

        return x*5


islem(4)

10

20

Hata

YES

6.

MULTIPLE CHOICE QUESTION

10 mins • 5 pts

break ifadesi ne için kullanılır?

Bir şart yakalandığında ekrana yazdırmak için

Bir şart yakalandığında ona bir işlem yapmak için

Yakalanan şartı atlayarak işleme devam etmek için

Yakalanan şarta gelindiğinde çalışmayı durdurmak için

Döngü içerisindeki elemanları yakalamak için

7.

MULTIPLE CHOICE QUESTION

10 mins • 5 pts

A = 12

if type(A) == str:

    A = A.strip("*")

    print(A)

else:

    A  = "*" + str(A) + "*"

    print(A.strip())

Hata

*12*

*A*

A

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?