Savol №167
... ilova ishga tushirilganida forma qanday holatda boʻlishini belgilaydi: normal, maksimallashgan
va minimallashgan
Javoblardan birini tanlang:
1) TopMost
2) MaximizeBox va MinimizeBox
3) MaximumSize va MinimumSize
4) WindowState
Savol №168
Ikkita sinf aniqlangan:
class
Person
{
public string Name { get; set; }
}
class Employee : Person { }
Person tipini Employee tipiga o'tkazishning maqbul usuli qaysi javobda to'g'ri ko'rsatilgan?
Javoblardan birini tanlang:
1) Person tom = new Person { Name = "Tom" };
Employee empl1 = tom as
Employee;
2) Person tom = new Person { Name = "Tom" };
Employee empl2 = (Employee)tom;
3) Person tom = new Person { Name = "Tom" };
Employee empl1 = tom as Employee;
Employee empl2 = (Employee)tom;
4) Person tipini Employee tipiga o'tkazib bo'lmaydi, chunki Employee sinfi Personning vorisi,
aksincha mumkin
Savol №169
Quyidgi kod natijasida qaysi komponenta rangi o'zgaradi?
public Form2(Form1 f)
{
InitializeComponent();
f.BackColor = Color.Yellow;
}
Javoblardan birini tanlang:
1) Ikkala formadagi barcha komponentalar fon rangi
2) Form1
ning fon rangi
3) Form2 ning fon rangi
4) Joriy forma fon rangi
Do'stlaringiz bilan baham: