Python_Exam

Python_Exam

Professional Development

20 Qs

quiz-placeholder

Similar activities

Friday's Quiz - 05/08/2022-  set 1

Friday's Quiz - 05/08/2022- set 1

Professional Development

15 Qs

Genel Kültür 2

Genel Kültür 2

KG - Professional Development

15 Qs

Animal Kingdom

Animal Kingdom

1st Grade - Professional Development

25 Qs

fen bilgisi mayoz mitoz

fen bilgisi mayoz mitoz

7th Grade - Professional Development

15 Qs

Sorgu-Sual 4

Sorgu-Sual 4

5th Grade - 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?