2) 8
3) 3 5
4) 35
Savol №64
ArrayList list = new ArrayList() { 1, 2, 3, "string", 7.7};
list.Remove(2);
richTextBox2.Text = list[2].ToString();
richTextBox2 da hosil bo'ladigan qiymatni aniqlang
Javoblardan birini tanlang:
1) 1 2 3
2) 3
3) string
4) 7.7
Savol №65
Counter sinfi quyidagicha aniqlangan:
class
Counter
{
public int Number { get; set; }
public static int operator +(int val, Counter counter)
{ return counter.Number + val; }
}
Quyidagi murojaat natijasini aniqlang:
Counter counter = new Counter();
int x = counter+6;
Console.WriteLine(++x);
Javoblardan birini tanlang:
1) 6
2) Xatolik
yuz beradi, counterga qiymat uzatilmagan
3) 7
4) Xatolik yuz beradi, int x=6+counter; kabi murojaat qilinishi lozim edi
Do'stlaringiz bilan baham: