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?
C# Döngü Deyimleri
Quiz
•
Serhad OCAK
•
Computers
•
10th Grade
•
2 plays
•
Hard
Student preview
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
Explore all questions with a free account
10 questions
الوحدة السابعة : البرمجة بلغة (فيجول بيسك ستوديو)
Quiz
•
10th Grade
12 questions
Arrays += Chan
Quiz
•
9th - 12th Grade
15 questions
JavaScript Quiz
Quiz
•
9th - 10th Grade
15 questions
Unit 8 - Searching and Sorting
Quiz
•
9th - 12th Grade
5 questions
Quiz Perulangan
Quiz
•
10th Grade
15 questions
GCSE Computer Science - Programming Keywords
Quiz
•
9th - 12th Grade
12 questions
C++ Arrays
Quiz
•
8th - 12th Grade
12 questions
Arduino Programming
Quiz
•
7th - 12th Grade
39 questions
Respect and How to Show It
Quiz
•
6th Grade
20 questions
math review
Quiz
•
4th Grade
20 questions
Math Review - Grade 6
Quiz
•
6th Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
20 questions
Taxes
Quiz
•
9th - 12th Grade
10 questions
Human Body Systems and Functions
Interactive video
•
6th - 8th Grade
20 questions
Multiplication Facts
Quiz
•
3rd Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
20 questions
Taxes
Quiz
•
9th - 12th Grade
20 questions
Investing
Quiz
•
9th - 12th Grade
20 questions
Insurance
Quiz
•
9th - 12th Grade
20 questions
Common Grammar Mistakes
Quiz
•
7th - 12th Grade
20 questions
Paying for College
Quiz
•
9th - 12th Grade
15 questions
Central Tendency
Quiz
•
9th - 12th Grade
20 questions
Banking
Quiz
•
9th - 12th Grade