Search Header Logo

Python Programlama Soruları

Authored by Yasemin SYHAN

Other

9th Grade

Used 1+ times

Python Programlama Soruları
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

x = [1, 2, 3, 4]

y = x[1:3]

result = sum(y)

Yukarıdaki Python kodu çalıştırıldığında, result değişkeninin değeri ne olur?

7

3

5

6

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

def my_function(a, b, c=10):

    return a + b + c

print(my_function(2, 3))

Aşağıdaki kodu çalıştırdığınızda hangi çıktı alınır?

None

5

Error

15

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Aşağıdaki kodda hangi veri tipi kullanılır?

data = {"Ad": "Ali", "yaş": 30}

List

Tuple

Dictionary

Set

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Aşağıdaki kod ne tür bir çıktı verir?

x = [1, 2, 3]

x.append([4, 5])

print(len(x))

6

5

3

4

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Aşağıdaki kodda my_list listesinin son elemanını nasıl çıkarırsınız?

my_list = [1, 2, 3, 4]

del my_list[0]

my_list.pop()

my_list.remove(4)

my_list.pop(0)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Aşağıdaki kodun çıktısı ne olur?

x = "Python"

y = "Programlama Dili"

z = x + " " + y

print(z)

Error

Python Programlama Dili

Programlama DiliPython

PythonProgramlama Dili

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Aşağıdaki kodun çıktısı ne olur?

x = [1, 2, 3, 4]

y = [i * 2 for i in x]

print(y)

[1, 2, 3, 4]

[0, 0, 0, 0]

[1, 4, 9, 16]

[2, 4, 6, 8]

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?