Search Header Logo

C# Karar Yapıları

Authored by Serhad OCAK

Computers

10th Grade

Used 6+ times

C# Karar Yapıları
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

byte skor1=1, skor2=4;

if (skor1 > skor2)

{

MessageBox.Show(“1. Takım Kazandı.”);

}

{

MessageBox.Show(“2. Takım Kazandı.”);

}

Yukarıdaki kodun çıktısı ne olur?

1. Takım Kazandı.

2. Takım Kazandı.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Eğer “a” değişkeni “b” den büyük ve “a” değişkeni “c” değişkenine eşit değilse, şart ifadesini yazınız?

if ( a>b && a=c )

if ( a>b || a!=c )

if ( a>b && a!=c )

if ( a>b && a<=c )

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Çift sayının bulunmasının istendiği C# kodunda hangi ifadenin yazılması beklenir?

if(sayi % 2 == 0)

if(sayi % 2 != 0)

if(sayi > 0)

if(sayi < 0)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Negatif sayı bulması beklenen C# kodunda hangi ifadenin olması beklenir?

if (!sayi<0)

if (sayi>0)

if (sayi<0)

if (sayi>1)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

5'in katlarının bulunmasının istendiği bir C# kodunda hangi ifadenin bulunması beklenir?

if (sayi==5)

if (sayi%5==0)

if (sayi>5)

if (sayi=5)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Tüm şartların true olması durumunda çalışması istenen ifade için hangi operatör kullanılmalıdır?

Or

||

Not

!

Özel Veya

^

Ve

&&

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Sonucun true olması için şartların yalnızca birinin true olmasının yeterli kabul edildiği operatör hangisidir?

Değil

!

Veya

||

Ve

&&

Eşit

==

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?