Search Header Logo

if/else

Authored by Melih Ozbey

Computers

7th Grade

Used 13+ times

if/else
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

if meat.fresh:

getMeat()

kodu hangi işlemi yapar?

Eğer et bayat ise eti alır.

Eğer et taze ise eti alır.

Eğer et mısır ise mısırı alır.

Eğer mısır bayat ise eti alır.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Python programlama dilinde eşittir operatörü hangisidir?

==

!=

>

<

3.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Syntax nedir?

Kod yazımı kuralları

Bir eşitlik

Bir yapı

Bir fonksiyon

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

for i in range(4):

forward()

clear()

kodu aşağıdakilerden hangisi ile işlemi yapar?

forward() clear() forward() clear()

forward() clear() forward() clear()

forward(4) clear(4) forward(4) clear(4)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

if meat.fresh:

getMeat()

elif meat.rotten:

forward()


koda göre hangi durumda öne doğru ilerler?

et taze ise

et yok ise

et bayat ise

hiçbiri

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

 if corn.fresh:

sheep.getCorn()

elif corn.rotten:

True

yukarıdaki kod bloğuna göre kırmızı bölümdeki kodun işlevi nedir?

Eğer mısır taze ise ye

Eğer mısır bayat ise geç

Eğer mısır taze ise geç

Eğer mısır bayat ise ye

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

for b in bamboo:

kodundaki "bamboo" ne olabilir?

Bir dizi

Bir değişken

Bir sayı

Bir yazı

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?