Search Header Logo

C# Döngü Deyimleri

Authored by Serhad OCAK

Computers

10th Grade

Used 3+ times

C# Döngü Deyimleri
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

private void button1_Click(object sender, EventArgs e)

{

for (int i = 0; i < 3; i++)

{

listBox1.Items.Add(“Bilişim Teknolojileri”);

}

}

Kod parçasının çıktısının aşağıdaki seçeneklerden hangisi olması beklenir?

0' dan başlayarak 3'e kadar sayıları listBox1 kontrolüne ekler.

listBox1 kontrolüne 3 satır

Bilişim Teknolojileri

ifadesini ekler.

1.Bilişim Teknolojileri

2.Bilişim Teknolojileri

3.Bilişim Teknolojileri

şeklinde çıktı verir.

Bilişim Teknolojileri

Bilişim Teknolojileri

Bilişim Teknolojileri

şeklinde çıktı verir.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

1'den 10'a kadar ardışık sayıları ListBox aracına ekleyen döngü ifadesi aşağıdakilerden hangisidir?

for (int i = 1; i <= 10; i=i+2)

{

listBox1.Items.Add(i);

}

for (int i = 0; i <= 10; i++)

{

listBox1.Items.Add(i);

}

for (int i = 0; i < 10; i++)

{

listBox1.Items.Add(i);

}

for (int i = 1; i < 10; i++)

{

listBox1.Items.Add(i);

}

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

5'ten 15'e kadar ardışık sayıları ComboBox kontrolüne ekleyen kod parçası aşağıdakilerden hangisidir?

for (int i = 5; i <=15; i++)

{

comboBox1.Items.Add(i);

}

for (int i = 5; i <=15; i++)

{

listBox1.Items.Add(i);

}

for (int i = 0; i <=15; i++)

{

comboBox1.Items.Add(i);

}

for (int i = 6; i <=16; i++)

{

textBox1.Items.Add(i);

}

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

2 ile 32 arasındaki çift sayıları ListBox kontrolüne ekleyen kod parçası aşağıdakilerden hangisidir?

for (int i = 0; i <=32; i++)

{

listBox1.Items.Add(i);

}

for (int i = 2; i <=32; i++)

{

listBox1.Items.Add(i);

}

for (int i = 2; i <=32; i=i+2)

{

listBox1.Items.Add(i);

}

for (int i = 1; i <=33; i=i+3)

{

listBox1.Items.Add(i);

}

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

ComboBox kontrolüne;

5 - 10 - 15 - 20 - 25 - 30 - 35 - 40 - 45 - 50

sayılarını ekleyen kod parçası aşağıdakilerden hangisidir?

for (int i = 1; i <=50; i=i+5)

{

comboBox1.Items.Add(i);

}

for (int i = 5; i <=50; i=i+5)

{

comboBox1.Items.Add(i);

}

for (int i = 0; i <=50; i=i+5)

{

listBox1.Items.Add(i);

}

for (int i = 5; i <=45; i=i+5)

{

comboBox1.Items.Add(i);

}

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

ComboBox kontrolüne;

100 - 95 - 90 - 85 - 80 - 75 - 70 - 65 - 60 - 55 - 50

sayılarını ekleyen kod parçası aşağıdakilerden hangisidir?

for (int i = 100; i >=50; i=i-5)

{

listBox1.Items.Add(i);

}

}

for (int i = 100; i >=50; i=i+10)

{

comboBox1.Items.Add(i);

}

}

for (int i = 50; i <=100; i=i+10)

{

listBox1.Items.Add(i);

}

}

for (int i = 100; i >=50; i=i-5)

{

comboBox1.Items.Add(i);

}

}

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

int say = 1;

while (say<=10)

{

listBox1.Items.Add(say);

say++;

}

Kod parçası aşağıdaki çözümlerden hangisini verir?

TextBox kontrolüne

say

ifadesini yazar

listBox1 kontrolüne

1'den 10'a kadar sayıları

yazar

ComboBox1 kontrolüne 1'den 10'a kadar sayıları yazar

listBox kontrolüne

10 kez say ifadesini yazar

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?