Python_Exam

Python_Exam

Professional Development

20 Qs

quiz-placeholder

Similar activities

Farma 09.12.22

Farma 09.12.22

Professional Development

20 Qs

Data science quiz 1

Data science quiz 1

KG - Professional Development

20 Qs

Python_MTA-SEC2-H

Python_MTA-SEC2-H

KG - Professional Development

16 Qs

NöroEnfeksiyon 18.06.2025

NöroEnfeksiyon 18.06.2025

Professional Development

20 Qs

SQL Functions Quiz 2

SQL Functions Quiz 2

Professional Development

17 Qs

Oracle_SQL_Lesson-3

Oracle_SQL_Lesson-3

Professional Development

17 Qs

6.SINIF

6.SINIF

Professional Development

20 Qs

Onlayın quiz II mərhələ

Onlayın quiz II mərhələ

University - 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

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Access all questions and much more by creating a free account

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

Already have an account?